Apple Pay

1 Introduction

Apple Pay™ is a digital wallet which lets you make card payments in a simple and fast manner, without having to enter your card details every time. The card data is securely stored by Apple. This payment method is available for selected browsers and Apple devices (phones and computers). A full list of supported countries and devices can be found on the Apple website.
Note: The description below concerns making the service available in a mobile app or by running the Apple Pay application directly from the website of the payment recipient (e-store).

2 Configuration

To support Apple Pay payments in your own mobile app or on a website, you first need an Apple Development Account and apply for Apple Developer Program . The approval time may take several days. Next you should perform the following actions:
  • create a Merchant ID,
  • create an Apple Pay Payment Processing Certificate,
  • create an Apple Pay Merchant Identity - applies only to web integration,
  • validate the domain - applies only to web integration.
If you do not wish to use Web integration, you may skip the last two steps.

2.1 Creating a Merchant ID

To create a Merchant ID, follow these steps:

  1. Log on to your Apple Developer account.
  2. Select Certificates, IDs & Profiles.
  3. Select Identifiers.
  4. Add a new Merchant ID by selecting the + sign in the top right of the screen.
  5. Enter an ID and description, and select Continue.
  6. Select Register to confirm the data entered.

2.2 Creating an Apple Pay Payment Processing Certificate

Before creating certificate please contact us and ask for CSR file which is required in below process

To create a Payment Processing Certificate identifier, follow these steps:

  1. Log on to your Apple Developer account.
  2. Select Certificates, IDs & Profiles.
  3. Select Identifiers.
  4. Select the Merchant ID that you have created, and select Edit. You can make your search easier by using the Merchant IDs filter at the top right of the screen.
  5. In the Apple Pay Payment Processing Certificate section, select Create Certificate.
  6. On the next screen select Continue.
  7. Take received CSR file from the PayU IT support department and upload it to the site, selecting Choose File and then Continue.
  8. Download the generated certificate.
  9. Send the downloaded certificate (the file apple_pay.cer) to the PayU IT support department.

2.3 Validating a domain

This applies only to web integration.

To validate a domain, follow these steps:

  1. Log on to your Apple Developer account.
  2. Select Certificates, IDs & Profiles.
  3. Select Identifiers.
  4. Select the Merchant ID that you have created, and select Edit. You can make your search easier by using the Merchant IDs filter at the top right of the screen.
  5. In the Merchant Domains section, select Add Domain.
  6. Enter the name of your domain and select Continue.
    The domain must support HTTPS. Check if the server settings are in accordance with Apple guidelines.
  7. Download the file apple-developer-merchantid-domain-association.txt.
    Download the file only once, before performing domain validation! Repeated download will generate new file content which may result in error in the domain validation process.
  8. Save the downloaded file on the server, in the location given by Apple.
  9. Select Verify.

2.4 Creating an Apple Pay Merchant Identity Certificate

This applies only to web integration.

To create an Apple Pay Merchant Identity Certificate, follow these steps:

  1. Log on to your Apple Developer account.
  2. Select Certificates, IDs & Profiles.
  3. Select Identifiers.
  4. Select the Merchant ID that you have created, and select Edit. You can make your search easier by using the Merchant IDs filter at the top right of the screen.
  5. In the Apple Pay Merchant Identity Certificate section, select Create Certificate.
  6. In order to prepare the CSR file, follow the steps described on the Apple website, and then select Continue.
  7. Copy the generated CSR file, by selecting Choose File and then Continue.
  8. Download the generated certificate (merchant_id.cer) and open it in the Keychain Access application on a Mac computer.
  9. In Keychain Access, select the imported certificate and export it to .p12 format (Personal Information Exchange).
  10. (optional) Run the command:
    openssl pkcs12 -in merchant_id.p12 -out merchant_id.pem -nodes -clcerts
    If you prefer .p12 format for the certificates and you find it easier to manage them in this format, you can skip this step.
  11. Copy the created certificate in the prefered format onto the server. It will be needed to create an Apple Pay Payment Session in the store validation process, during payment creation.

3 Integration

In case of using multi-currency payments along with Apple Pay in transparent integration, when creating Apple Pay Session, use the amount after currency conversion, calculated as described.

