Skip to content

Apple Pay on own checkout

This chapter describes the Apple Pay integration for those who want to add the Apple Pay button to the website checkout page.

Apple Pay processing flow

  1. Device compatibility check. Opening the payment session. Displaying the Apple Pay button, if supported on the device.
  2. Merchant and domain validation by Apple Pay.
  3. Collecting the billing data. Payment authorization by a customer using Face ID, Touch IDs or double-click in Apple Watch.
  4. Getting PaymentToken from Apple Pay.
  5. Processing payment and authorization requests with the decrypted paymentData.
  6. Displaying the payment status to the customer. Sending the payment result to Apple.

Integration options

You can incorporate Apple Pay on own checkout by using one of the following options:

  • Apple Pay JS by PayCross (for websites only);
  • Self-developed JS.

Info

Before you start, make sure that you finished [the registration](/en/payment_methods/wallets/apple_pay/registration/) with Apple. Both setup options available for the websites.

Apple Pay JS by PayCross

PayCross developed its own library similar to the library of the payment widget. It simplifies the integration since payment and authorization requests are sent automatically.

To check if Apple Pay payments can be initiated and processed, follow the steps below:

1. Install the library on your website:

<script type="text/javascript" src="https://js.pay-cross.com/widget/apple_pay.js"></script>

2. Locate the block which stands for the Apple Pay button:

<div id="apple-pay-button"></div>

For Apply Pay button customization, insert the code below in the <head> section and make the adjustments using the browser developer tools.

Code example for Pay button customization
<style>
@supports (-webkit-appearance: -apple-pay-button) {
  .apple-pay-button-with-text {
    display: inline-block;
    cursor: pointer;
    max-width: 420px;
    width: 100%;
    height: 40px;
    -webkit-appearance: -apple-pay-button;
  }
  .apple-pay-button-with-text > * {
    display: none;
  }
  @media screen and (max-width: 480px){
    .apple-pay-button-white-with-text {
      width: 285px;
    }
  }
  .apple-pay-button-black-with-text {
    -apple-pay-button-style: black;
  }
  .apple-pay-button-white-with-text {
    -apple-pay-button-style: white;
  }
  .apple-pay-button-white-with-line-with-text {
    -apple-pay-button-style: white-outline;
  }
}

@supports not (-webkit-appearance: -apple-pay-button) {
  .apple-pay-button-with-text {
    --apple-pay-scale: 1; /* (height / 32) */
    display: inline-flex;
    justify-content: center;
    font-size: 12px;
    border-radius: 5px;
    padding: 0px;
    box-sizing: border-box;
    min-width: 200px;
    min-height: 32px;
    max-height: 64px;
  }
  .apple-pay-button-black-with-text {
    background-color: black;
    color: white;
  }
  @media screen and (max-width: 480px){
    .apple-pay-button-white-with-text {
      width: 285px
    }
  }
  .apple-pay-button-white-with-text {
    background-color: white;
    color: black;
  }
  .apple-pay-button-white-with-line-with-text {
    background-color: white;
    color: black;
    border: .5px solid black;
  }
  .apple-pay-button-with-text.apple-pay-button-black-with-text > .logo {
    background-image: -webkit-named-image(apple-pay-logo-white);
    background-color: black;
  }
  .apple-pay-button-with-text.apple-pay-button-white-with-text > .logo {
    background-image: -webkit-named-image(apple-pay-logo-black);
    background-color: white;
  }
  .apple-pay-button-with-text.apple-pay-button-white-with-line-with-text > .logo {
    background-image: -webkit-named-image(apple-pay-logo-black);
    background-color: white;
  }
  .apple-pay-button-with-text > .text {
    font-family: -apple-system;
    font-size: calc(1em * var(--apple-pay-scale));
    font-weight: 300;
    align-self: center;
    margin-right: calc(2px * var(--apple-pay-scale));
  }
  .apple-pay-button-with-text > .logo {
    width: calc(35px * var(--scale));
    height: 100%;
    background-size: 100% 60%;
    background-repeat: no-repeat;
    background-position: 0 50%;
    margin-left: calc(2px * var(--apple-pay-scale));
    border: none;
  }
}
</style>

