Embedded Payment APIs

sale

Generated from cURL: curl --location 'https://app-api.edfapay.com/api/v1/payment-gateway/s2s/sale'
--header 'X-API-KEY: <Your API Key>'
--header 'Content-Type: application/json'
--data-raw '{ "orderId": "12345", "amount": 1, "currency": "SAR", "paymentMethod": "card", "auth": "N", "card": { "cardNumber": "5123450000000008", "cardExpiryMonth": "01", "cardExpiryYear": "2039", "cardCvv": "100" }, "customer" :{ "name": "John", "email" : "John@edfapay.com", "phone" : "501223324" }, "successUrl": "https://merchant.com/success", "failureUrl": "https://merchant.com/failure", "hash":"XXXXXXXXXXXXXXX" }'

post/api/v1/payment-gateway/s2s/sale

Request

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

Headers

X-API-KEYstring
Content-Typestring

Request body

object required

Example request

{
  "orderId": "12345",
  "amount": 1,
  "currency": "SAR",
  "paymentMethod": "card",
  "auth": "N",
  "card": {
    "cardNumber": "5123450000000008",
    "cardExpiryMonth": "01",
    "cardExpiryYear": "2039",
    "cardCvv": "100"
  },
  "customer": {
    "name": "John",
    "email": "John@edfapay.com",
    "phone": "501223324"
  },
  "successUrl": "https://merchant.com/success",
  "failureUrl": "https://merchant.com/failure",
  "hash": "XXXXXXXXXXXXXXX"
}

Response

Successful response

Changes

No recorded changes to this operation across all 1 revision of this API.