Skip to content

Last updated: 27 November 2026 | Change log

Apple Pay

Add Apple Pay to iOS apps, watchOS apps and to websites for these supported countries.

Make an Apple Pay payment by providing the encrypted payload (wallet token) in the payments request.

Mastercard, Visa, Amex and Discover branded Apple Pay payments receive liability shift.

Recurring payments

Use the setup a recurring payment and subsequent recurring payment guides when setting up recurring payments using an Apple Pay wallet.

1. Get started

  1. Read through Apple's overview.
  2. Create an Apple Merchant ID.
  3. Ask your Worldpay Implementation Manager to enable Apple Pay.
  4. Get your Certificate Signing Request (CSR) from your Worldpay Implementation Manager.
  5. Use your CSR to get your payment processing certificate from Apple.
  1. Enable Apple Pay in Xcode.
  2. Set merchantCapabilities to PKMerchantCapability3DS, as Worldpay only supports 3DS.
  1. Register and verify any domains that will host Apple Pay.
  2. Create a merchant identity certificate. This is used to establish a secure connection between your servers and Apple's servers.
  3. Set merchantCapabilities to PKMerchantCapability3DS, as Worldpay only supports 3DS.

Supported card brands

Set the supportedNetworks property in your integration with Apple Pay to control available payment networks.

Note

We support Apple Pay payments with Visa, Mastercard, Maestro, American Express (Amex), Discover, eftpos, and Cartes Bancaires.

Card metadata

Mobile wallet payment authorizations use network tokens for increased security and risk reduction benefits. These payment instruments are sometimes referred to as a Device Primary Account Number (DPAN), or Merchant Primary Account Number (MPAN).

This means that the last four digits returned in your payment authorization response contain the last four digits of the network token, rather than the actual (or funding) card number. The funding card number (commonly referred to as the funding PAN, or FPAN) is the number of the card that was added to your customer's Apple or Google wallet.

You may optionally send the last four digits of the funding card number where this is returned to you by the mobile wallet provider.

Apple returns the last four digits of the FPAN along with the card brand in paymentMethod.displayName:

{
    "paymentMethod": {
        "type": "credit",
        "network": "Visa",
        "displayName": "Visa 1111"
    },
    "paymentData": {
        "data": "JcSb4dG6H5ELVet3oJiYBO=",
        "signature": "MIAGVSqGRICB+lelK0RexAAAA==",
        "header": {
            "publicKeyHash": "h/ffJj1ZUo=",
            "ephemeralPublicKey": "MFkwEwYOHWZ/Xmx3iyA==",
            "transactionId": "4d3cf2d31a"
        },
        "version": "EC_v1"
    },
    "transactionIdentifier": "4d2cf2d73a0621cf5d7ee5f35546d562ec5b6401d9b38ae92f866f9ea210001b"
}

Apple does not guarantee that the last four digits of the FPAN will be returned in every payment response.

2. Basic request

The paymentInstrument.walletToken is taken from payment.paymentToken.paymentData in the Apple Pay payment request.

A one-off card payment using a plain card number

{ "transactionReference": "Memory265-13/08/1876", "orderReference": "order-12345", "merchant": { "entity": "default" }, "instruction": { "method": "card", "paymentInstrument": { "type": "plain", "cardHolderName": "Sherlock Holmes", "cardNumber": "4000000000001091", "expiryDate": { "month": 5, "year": 2035 }, "billingAddress": { "address1": "221B Baker Street", "address2": "Marylebone", "address3": "Westminster", "postalCode": "SW1 1AA", "city": "London", "state": "Greater London", "countryCode": "GB" }, "cvc": "123" }, "narrative": { "line1": "trading name" }, "value": { "currency": "GBP", "amount": 42 } } }

3. Add additional features

4. Response

Features that change the API flow

Certain features add additional requests and responses:

  • Auto Settlement - automatic 202 - sentForSettlement following authorization.
    • If any of the AVS/CVC response riskFactors are marked as notMatched the payment is sentForCancellation automatically by default but we can disable this.
