#vm1172
1 messages · Page 1 of 1 (latest)
Hi đź‘‹
I'm not going to be able to reivew a previous thread, can you summarize the discussion?
sure, I was facing this error inside the Simulator when testing out my Apple Pay integration using Expo Go
Stripe Apple Pay Error {"code": "Failed", "declineCode": null, "localizedMessage": "The data couldn’t be read because it isn’t in the correct format.", "message": "The data couldn’t be read because it isn’t in the correct format.", "stripeErrorCode": null, "type": null}
Bismarck suggested to deploy the app and 'build' it since the Expo documentation [1] suggested that Apple Pay is not supported in Expo Go.
I made the build and am now receiving this error on TestFlight
Failed: There was an unexpected error - please try again in a few seconds
[1] - https://docs.expo.dev/versions/latest/sdk/stripe/#apple-pay
Gotcha okay. My first question is do you see this failed request show up in your Stripe logs?
https://dashboard.stripe.com/test/logs
invalid_request_error
We were unable to decrypt your request. Please make sure you've generated and uploaded your Apple Pay certificate at https://dashboard.stripe.com/settings/payments/apple_pay.
thing is, we've followed all instructions to add iOS Certificates <> Stripe integrations
am I missing something?
Can you share an API request ID for this error? It will start with req_
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
I just added a new one right now
should it resolve by now?
I can try testing
it still failing for me
Sure I do see that was added just now.
Can you share the latest request that failed
?
req_DshOUbIhextUwF
Okay so the error message seems to indicate that we don't have all the information to decrypt the PKToken sent by Apple Pay.
How did you go through the steps to create the ApplePay Certificate?
Did you use Stripe to create the Certificat Signing Request (CSR)?
Hi yes we are looking into this but it's taking some time
all good thank you
I'm using React Native with Expo, so I've been following this documentation actually
I know it's an RN project but it will have a XCode workspace file were you still need to add your merchant iD
And that code matches the merchant ID for that certificate?
sorry give me a few minutes, ill just double check this and get back to you
Okay because this error is either the wrong certificate is being used, or the wrong merchant ID is being used. The request is correct as far as Stripe is concerned but ApplePay is throwing an error.
Okay so it looks like you have two Apple Pay certificates for payment processing using the same merchant ID. That could be causing the issue and why the Merchant ID is showing up a red in XCode
right, as I mentioned here, I added the most recent one while we were chatting
I can revoke the old one right now and try again. will that require a new rebuild?
Unfortunately I'm not sure. We can try without for now
Okay sure, give me a few minutes to get this set up properly. I'll be following the instructions from Stripes Apply pay site here
Will that suffice? - https://dashboard.stripe.com/settings/payments/apple_pay
Yes those are the directions you should follow here