# Google Pay and Apple Pay SCA

**URL:** <https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480>\
**Category:** Questions\
**Tags:** payments-api\
**Created:** [March 21, 2022, 5:11pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480 "2022-03-21T17:11:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![pauld](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@pauld](https://developer.squareup.com/forums/u/pauld)\
**Post date:** [March 21, 2022, 5:11pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/1 "2022-03-21T17:11:19Z")

</div>

Hi Square developers

Quick questions, is there anything extra we need to do with the Apple Pay and Google Pay integration to make it SCA compatible?

We have seen a few transactions fail recently from our digital wallet integration with the error code CARD\_DECLINED\_VERIFICATION\_REQUIRED.

Cheers, Paul

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [March 21, 2022, 6:04pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/2 "2022-03-21T18:04:49Z")

</div>

👋 Was the `verification_token` included in the payment request on these failed payments? Do you have an example payment? 🙂

---

<div class="post-metadata">

**Author:** ![pauld](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@pauld](https://developer.squareup.com/forums/u/pauld)\
**Post date:** [March 21, 2022, 11:11pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/3 "2022-03-21T23:11:34Z")

</div>

> [@Bryan-Square](#):
>
> `on_token` included in the payment request on th

Hey Bryan, sorry should point out it was via the in app SDK not on the website so as far as I can tell there isn’t a way to send a verifciation\_token?

A recent payment that failed on the app with that error messages was made at 2022-03-21 12:19:41.260 by a user with the surname Connolly.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [March 22, 2022, 5:53pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/4 "2022-03-22T17:53:29Z")

</div>

Do you have the `payment_id` that was returned for the failed payment?

---

<div class="post-metadata">

**Author:** ![pauld](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@pauld](https://developer.squareup.com/forums/u/pauld)\
**Post date:** [March 23, 2022, 3:09pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/5 "2022-03-23T15:09:19Z")

</div>

Hi Bryan, we don’t capture the payment id, only the reason and location.

We have had a few more failed payments today with the same error code from the app, here is one of the Transactions in the Transaction Status screen:

23/03/2022, 13:02 Visa ending in 6523 Declined eCommerce £11.00

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [March 23, 2022, 3:41pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/6 "2022-03-23T15:41:02Z")

</div>

Okay, and they attempted to pay with Google Pay or Apple Pay?

---

<div class="post-metadata">

**Author:** ![pauld](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@pauld](https://developer.squareup.com/forums/u/pauld)\
**Post date:** [March 23, 2022, 3:55pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/7 "2022-03-23T15:55:48Z")

</div>

They attempted to pay with Google Pay

---

<div class="post-metadata">

**Author:** ![pauld](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@pauld](https://developer.squareup.com/forums/u/pauld)\
**Post date:** [April 5, 2022, 5:34pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/8 "2022-04-05T17:34:33Z")

</div>

Hi @Bryan-Square

Any updates on this? We were able to replicate this on our live app using Google Pay and have seen this error appear in our logs more regularly.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [April 5, 2022, 5:41pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/9 "2022-04-05T17:41:26Z")

</div>

I heard back from the team and `verifyBuyer` should be called with all digital wallet payments so you can pass the `verification_token` in the payment request. 🙂

---

<div class="post-metadata">

**Author:** ![pauld](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@pauld](https://developer.squareup.com/forums/u/pauld)\
**Post date:** [April 5, 2022, 6:07pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/10 "2022-04-05T18:07:33Z")

</div>

Is there any code examples or documentation available to show where verifyBuyer is passed into the Google Pay and Apple Pay process? I can’t see in the code where we would be able to pass this?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [April 5, 2022, 7:33pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/11 "2022-04-05T19:33:42Z")

</div>

Here is our [example with verifyBuyer](https://github.com/square/web-payments-quickstart/blob/main/public/examples/card-payment-with-verification.html) for card payments entered in the Web SDK form fields. You’ll just need to make sure you call `verifyBuyer` to get the `verification_token` prior to making the call to `CreatePayment` with digital wallet payments. 🙂

---

<div class="post-metadata">

**Author:** ![pauld](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@pauld](https://developer.squareup.com/forums/u/pauld)\
**Post date:** [April 6, 2022, 10:41am UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/12 "2022-04-06T10:41:02Z")

</div>

Hi @Bryan-Square  
This is for the web payments SDK but the questions is regarding the In App Payments SDK. I can’t find any documentation or examples regarding SCA for this SDK. It isn’t clear what the process would be to get SCA working for Google Pay using the In App Payments SDK without documentation.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [April 6, 2022, 4:19pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/13 "2022-04-06T16:19:12Z")

</div>

Ah, okay. Here is the [In-App Payments SDK documentation for SCA](https://developer.squareup.com/docs/in-app-payments-sdk/verify-buyer). 🙂

---

<div class="post-metadata">

**Author:** ![pauld](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@pauld](https://developer.squareup.com/forums/u/pauld)\
**Post date:** [April 6, 2022, 5:22pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/14 "2022-04-06T17:22:28Z")

</div>

Ok grand, thanks, would be good to update the documentation for the next person to say that SCA is required for digital wallets as well as I can’t spot anything (might be obvious but wasn’t to me) 🙂

So to piece the documentation together looks like we need to get the nonce as usual using requestGooglePayNonce, then call BuyerVerification.verify sending it via VerificationParameters and then try and get a verification token from this method to send back to our server along with the nonce.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [April 6, 2022, 6:39pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/15 "2022-04-06T18:39:17Z")

</div>

Yes, that’s the flow. Also you are absolutely right about the documentation. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the product team. 🙂

---

<div class="post-metadata">

**Author:** ![pauld](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@pauld](https://developer.squareup.com/forums/u/pauld)\
**Post date:** [April 7, 2022, 8:28am UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/16 "2022-04-07T08:28:57Z")

</div>

Fab, thanks for your help Bryan 👍

---

<div class="post-metadata">

**Author:** ![pauld](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@pauld](https://developer.squareup.com/forums/u/pauld)\
**Post date:** [April 23, 2022, 4:00pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/17 "2022-04-23T16:00:24Z")

</div>

Hi @Bryan-Square

We are still having issues with payments going through on digital wallets using the buyer verification code. It works on the test server but when we put it live we get back this error code:  
CARD\_DECLINED\_VERIFICATION\_REQUIRED

We ran a transaction at 2022-04-23 16:52 for £11 and got back the following nonce and verification code:  
cnon:CBESECjJEJpH0FV8yPPJpNKepXw  
verf:CBESEILJD82J9ahv6bQddNJbaAY

On our server when we pass these to the Create Payment request method we get get that error message each time:  
CreatePaymentRequest.Builder(  
paymentMethodNonce,  
uuid,  
bodyAmountMoney)  
.Autocomplete(false)  
.LocationId(ConfigurationManager.AppSettings[“Square.LocationId”])  
.BuyerEmailAddress(email)  
.VerificationToken(verificationToken)  
.Build();

Are you able to check anything on your end for the reason why this transaction might fail with this error code when we are passing through the verification token?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [April 25, 2022, 4:16pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/18 "2022-04-25T16:16:54Z")

</div>

What’s the `payment_id` of the failed payment? 🙂

---

<div class="post-metadata">

**Author:** ![pauld](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@pauld](https://developer.squareup.com/forums/u/pauld)\
**Post date:** [April 25, 2022, 4:34pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/19 "2022-04-25T16:34:37Z")

</div>

When the payment fails with an exception I don’t believe we get a payment\_id back do we? Is the id in the exception?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [April 25, 2022, 4:38pm UTC](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480/20 "2022-04-25T16:38:32Z")

</div>

All declined payments will return a `payment_id` that you can use to retrieve the declined payment. 🙂

[Next page](https://developer.squareup.com/forums/t/google-pay-and-apple-pay-sca/5480.md?page=2)
