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
customerPhonewhen creating the payment link.
customerPhonemust 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
customerPhonewas 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"
}| Field | Required for Apple Pay |
|---|---|
customerPhone | Yes |
customerEmail | Recommended |
| Merchant Apple Pay code | No |
Staging API:
https://fin-api.digetpay.com/v1. Production API:https://api.digetpay.com/v1.
Browser support
| Browser | Experience |
|---|---|
| Safari on iPhone/iPad | Native Apple Pay sheet — best experience |
| Safari on Mac | Native Apple Pay sheet |
| Chrome on desktop | QR code → scan with iPhone → Safari native sheet (Desktop QR) |
See Safari & iOS and Desktop QR for customer-facing details.
What you do NOT need
| Item | Required? |
|---|---|
| Apple Pay JS on your site | No |
| Merchant identity certificate | No |
| Domain association file on your domain | No |
| Apple Developer merchant ID setup | No (DigetPay handles checkout domain) |
Confirm payment
Redirect to successUrl does not guarantee payment succeeded. Always confirm via status API or webhook.
Next steps
Updated 14 days ago
