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

On 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

Query Params

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.paymentprovider.com/applepay/initiate?validationUrl=https://apple-pay-gateway.apple.com/paymentservices/startSession&displayName=Zid Store&domainName=store.zid.sa&publishableApiKey=pk_test_abc123xyz'

Responses

🟢200OK
application/json
Body

Example
{
    "merchantSession": {}
}
Modified at 2025-05-26 09:08:05
Previous
Register ApplePay Domain
Next
Request Refund
Built with