3. Add the JavaScript code according to the example to initiate a payment.

Code example with the token
<script defer>
      const params = {
        checkout_url: "https://panel.pay-cross.com",
        containerId: "apple-pay-button",
        token: "{PAYMENT TOKEN}",
        onSuccess: (response) => {},              
        onInitalError: (error) => {},
      };
      new ApplePay(params);
</script>
Code example with the public key
<script defer>
      const params = {
        checkout_url: "https://panel.pay-cross.com",
        containerId: "apple-pay-button",
        public_key: "{SHOP PUBLIC KEY}",
        checkout: {
          transaction_type: "payment",
          order: {
            currency: "USD",
            amount: 100,
            description: "Test description",
          },
          test: true,
        },
        onSuccess: (response) => {},              
        onInitalError: (error) => {},
      };
      new ApplePay(params);
</script>  
Parameter Type Description
checkout_url * required
string https://panel.pay-cross.com
token string A payment token. To get the token, make a request described on the Payment token page.
public_key * conditionally required
string The shop public key. Required if the token parameter is not sent.
onSuccess callback function Parameter for processing webhook notifications about the transaction results.
onInitalError callback function Parameter for processing webhook notifications about payment initialization errors.

The response to the payment request with Apple Pay token will be returned with the processing status and fully conforms to the payment or authorization transaction response.

Self-developed JS

For this integration option you are supposed to use the front-end on the customer's device and the back-end to call the PayCross API. To initiate a payment, add the JavaScript code that conforms to Apple Pay JS, but also send the validation and payment requests to the PayCross system.

Example of JavaScript-code to initiate Apple Pay payment
if (window.ApplePaySession) { 
    //Device check
    var merchantIdentifier = '{YOUR APPLE MERCHANT ID}';
    var promise = ApplePaySession.canMakePaymentsWithActiveCard(merchantIdentifier);
    promise.then(function (canMakePayments) {
        if (canMakePayments) { 
            //Apple Pay button display
            $('#apple-pay').show();
        }
    });
}
$('#apple-pay').click(function () { 
    //Button click handling
    var request = {
        //requiredShippingContactFields: ['postalAddress', 'name', 'phone', 'email'], //Add if shipping details are required
        //requiredBillingContactFields: ['postalAddress'], //Add if billing contact details are required
        countryCode: 'US',
        currencyCode: 'USD',
        supportedNetworks: ['visa', 'masterCard'],
        merchantCapabilities: ['supports3DS'],
        total: { 
            //Order and amount description. Use the Latin letters only!
            label: 'Test',
            amount: '1.00'
        },
    }
    var session = new ApplePaySession(3, request);

    //Payment session event handler
    session.onvalidatemerchant = function (event) {
        var data = {
            url: event.validationURL
        };
        //Domain validation
        //To initiate a payment session, send the request to your server, then send the validation request to the PayCross API as described below.
        $.post("https://panel.pay-cross.com/ctp/api/apple_pay/validate", data).then(function (result) {
            session.completeMerchantValidation(result.Model);
        });
    };

    //payment authorization event handler
    session.onpaymentauthorized = function (event) {

        //var email = event.payment.shippingContact.emailAddress; //Add if email is required
        //var phone = event.payment.shippingContact.phoneNumber; //Add if phone is required
        //all available variables are described on https://developer.apple.com/reference/applepayjs/paymentcontact

        var data = {
            request: event.payment.token
        };
        //Payment request
        //Convert the JSON response received after the payment authorization to the Base64-strict format.
        //Send the received token to PayCross API.
        //Alternatively, you can send the received token to your server (for example https://example.com/apple), and then therefrom send the payment, authorization or charge request with the encrypted Apple Pay token in the required format.
        $.post("https://panel.pay-cross.com/apple_pay/payment", data).then(function (result) {
            var status;
            if (result.Success) {
                status = ApplePaySession.STATUS_SUCCESS;
            } else {
                status = ApplePaySession.STATUS_FAILURE;
                }

            session.completePayment(status);
        });
    };

    //payment session with PayCross API
    session.begin();
});

