Apple Pay on Hosted Checkout

Enable Apple Pay on DigetPay hosted checkout — no merchant code required.

With Hosted Checkout, DigetPay renders the Apple Pay button on the checkout page. You do not implement Apple Pay JS, merchant validation, or domain verification on your site.

No merchant code: DigetPay checkout handles Apple Pay end-to-end. Your only requirement is sending customerPhone when creating the payment link.

customerPhone must be included in the Create Payment Link request (POST /payment/checkout/intiate). It is not collected on the checkout UI.

Apple Pay emergency fix: If the Apple Pay button is missing, verify customerPhone was sent in the Create Payment Link JSON payload.


How it works

sequenceDiagram
  participant Shop as Your Server
  participant API as DigetPay API
  participant Checkout as DigetPay Checkout
  participant Apple as Apple Pay

  Shop->>API: POST /payment/checkout/intiate<br/>(includes customerPhone)
  API-->>Shop: redirectUrl
  Shop->>Checkout: Customer redirected
  Checkout->>Apple: Native Apple Pay sheet (Safari/iOS)
  Apple-->>Checkout: Authorized
  Checkout->>Shop: Redirect successUrl / failureUrl

Create payment link with Apple Pay support

{
  "merchantOrderId": "ORD-1001",
  "amount": 10.00,
  "currency": "SAR",
  "customerName": "Ahmed Ali",
  "customerEmail": "[email protected]",
  "customerPhone": "501223324",
  "successUrl": "https://yourstore.com/checkout/success",
  "failureUrl": "https://yourstore.com/checkout/failure"
}
FieldRequired for Apple Pay
customerPhoneYes
customerEmailRecommended
Merchant Apple Pay codeNo

Staging API: https://fin-api.digetpay.com/v1. Production API: https://api.digetpay.com/v1.


Browser support

BrowserExperience
Safari on iPhone/iPadNative Apple Pay sheet — best experience
Safari on MacNative Apple Pay sheet
Chrome on desktopQR code → scan with iPhone → Safari native sheet (Desktop QR)

See Safari & iOS and Desktop QR for customer-facing details.


What you do NOT need

ItemRequired?
Apple Pay JS on your siteNo
Merchant identity certificateNo
Domain association file on your domainNo
Apple Developer merchant ID setupNo (DigetPay handles checkout domain)

Confirm payment

Redirect to successUrl does not guarantee payment succeeded. Always confirm via status API or webhook.

Query Transaction Status →


Next steps


Did this page help you?