What do you need to do if you keep getting the following error when integrating stripe with Apple Pay, even after you upload the CSR file?
{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.}
So, this usually happens if there wasn’t a proper configuration with the certificate or when Xcode ends up caching an incorrect state.
The solution is presented below in a step-by-step format.
- Review the guide on how to setup Apple Pay and restart the process from the beginning to include creating a new Apple Merchant ID.
- Be sure to create an Apple Pay Certificate using the certificate signing request obtained from Stripe in the account settings. This will ensure that you are using the new merchant ID and that this process succeeds without any warnings.
- Download the certificate that Apple gives you and upload it on your Stripe dashboard.
- Enable the “Apple Pay” capability in the app, and select the new merchant ID on the Capabilities screen.
- Change the merchant identifier in your code as well:
[Stripe paymentRequestWithMerchantIdentifier:myNewMerchantId]