3.1 iOS integration

To integrate a mobile app with Apple Pay, follow the instructions at Apple Developer.

To make the integration easier, use the technical documentation for the PayU | Mobile SDK.

3.2 Web integration

To integrate a website with Apple Pay, follow the instructions at Apple Developer.

When creating an Apple Pay Session, note that PayU supports only Visa and MasterCard payment cards under the 3DS protocol, and thus requires correct parameterization of the created Apple Pay request (regardless of whether you are using the Apple Pay JS API or the Payment Request API):

                var request = {
                    ...,
                    supportedNetworks: ['visa', 'masterCard'],
                    merchantCapabilities: ['supports3DS'],
                    ...
                }
            
Note also that for each session created it is necessary to handle the events:
  • onvalidatemerchant - note here that the request to create an Apple Pay Payment Session must be from the server part of your Web application;
  • onpaymentauthorized - where in its response Apple will return a PaymentData object (JSON), sending a securely encrypted Apple Pay token in the event.payment.token.paymentData field.

An example Apple Pay Token looks like this:

{
  "version": "EC_v1",
  "data": "DjI8Ez7nPhVo742aGEzABz/TfxCPt9LSdf2/h+0xIgVJbi3fQqd4lv3ogoTI3SQ7vZrDAWI8g2lbd5sflXBHc0z+wSeybsCcqZB3n1edRFXU7+6DYmdhFFWWCejwUc6XZWmsSaVNEQf+Kc0SeYrj8Eskdapj8bYX/QXxXSPqS4IKSjB+f3O0gUXSq7LK/jA9dl+BbWW0l3gXERU6n5rcYndO5rnjiwNUpnm7EMIMfNU+IPbsubpL82kbL2MdMJB1grel03J4JKld6G0pFSmjR2mF/xBY/yKkADRhoQkVlDRicuKVMpdRXXbIQjw/yRkLv/u8iy1wXI5YmEBB+W4QpPYsuxys94gMPaKhcaEK/OaT099aFrNBezbuLMTcTzbhXOpPwWn9pkAK0eZNOQ==",
  "signature": "MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCAMIID5jCCA4ugAwIBAgIIaGD2mdnMpw8wCgYIKoZIzj0EAwIwejEuMCwGA1UEAwwlQXBwbGUgQXBwbGljYXRpb24gSW50ZWdyYXRpb24gQ0EgLSBHMzEmMCQGA1UECwwdQXBwbGUgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxEzARBgNVBAoMCkFwcGxlIEluYy4xCzAJBgNVBAYTAlVTMB4XDTE2MDYwMzE4MTY0MFoXDTIxMDYwMjE4MTY0MFowYjEoMCYGA1UEAwwfZWNjLXNtcC1icm9rZXItc2lnbl9VQzQtU0FOREJPWDEUMBIGA1UECwwLaU9TIFN5c3RlbXMxEzARBgNVBAoMCkFwcGxlIEluYy4xCzAJBgNVBAYTAlVTMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEgjD9q8Oc914gLFDZm0US5jfiqQHdbLPgsc1LUmeY+M9OvegaJajCHkwz3c6OKpbC9q+hkwNFxOh6RCbOlRsSlaOCAhEwggINMEUGCCsGAQU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DEdMBswDQYJYIZIAWUDBAIBBQChCgYIKoZIzj0EAwIwLwYJKoZIhvcNAQkEMSIEIBNaremBDR0D1ce2XAumx48/cBQTmTUCIKOorS691HalMAoGCCqGSM49BAMCBEgwRgIhAMo2KJMjjTBM+utlcDXhhr9tJwKWPNSCA7n4FVzANThwAiEAqsxTTm92dw0ZO38YaxnZu3WmRa8HnVM8KsxhhDceOyAAAAAAAAA=",
  "header": {
    "ephemeralPublicKey": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEZMzlWOx8Xo8pXlOvzYONy+gvUy59ZOeuCov3kzc7fESczZTyvmA9dU9AdVMFaYyfCXlMG5oedi3Wy4yubqfxtg==",
    "publicKeyHash": "xrJqUFO2jN5edGS8iETkfNXtwqnwSqRUUrQJBysFpZ8=",
    "transactionId": "aa0b77fbb4f64cd3e5deef65177938b2d836e0d7d93d58000d8d54cfca19ae13"
  }
}
            

