Getting an MPAN, merchant token or merchantTokenIdentifier

We are trying to retrieve merchant tokens from ApplePay. We used the javascript codes from Apple Pay demo site to request for a recurring payment from the frontend.

"recurringPaymentRequest": {
    "paymentDescription": "A description of the recurring payment to display to the user in the payment sheet.",
    "regularBilling": {
        "label": "Recurring",
        "amount": "4.99",
        "paymentTiming": "recurring",
        "recurringPaymentStartDate": "2023-08-11T11:20:32.369Z"
    },
    "trialBilling": {
        "label": "7 Day Trial",
        "amount": "0.00",
        "paymentTiming": "recurring",
        "recurringPaymentEndDate": "2023-08-11T11:20:32.369Z"
    },
    "billingAgreement": "A localized billing agreement displayed to the user in the payment sheet prior to the payment authorization.",
    "managementURL": "https://applepaydemo.apple.com",
    "tokenNotificationURL": "https://applepaydemo.apple.com"
}

Payment was successful, but merchantTokenIdentifier is not shown in the in decrypted ApplePay token, regardless of test card used. We tried Visa and MasterCard.

Answered by DTS Engineer in 811393022

Hi @shahezysleezy,

If a payment network doesn't support MPAN for the transaction, it will fallback to DPAN. The intended use case for the Apple Pay sandbox environment is for provisioning cards on device, not for validating payment transactions. Please use your payment network's testing environment to perform end-to-end testing of merchant token-based payments. Just keep in mind, your implementation should support the handling of both MPAN and/or DPAN for Apple Pay transactions to prevent payment token decryption failures.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Hi @shahezysleezy,

If a payment network doesn't support MPAN for the transaction, it will fallback to DPAN. The intended use case for the Apple Pay sandbox environment is for provisioning cards on device, not for validating payment transactions. Please use your payment network's testing environment to perform end-to-end testing of merchant token-based payments. Just keep in mind, your implementation should support the handling of both MPAN and/or DPAN for Apple Pay transactions to prevent payment token decryption failures.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Hi @DTS Engineer ,

Is there a way to find out which payment networks (banks) support MPAN?

I tried several different cards from several different banks in the UK (using on production), a none of them seems to be supporting MPAN (merchantTokenIdentifier is not in the decrypt payload).

Just want to make sure I'm doing everything right.

Thank you.

Kind regards, Zoran

Getting an MPAN, merchant token or merchantTokenIdentifier
 
 
Q