I am trying to integrate apple pay with braintree
. I have followed up the following instructions to enable apple pay in the brain tree. In the first step, if you cl
Please follow below steps[If use Apple Pay with stripe or any other payment gateway]:
Now use this CSR in your payment processing certificate.
I don't get it, because it's said You must use the CSR we provide. Do not create a CSR file yourself
on braintree
website.
And with this CSR file, it's always failed on apple's upload page.
Edit:
I finally upload success with follow steps of @anjali-jariwala 's answer.
Just in last step, I choose RSA
& 2048
as alert requirement.
complimenting what @zepp said, you need to specify when creating CRS, and you can that by following the process below
Full disclosure: I work at Braintree. If you have any further questions, feel free to contact our Support team.
Make sure you're selecting the Apple Pay Certificate option under Production (even if this is for a Sandbox; see the Braintree Apple Pay configuration docs for details) when choosing the type of certificate to add in the Apple Developer portal. Apple Pay CSRs should be generated with ECC, not RSA.
Here's what the CSR prompt screen should look like. Although you'll be uploading the CSR obtained from Braintree instead of generating one, note Apple's specifications for the key:
This issue is not specific to Apple Pay or Braintree - I ran into the same issue when trying to create a CSR for getting a Safari certificate from Apple.
What's important to know is that you need to select the iCloud keychain before using the Request Certificate from Certificate Authority
command. If you don't, another keychain may be active, causing wrong keys to be used.
From Apple Developer Forum
Within the Keychain Access drop down menu, select Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority.
In the Certificate Information window, enter the following information:
- In the User Email Address field, enter your email address.
- In the Common Name field, create a name for your private key (e.g., John Doe Dev Key).
- The CA Email Address field should be left empty.
- In the "Request is" group, select the "Saved to disk" option.
- Select "Let me specify key pair information".
- Click Continue within Keychain Access and select the file location.
- Set the Key Pair Information to the following:
- Algorithm: ECC
- Key Size: 256 bits Click
- Continue within Keychain Access to complete the CSR generating process.