Enabling Apple Pay in iFrame
To enable Apple Pay within your iFrame, you'll need to set up a merchant identifier and a payment processing certificate in your Apple Developer account.
Here's a step-by-step guide:
Creating merchant identifier
In your Apple Developer account go to the Certificates, Identifiers & Profiles section, select Identifiers and press Add New. From the radio selection select Merchant IDs and press continue.
Add a description and identifier you will later use in your app and press continue.
Creating payment processing certificate
Once the identifier has been created, additionally you’ve to create a payment processing certificate linked to the corresponding merchant identifier. To do so follow the steps below:
- Contact Paybis support team to get a certificate signing request
.csr
- Log in back to your development portal and under the identifier section select the previously created merchant identifier
- Under Apple Pay Payment Processing Certificate section press Create Certificate
- Select according answer about processing only in China and press continue
- Upload the
.csr
gathered from Paybis support team and press continue - Download created certificate
.cer
and add it to the folder to be accessible https://yourwebsite.com/.well-known/apple-developer-merchantid-domain-association. - Share the
.cer
certificate file with Paybis. This is essential for Paybis to configure Apple Pay on our end. - Add the
allow="payment"
attribute to your<iframe>
tag to enable Apple Pay functionality within the iFrame.
Updated about 1 month ago