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.
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.
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?
Here is our example with verifyBuyer 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.
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.
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.
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.
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?