Is it possible to receive merchant tokens in sandbox?

I'm trying to enable merchant tokens in my test environment. I'm using the demo code below:

{
    ...
    "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"
    },
    ...
}

I'm able to see the recurring prompts in the payment sheet, but after processing I do not see the merchant token anywhere. I'm looking in the paymentData object and I do not see the merchantTokenIdentifier. I've tried using the Visa, Mastercard, Amex, and Discover test cards, but still no luck. I seen similar threads on these forums, but never with an answer.

Has anybody been able to test merchant tokens in sandbox?

Answered by DTS Engineer in 809574022

Hi @applepayquestions,

The Apple Pay sandbox environment is intended to be used to test the provisioning of cards to Wallet, not payment transactions.

To see the expected merchantTokenIdentifier behavior, you should test in the production environment.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Accepted Answer

Hi @applepayquestions,

The Apple Pay sandbox environment is intended to be used to test the provisioning of cards to Wallet, not payment transactions.

To see the expected merchantTokenIdentifier behavior, you should test in the production environment.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Is it possible to receive merchant tokens in sandbox?
 
 
Q