Zid Docs
AppsThemesPayments
AppsThemesPayments
Help Center
Slack
  1. ApplePay
  • Overview
  • Merchant Activation
  • Payment
    • Overview
    • Embedded Payment
    • Gateway Error Codes
    • Direct Payment
      POST
    • Execute Payment Request
      POST
    • Get payment status
      GET
  • ApplePay
    • ApplePay Checkout
    • Register ApplePay Domain
      POST
    • Providing Merchant Validation
      POST
  • Refund
    • Request Refund
      POST
  • Webhooks
    • Overview
    • Link Merchant Event
      POST
    • Payment Paid Event
      POST
    • Refund Event
      POST
  1. ApplePay

Providing Merchant Validation

POST
https://api.zid.sa/{providerBaseURL}/applepay/initiate
When the merchant validation event is triggered from the Apple Pay JS library, a request to the provider will be needed to obtain the merchant session object that is needed to validate the merchant session. The provider API in turn shall call Apple endpoint “startSession” to get an apple session and return it.

Request

Path Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Bodyapplication/json

🟠401Unauthorized
🔴500Internal Server error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.paymentprovider.com/applepay/initiate' \
--header 'Content-Type: application/json' \
--data '{
    "validationUrl": "https://apple-pay-gateway.apple.com/paymentservices/startSession",
    "displayName": "Zid Store",
    "domainName": "www.example.com",
    "publishableApiKey": "pk_test_abc123xyz"
}'
Response Response Example
200 - Example 1
{
    "merchantSession": {}
}
Modified at 2026-01-30 20:55:20
Previous
Register ApplePay Domain
Next
Request Refund
Built with