Apple Pay
Generated from cURL: curl --location 'https://app-api.edfapay.com/api/v1/payment-gateway/s2s/apple-pay'
--header 'X-API-KEY: <Your API Key>'
--header 'Content-Type: application/json'
--data-raw '{
"orderId": "12345",
"amount": 1.00,
"currency": "SAR",
"customer": {
"name": "John",
"email": "john@edfapay.com",
"phone": "+12345678"
},
"successUrl": "https://success.com",
"failureUrl": "https://failure.com",
"card": {
"token": "{"paymentData":{"data":"xxxxxxxxxxxxxx","signature":"xxxxxxxxxx","header":{"publicKeyHash":"xxxxxxxxx","ephemeralPublicKey":"xxxxxxxxxxx","transactionId":"xxxxxxxxxxxxxxx"},"version":"EC_v1"},"paymentMethod":{"displayName":"xxxx xxxx","network":"xxxx","type":"xxxx"},"transactionIdentifier":"xxxxxxx"}"
}
}'
Request
- Base URLhttps://demo-api.edfapay.com
- URLhttps://demo-api.edfapay.com/api/v1/payment-gateway/s2s/apple-pay
- Authnone declared
Headers
Request body
Example request
{
"orderId": "12345",
"amount": 1,
"currency": "SAR",
"customer": {
"name": "John",
"email": "john@edfapay.com",
"phone": "+12345678"
},
"successUrl": "https://success.com",
"failureUrl": "https://failure.com",
"card": {
"token": "{\"paymentData\":{\"data\":\"xxxxxxxxxxxxxx\",\"signature\":\"xxxxxxxxxx\",\"header\":{\"publicKeyHash\":\"xxxxxxxxx\",\"ephemeralPublicKey\":\"xxxxxxxxxxx\",\"transactionId\":\"xxxxxxxxxxxxxxx\"},\"version\":\"EC_v1\"},\"paymentMethod\":{\"displayName\":\"xxxx xxxx\",\"network\":\"xxxx\",\"type\":\"xxxx\"},\"transactionIdentifier\":\"xxxxxxx\"}"
}
}Response
Successful response
Changes
No recorded changes to this operation across all 1 revision of this API.