Paytabs provides you with multiple methods for using ApplePay, for easy-to-use integration, and even more easy implementation for developers.
This article is dedicated to walk you through how you can integrate with apple pay direct request through your test profile. We will be guiding you through all the certificates needed and the workflow along with the technical details.
Kinldy note that you can find multible ways to integrate with Apple Pay through PayTabs clarified in detials in our How to integrate the ApplePay Payment method? solution article
In this article you will be going to know about:
ApplePay Payment Workflow
The ApplePay "Pay" button would trigger the ApplePay wallet to be opened in a popup screen (Only via any Apple Devices). This will lead the customer to choose one of his saved cards to proceed with the payment using the token sent from the merchant side to the PayTabs side. You can learn more about the workflow from here.
Required ApplePay Certificates
ApplePay certificates are certificates that would be generated from the Apple Developer portal, to be used for ApplePay transactions. These certificates are used to decrypt the apple pay token which is included in the payment request sent to Paytabs. In order to integrate with ApplePay direct request in your PayTabs test profile, you will need to have two certificates, clarfied below:
- Apple Pay Payment Processing certificate:
You can find the full detaild stesp to configure this certificate clarified in our How to configure Apple Pay Certificate in my PayTabs dashboard? solution article, but you MUST note that Apple Pay Payment processing certificate is used by paytabs servers ONLY, there is nothng in the the integration code related to it..
- Apple Pay Merchant Identity certificate:
This certificate can be configured on ApplePay portal, to learn more you can check apple pay documention regarding this certificate here. You should be aware that in your request code, you will use .key & .cer files that are related to the Merchant identity certificate.
Note that you need to Add and verify your domain by following the instructions in the Apple Pay portal and this doman must be used from the same verified domain in the Apple Pay merchant identity certificate.
How to start integrating?
Reaching this level, once you have fulfilled the above, you can follow the instructions in our ApplePay Direct Payment Request solution article to initiate your payment with Apple Pay in the test profile. Additionally, PayTabs provides you with a sample code that you can use through the Test Profile (For web JS, find this sample code here,
Once you are done with your integration, you can start testing your payment by checking the Apple Pay testing credentials clarified here. However, PayTabs will authorize only the below card credentials:
|4761 2099 8001 1439||Visa||12/2025||090|
|4761 3497 5001 0326||Visa||12/2025|
|5204 2452 5046 0049||Mastercard||12/2024||111|
|5204 2452 5471 8095||MasterCard||12/2024 ||111|
|3717 377724 91005||American Express||02/2024||1111|
|3717 377570 42005||American Express||02/2024||1111|
|6011 0009 9458 9319||Discover||11/2024||111|
|6011 0009 9446 2780||Discover||11/2024||111|
Note that you MUST have a verified domain and Apple sandbox account to be able to test Apple Pay.