Apple Pay redirect integration


With redirect integration, customers are redirected to a payment page to complete payment.

API

Create order > Wallet order. See also Examples > Apple Pay redirect.

Detecting Apple Pay on the customer’s device

If a customer uses an unsupported device to navigate to an Apple Pay payment page, they won’t be able to complete the payment. To prevent this, check whether Apple Pay is supported on the customer’s device before creating the payment page.

try {
    if (window.ApplePaySession && ApplePaySession.canMakePayments()) {
    console.log('Apple Pay available');
    // Create an Apple Pay payment page from your server
    }
    } catch (error) {
    console.debug('An error occurred while verifying if Apple Pay is available:', error);
    }

Feedback

Propose a change on GitHubexternal-link-icon or
send an email to [email protected]

Other languages

For an explanation in another language, contact your account manager.