Testing Apple Pay and SCA

Hi there

Is there a way to test Apple Pay and SCA?

Can you give any recommendations on how we can trigger an SCA verification on the app so we see the SCA test popup when using Apple Pay?

Thanks! Paul

Currently there isn’t a test value that will trigger the challenge for Apple Pay. You’ll need to use ccof:customer-card-id-requires-verification for testing cause the flow is the same as using one of our test values. You first get back the source_id from the Web Payments SDK, Apple Pay, Google Pay, and Cash app pay. Once you’ve submitted that ID to the payment request is when the challenge happens. :slightly_smiling_face:

Hi @Bryan-Square
Thanks for the info. So when we create the verification parameters do we pass “ccof:customer-card-id-requires-verification” into the initWithPaymentSourceId parameter?
Currently when we do this we get back the error message code 4 buyer_verification_unexpected.
Thanks, Paul

And sorry just to be clear we are using the SquareInAppPaymentsSDK and Square BuyerVerificationSDK on our native Apple app

The ccof:customer-card-id-requires-verification is what you’ll pass in as the source_id to simulate a challenge since any source_id generated from Apple Pay won’t trigger a verification in sandbox. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. :slightly_smiling_face:

@Bryan-Square yep tried passing that in as the payment source id and we get back the error message every time code 4 buyer_verification_unexpected.

We are trying to test this as we are having reports that when using Apple Pay on our app the buyer verification popup is shown, the buyer verifies but then the payment doesn’t go on to process so we need to be able to test this workflow.