Skip to main content
POST
/
api
/
v2
/
pay
cURL
curl --request POST \
  --url https://test.digitaltermination.com/api/v2/pay \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data channel=1 \
  --data first_name= \
  --data last_name= \
  --data email= \
  --data 'phone_number=+233245519485' \
  --data card_number=4411223344556 \
  --data card_cvv=123 \
  --data expiry_month= \
  --data expiry_year= \
  --data amount=1 \
  --data callback_url=https://webhook.site/3b3b3b3b-3b3b-3b3b-3b3b-3b3b3b3b3b3b \
  --data return_url=https://webhook.site/3b3b3b3b-3b3b-3b3b-3b3b-3b3b3b3b3b3b
{
  "transaction": {
    "id": 88,
    "merchant_id": "1",
    "type": "Cr",
    "medium": "Card",
    "reference": "1-2438378-0998",
    "zeepay_id": 22389,
    "amount": 1.01,
    "amount_details": {
      "cc": 0.02,
      "rate": "1.00",
      "send": 1.01,
      "receive": 0.99,
      "send_local": 1.01,
      "send_currency": "GHS",
      "receive_currency": "GHS"
    },
    "medium_details": {
      "threeds_url": "https://webhook.site/3b3b3b3b-3b3b-3b3b-3b3b-3b3b3b3b3b3b"
    },
    "status": "2"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/x-www-form-urlencoded
channel
number
Example:

1

first_name
string
Example:

""

last_name
string
Example:

""

email
string
Example:

""

phone_number
number
Example:

"+233245519485"

card_number
number
Example:

"4411223344556"

card_cvv
number
Example:

"123"

expiry_month
string
Example:

""

expiry_year
string
Example:

""

amount
number
Example:

"1"

callback_url
string
Example:

"https://webhook.site/3b3b3b3b-3b3b-3b3b-3b3b-3b3b3b3b3b3b"

return_url
string
Example:

"https://webhook.site/3b3b3b3b-3b3b-3b3b-3b3b-3b3b3b3b3b3b"

Response

200 - application/json

The status of the transaction.

transaction
object