3

I keep getting this error when integrating stripe with apple-pay. Ive tried upload the CSR file according to Stripe but no luck.

{com.stripe.lib:ErrorMessageKey=We couldn't fully decrypt your request. Please make sure you've uploaded your Apple Pay certificate at https://dashboard.stripe.com/settings/apple_pay. For help doing this see https://stripe.com/docs/mobile/apple-pay., NSLocalizedDescription=We couldn't fully decrypt your request. Please make sure you've uploaded your Apple Pay certificate at https://dashboard.stripe.com/settings/apple_pay. For help doing this see https://stripe.com/docs/mobile/apple-pay.}

Beyond 2021
  • 133
  • 1
  • 7

1 Answers1

5

Thank you for the help. This reply from Thomas @ Stripe support solved my issue.

Hey there,

Thanks for writing in about this, I'm happy to help! Most often when we see this is it a result of Xcode caching something improperly, so I'd recommend going back to the guide at https://stripe.com/docs/mobile/apple-pay and starting completely from scratch (including creating a new Apple Merchant ID).

Make sure to create an Apple Pay Certificate using the certificate signing request you obtain from Stripe at https://dashboard.stripe.com/account/apple_pay, and using your new merchant ID (and that this process succeeds without any warnings).

Then download the certificate that Apple gives you and upload it on your Stripe dashboard.

Finally, after all that is done, enable the "Apple Pay" capability in your app, and select the new merchant ID on the Capabilities screen.

Also, don't forget to change the merchant identifier in your code as well (i.e. [Stripe paymentRequestWithMerchantIdentifier:myNewMerchantId]).

I hope this helps but please do not hesitate to get back to me if you need more details. All the best, Thomas

Beyond 2021
  • 133
  • 1
  • 7
  • HIi sir. i am getting this errors when enabling apple pay in capabilities in xcode. i followed all the steps. But i don't why it is happening. please tell me the answer to resplve the error. The errors are 1. Add the ApplePay feature to your App Id 2. Add Merchant Ids to your App Id – vijju Jan 11 '18 at 07:00