Info

The sample JS uses the jQuery library. Nothing else is required, Safari provides all objects for Apple Pay.

Validation

To get PaymentToken from Apple, open a payment session and send the request to get your Apple Merchant ID and your domain validated.

Request

Send a POST request to https://panel.pay-cross.com/ctp/api/apple_pay/validate with the X-API-Version: 2 header and the following parameters in the request body:

Parameter Type Description
url * required
string The value of event.verificationURL set during the Apple Pay payment session and transmitted to your server.
token * required
string Token used to authorize a payment in the PayCross system instead of the Shop Secret or Public Keys.
context * required
string Set to merchant.
Example of the validation request
{
    "url":"{event.validationURL}", // for example, https://apple-pay.apple.com
    "token":"{payment token}", // not required if you send the authorization headers (shop_id + secret_key or public_key)!
    "context":"merchant"
}
Response

The response contains the JSON-serialized object of Apple Pay payment session (expires in 5 minutes), which you should return as a response to the request from the customer's device to get the PaymentToken.


Payment with encrypted paymentData

Request

To get the payment with encrypted paymentData processed by PayCross, send the payment, authorization or charge request, where you should submit the encrypted Apple Pay token as the value of request.credit_card.token in the format described below.

The required format of the encrypted Apple Pay token sent as a card token

Submit the encrypted Apple Pay token in requests as the card token in the $begateway_apple_pay_1_0_0$<base64-encoded_paymentData_here> format, where:

  • $begateway_apple_pay_1_0_0$ is the required prefix for the encrypted Apple Pay token;
  • <base64-encoded_paymentData_here> is the encrypted paymentData property of the PaymentToken serialized into JSON and then converted to the Base64-strict format.

For recurring payments and payments with the saved card data, get the PayCross payment token by sending the request.additional_data.contract parameter in the payment or authorization requests.