4 Order

To charge a payment card stored in Apple Pay, you must place an extended payMethods object in an OrderCreateRequest.

The payMethods.payMethod object must contain the authorizationCode field, the value of which is the Apple Pay token parameter encoded using the Base64 function. The field payMethod.value should have the value jp, and payMethod.type should have the value PBL.

      "payMethods": {
          "payMethod": {
               "value": "jp",
               "type": "PBL",
               "authorizationCode": "ewogICJ2ZXJzaW9uIjogIkVDX3YxIiwKICAiZGF0YSI6ICJEakk4RXo3blBoVm83NDJhR0V6QUJ6L1RmeENQdDlMU2RmMi9oKzB4SWdWSmJpM2ZRcWQ0bHYzb2dvVEkzU1E3dlpyREFXSThnMmxiZDVzZmxYQkhjMHord1NleWJzQ2NxWkIzbjFlZFJGWFU3KzZEWW1kaEZGV1dDZWp3VWM2WFpXbXNTYVZORVFmK0tjMFNlWXJqOEVza2RhcGo4YllYL1FYeFhTUHFTNElLU2pCK2YzTzBnVVhTcTdMSy9qQTlkbCtCYldXMGwzZ1hFUlU2bjVyY1luZE81cm5qaXdOVXBubTdFTUlNZk5VK0lQYnN1YnBMODJrYkwyTWRNSkIxZ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WRlciI6IHsKICAgICJlcGhlbWVyYWxQdWJsaWNLZXkiOiAiTUZrd0V3WUhLb1pJemowQ0FRWUlLb1pJemowREFRY0RRZ0FFWk16bFdPeDhYbzhwWGxPdnpZT055K2d2VXk1OVpPZXVDb3Yza3pjN2ZFU2N6WlR5dm1BOWRVOUFkVk1GYVl5ZkNYbE1HNW9lZGkzV3k0eXVicWZ4dGc9PSIsCiAgICAicHVibGljS2V5SGFzaCI6ICJ4ckpxVUZPMmpONWVkR1M4aUVUa2ZOWHR3cW53U3FSVVVyUUpCeXNGcFo4PSIsCiAgICAidHJhbnNhY3Rpb25JZCI6ICJhYTBiNzdmYmI0ZjY0Y2QzZTVkZWVmNjUxNzc5MzhiMmQ4MzZlMGQ3ZDkzZDU4MDAwZDhkNTRjZmNhMTlhZTEzIgogIH0KfQ=="
          }
      }
            

Further processing of the request is subject to the standard process described in the REST API documentation.

As the orders paid with the Apple Pay method shall be settled just as standard card payments, it is worth considering the integration of the service transaction data retrieve. In this manner, you will be able to differentiate cards entered through the PayU form from cards downloaded from Apple Pay.

5 Sandbox

The Apple Pay payment method is also available in a sandbox environment. In the integration process, we suggest creating an independent Merchant ID (with a name ending “.test”, for example) together with a set of certificates.

Because Apple Pay is not the default payment method, please contact the PayU IT support department after registering in the sandbox environment, but before beginning integration using the Apple Pay payment method. In response you receive also CSR file for Sandbox environment.

Before beginning to perform tests in the sandbox, please also read the Apple sandbox testing instructions.

We recommend using the card numbers:
  • 5204 2477 5000 1471
  • 4761 1200 1000 0492
since these are configured in the PayU sandbox to enable payments to be completed successfully.

6 Status Codes

Status codes
HTTP Status Code Status Code Description
400 Bad request ERROR_VALUE_INVALID (statusDesc: Bad Request Amount is different in request and token) Amount in Apple Pay token is not equal to amount in totalAmount.
ERROR_VALUE_INVALID (statusDesc: Bad Request Transactions with same id found) Apple Pay token was already used.
ERROR_VALUE_INVALID (statusDesc: Bad Request Apple Pay token too old) Apple Pay token validity time expired.
ERROR_VALUE_INVALID (statusDesc: Bad Request Currency is different in request and token) Currnecy code in Apple Pay token is inconsistent with request.