Response

Example of an authorized response. Use the action settlePayment to complete the transaction

{ "outcome": "authorized", "paymentId": "payI-dUcet9fk4_X4qZU0hpU0", "commandId": "cmd026y9Ec-LjjCYkr4NgDvU0", "transactionReference": "Memory265-13/08/1876", "schemeReference": "060720116005060", "issuer": { "authorizationCode": "675725" }, "riskFactors": [ { "risk": "notChecked", "type": "cvc" }, { "risk": "notChecked", "detail": "address", "type": "avs" }, { "risk": "notChecked", "detail": "postcode", "type": "avs" } ], "paymentInstrument": { "type": "card/plain+masked", "cardBin": "400000", "lastFour": "1000", "countryCode": "GB", "expiryDate": { "year": 2035, "month": 5 }, "cardBrand": "mastercard", "fundingType": "debit", "category": "consumer", "issuerName": "BANK LIMITED", "paymentAccountReference": "3001DBT34Q41D6J7PFC5W0UACOT4C" }, "_links": { "self": { "href": "https://try.access.worldpay-bsh.securedataplatform.co.uk/api/payments/eyJrIjoxLCJkIjoiN3VTNVpzK1h4UVFNL1R4aGZjSVV5TFFhMWZlNXRLOVM3M0k1MVdwN21PMXIySnNadTJ5YUhzZE45dDN5TDRnYk8rQk9PTzJzVWUxTkZUeXFBWjJZMUE9PSJ9" } }, "_actions": { "cancelPayment": { "href": "https://try.access.worldpay-bsh.securedataplatform.co.uk/api/payments/eyJrIjoxLCJkIjoiN3VTNVpzK1h4UVFNL1R4aGZjSVV5TFFhMWZlNXRLOVM3M0k1MVdwN21PMXIySnNadTJ5YUhzZE45dDN5TDRnYk8rQk9PTzJzVWUxTkZUeXFBWjJZMUE9PSJ9/cancellations", "method": "POST" }, "partiallyCancelPayment": { "href": "https://try.access.worldpay-bsh.securedataplatform.co.uk/api/payments/eyJrIjoxLCJkIjoiN3VTNVpzK1h4UVFNL1R4aGZjSVV5TFFhMWZlNXRLOVM3M0k1MVdwN21PMXIySnNadTJ5YUhzZE45dDN5TDRnYk8rQk9PTzJzVWUxTkZUeXFBWjJZMUE9PSJ9/partialCancellations", "method": "POST" }, "settlePayment": { "href": "https://try.access.worldpay-bsh.securedataplatform.co.uk/api/payments/eyJrIjoxLCJkIjoiN3VTNVpzK1h4UVFNL1R4aGZjSVV5TFFhMWZlNXRLOVM3M0k1MVdwN21PMXIySnNadTJ5YUhzZE45dDN5TDRnYk8rQk9PTzJzVWUxTkZUeXFBWjJZMUE9PSJ9/settlements", "method": "POST" }, "partiallySettlePayment": { "href": "https://try.access.worldpay-bsh.securedataplatform.co.uk/api/payments/eyJrIjoxLCJkIjoiN3VTNVpzK1h4UVFNL1R4aGZjSVV5TFFhMWZlNXRLOVM3M0k1MVdwN21PMXIySnNadTJ5YUhzZE45dDN5TDRnYk8rQk9PTzJzVWUxTkZUeXFBWjJZMUE9PSJ9/partialSettlements", "method": "POST" }, "reversePayment": { "href": "https://try.access.worldpay-bsh.securedataplatform.co.uk/api/payments/eyJrIjoxLCJkIjoiN3VTNVpzK1h4UVFNL1R4aGZjSVV5TFFhMWZlNXRLOVM3M0k1MVdwN21PMXIySnNadTJ5YUhzZE45dDN5TDRnYk8rQk9PTzJzVWUxTkZUeXFBWjJZMUE9PSJ9/reversals", "method": "POST" } } }