Device Payments

Integration Flow (Apple Pay)

Preparation

Please use CSR file provided by Tap for your Master Test Keys. Upload it to your Apple Pay developer account and provide the CER file back to us. Integrate the Apple Pay button to obtain the Apple Pay payload. Make sure to pass the correct country code for each country.

Save Apple Pay - with an Authorize Transaction

  1. Request for "Create Token for Apple Pay" API to obtain the “Token ID”
  2. Create an Authorize Request
    1. Pass the “Token ID” in the Source.
    2. Pass a small amount (1 SAR, 0.100 KWD, BHD)
    3. Apply Auto Void after 1 hour - To auto void the amount
    4. Pass 3DS as True - To Authenticate with 3DS
    5. Pass Customer Initiated as True
    6. Pass Save Card as True - To save the card after a successful card 3DS Authentication and Authorization.
    7. Pass the Customer ID - Generated by the customer API in the customer object.
    8. Pass the correct MID related to each country.
    9. Pass the Redirect URL to redirect back after the 3DS Authentication
    10. Pass the Post URL to pass the response after the 3DS Authentication
  3. Save the following details from the Authorize Response for future transactions.
    1. Authorize ID
    2. Authorize Status
    3. Card ID
    4. Customer ID
    5. Payment Agreement ID

Transactions - with a Save Apple Pay

Use the same Transaction flow for the Card and by using the Card ID that is linked with the Apple Pay DAN