Apple Pay

Accept Apple Pay with your own Apple Pay integration.

🚧

Early release

Online payments is in early development (MVP). This section may change.

With Apple Pay, shoppers pay on Apple devices with a card stored in their Apple wallet. The card details are replaced by a secure token.

Apple Pay from your own checkout

If you run your own Apple Pay integration, you get a payment token from Apple when the shopper pays. Send it to Aera with Create direct payment session. Pass the token on exactly as you got it from Apple.

Example paymentMethodInfo: Apple Pay
"paymentMethodInfo": {
  "paymentMethodDetails": [
    {
      "method": "APPLEPAY",
      "applePay": {
        "poiChannel": "APP",
        "merchantIdentifier": "merchant.com.example.shop",
        "token": {
          "paymentMethod": {
            "displayName": "Visa 1234",
            "network": "Visa",
            "type": "debit"
          },
          "transactionIdentifier": "…",
          "paymentData": { }
        }
      }
    }
  ]
}
FieldRequiredDescription
poiChannelYesWhere the shopper started Apple Pay. WEB: on a website. APP: in your iOS app.
merchantIdentifierOnly for APPYour Apple Pay merchant identifier, from your Apple developer account. It tells Apple which merchant is asking for the payment.
token.paymentMethod.networkYesThe card network, for example Visa or Mastercard. Aera uses it to route the payment.
token.paymentMethod.displayNameNoThe card label Apple shows the shopper, for example "Visa 1234".
token.paymentMethod.typeNoThe card type, for example credit, debit or prepaid.
token.transactionIdentifierNoApple's identifier for the transaction.
token.paymentDataYesApple's encrypted payment data.

See Direct payments for how the response works.


Did this page help you?