myTU Docs

Apple Pay

Accept Apple Pay on the myTU hosted payment page, or in your own checkout.

With Apple Pay, your customers pay with a card stored in their Apple Wallet, confirmed with Face ID, Touch ID or their device passcode. They don't enter card details. Apple Pay works in Safari and in apps on supported Apple devices.

You can accept Apple Pay in two ways:

IntegrationHow it worksApple registration
Hosted payment pagemyTU shows the Apple Pay button on the hosted payment page.Not needed
Your own checkoutYou show the Apple Pay button in your own checkout and send the payment token to the API.Needed: you integrate with Apple Pay on the web

Hosted payment page

On the hosted payment page, you don't need to register with Apple. The page checks whether your customer's device and browser support Apple Pay, and only then shows the Apple Pay button.

Once Apple Pay is active in your project, it appears on the hosted payment page along with your other payment methods. To send your customer straight to Apple Pay, create the order with apple-pay as the payment method:

curl https://api.gw.mytu.co/v1/orders/ \
  --user "$API_KEY:" \
  --header "Content-Type: application/json" \
  --data '{
    "currency": "EUR",
    "amount": 995,
    "merchant_order_id": "EXAMPLE001",
    "description": "Example Apple Pay order",
    "return_url": "https://www.example.com/order/EXAMPLE001",
    "webhook_url": "https://www.example.com/webhook",
    "transactions": [
      {
        "payment_method": "apple-pay"
      }
    ],
    "customer": {
      "merchant_customer_id": "123456789",
      "email_address": "user@example.com",
      "first_name": "John",
      "last_name": "Smith",
      "address_type": "billing",
      "address": "100 Main St",
      "postal_code": "SW1A 1AA",
      "city": "London",
      "country": "GB",
      "locale": "en",
      "phone_numbers": ["+441234567890"],
      "ip_address": "198.51.100.1"
    }
  }'

Redirect your customer to the payment_url of the transaction in the response. Then handle the result as for any other payment: confirm the payment.

Your own checkout

To show the Apple Pay button in your own checkout instead, you integrate with Apple yourself and pass the payment token to myTU. See Apple Pay in your own checkout.

Customer details

Send the customer object with every Apple Pay order. Depending on your acquirer, its fields can be required. See Create an order in the API reference for the fields and their formats.

Recurring payments

Apple Pay supports recurring payments. See Recurring payments with Apple Pay.