Embedded Apple Pay API

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"}" } }'

post/api/v1/payment-gateway/s2s/apple-pay

Request

  • Base URL
    https://demo-api.edfapay.com
  • URL
    https://demo-api.edfapay.com/api/v1/payment-gateway/s2s/apple-pay
  • Auth
    none declared

Headers

X-API-KEYstring
Content-Typestring

Request body

object required

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.