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,




Testing Credentials


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 true below card credentials, and the other will fail for testing purposes:


NumberSchemeExpiration DateCVVAuthorized
4761 2099 8001 1439Visa12/2025090True
4761 3497 5001 0326Visa12/2025

747

False
5204 2452 5046 0049Mastercard12/2024111False
5204 2452 5471 8095MasterCard12/2024 111True
3717 377724 91005American Express02/20241111False
3717 377570 42005American Express02/20241111True
6011 0009 9458 9319
Discover
11/2024
111
False
6011 0009 9446 2780
Discover
11/2024
111True


Note that you MUST have a verified domain and Apple sandbox account to be able to test Apple Pay.