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'