The required format of the JSON-serialized encrypted paymentData property
{
"paymentData": {
    "version": "EC_v1",
    "header": {
    "publicKeyHash": "sMqKpcUQU8763PUTXhPSo98wlJsqdqxc4rBdqNEnb0U=",
    "ephemeralPublicKey": "MFkwEwYHKoZIzj0QAdYIKoZIzj0DAQcDQgAEcjh7gGVcf1z87WBF2CfNfD6LIzjxvb8fflmeVsN3U5ixHLuCrCp2gXipnVdpb0NVy1Jf6TvLlbPpUdD6LcyNg==",
    "transactionId": "8b1b1dade0bfbc8f1f6677889bd36191a235ca1f26736e3b96970459545ad56e"
    },
    "data": "eHaJz9z1jQL3K6h9aCxMK8rtrAJ33e3RS48uVSQtDOXKZkjQAdCG4zG3zoi04JFTcdxeD2D3Tswbe0gzRyZTjrLjqJWvTa1Zkk2tA8B3aOxi6vkv8DQtLWaEGdySwXLMwBVbXjKEWy3ZnXEQCn2nnUcycxUt4b4NV0IWXUNnlqQstwjI5l5inDIZk11LnRehCp6+wOcMeEFd2vH6eTv7poWwt4zL+WHqsJMQajk8UOFvccNXmu80IqCdPeKLHA0w4ciHToQmw4iRhg7dkMFa3FzAsAqBvgoX1c2NVf6o9yBFwnBsVnH5s9IrpZszIJ0ZIVduAEii2wXZG4TF8w2TnIacoL5yKB7LdY4Xzbw7MSyerIzz0cyxSTaxxJsF8oYtyuJwRMUtJdCWs6gvaLM5zjZZpoF2got",
    "signature": "MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCAMIID5DCCA4ugAwIBAgIIWdihvKr0480wCgYIKoZIzj0EAwIwejEuMCwGA1UEAwwlQXBwbGUgQXBwbGljYXRpb24gSW50ZWdyYXRpb24gQ0EgLSBHMzEmMCQGA1UECwwdQXBwbGUgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxEzARBgNVBAoMCkFwcGxlIEluYy4xCzAJBgNVBAYTAlVTMB4XDTIxMDQyMDE5MzcwMFoXDTI2MDQxOTE5MzY1OVowYjEoMCYGA1UEAwwfZWNjLXNtcC1icm9rZXItc2lnbl9VQzQtU0FOREJPWDEUMBIGA1UECwwLaU9TIFN5c3RlbXMxEzARBgNVBAoMCkFwcGxlIElu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swCQYDVQQGEwJVUwIIWdihvKr0480wDQYJYIZIAWUDBAIBBQCggZUwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMjExMTE2MDY1MDAzWjAqBgkqhkiG9w0BCTQxHTAbMA0GCWCGSAFlAwQCAQUAoQoGCCqGSM49BAMCMC8GCSqGSIb3DQEJBDEiBCDB2GozvMqU+QEjGh0WHMVNOlW6ZNeeXBnXWEDQd64otDAKBggqhkjOPQQDAgRIMEYCIQCGVTf3W+opgDSb6Mcr5FLbEaPSqt3wWHEBCgHDw2mgIhAK7azZOJ0FVJSbvz3pcUeFDOkP1C1ovCyDMGPyAHZwAAAAAAAA"
}
}
Example of the payment request with the encrypted Apple Pay token
{
"request": {
    "amount": 100,
    "currency": "USD",
    "description": "Apple Pay test transaction",
    "tracking_id": "your_uniq_number",
    "credit_card": {
    "token": "$begateway_apple_pay_1_0_0$eyJwYXltZW50RGF0YSI6eyJ2ZXJzaW9uIjoiRUNfdjEiLCJkYXRhIjoiK09kVHg0M3dvZ0MyKzMxaDFSaTVjTEJLQXk0VFZNWVhjOEd1Z0ZJK3hyZFZsczNpSjd4ZWpaakE5R0tORVJSL21lS1RxcnFuZEwwQ2hVNXE4eTFWQld4RTBDUGlEVVBuUm04NE5MRUxZWjhBZE5xcTl2WnZyQWl2dU85eFhnWGw1bUluY2hmaUo3eG1aYVpQY0RSUS9aT1ZQd21Bd05hRFVUeEMvblN0ZDdyV25kVVk4L3NTSmh3MElKNk00OXpZandueTU0eGlUVE5rOXJobnZrc1Rta1pwV0dKc0tjdGJVN3diNWY0QlVnQTRZMlFPTy9WbWJmRWttNXdESzNRb2RDbHRibXRFNHc4RHRFeW1FdER1VDdtM1ptbmpZYlBjRGlDdXQ4dFBzNXY0RXBtR0VCQ1VRZzg5S3I1QnJzMms0THZjbTZjbXdkSzdqWXFiZlN3KythTjN4cVJSZkJ5bTVjMnNCbno5YWRHbzhZSzJudzdhZndVRWhZWUdSSm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TW9WRXlxdmJQUEE9PSIsInB1YmxpY0tleUhhc2giOiJHY2ZhbmFvZWlWaHFrZ0ZoWXkyR29KQjRGNXBIWkROTERTcG90NmRtejk4PSIsInRyYW5zYWN0aW9uSWQiOiIxNDg4N2MyOTc4OTQ1MGZjZjg5OTMwMmFmZTVmNzMyMzVmNTEwNTA3MjliZGY3MGI4ZDZhZDk3NWQzYzEwNGJiIn19LCJwYXltZW50TWV0aG9kIjp7ImRpc3BsYXlOYW1lIjoiTWFzdGVyQ2FyZCA0MzE4IiwibmV0d29yayI6Ik1hc3RlckNhcmQiLCJ0eXBlIjoiY3JlZGl0In0sInRyYW5zYWN0aW9uSWRlbnRpZmllciI6IjE0ODg3QzI5Nzg5NDUwRkNGODk5MzAyQUZFNUY3MzIzNUY1MTA1MDcyOUJERjcwQjhENkFEOTc1RDNDMTA0QkIifQ=="
    }
}
}
Response

The response to the payment request with Apple Pay token will be returned with the processing status and fully conforms to the payment or authorization transaction response.