Verify

Confirm the transaction before you give customer the value.

Verify Transaction

POST https://safepayltd.net/api/charge/validation

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer YOUR_SECRET_KEY

Body

Name
Type
Description

reference *

string

transaction reference

orderid *

string

order id

Response

{
  "data" : {
    "trxDetails" : {
        "status" : "approved",
        "trxRef" : "bac3juaiaa",
        "amount" : "10.00",
        "currency" : "USD",
        "transDate" : "2023-11-19 21:10:22"
    },
    "custDetails" : {
        "fullName" : "Kay Nguyen",
        "email" : "kaynguyen@gmail.com",
        "phone" : "1234567890",
    },
    "cardDetails" : {
        "cardType" : "VISA",
        "cardNumber" : "45678876512346789",
        "expiryDate" : "01/24"
    }
  }    
  "message": "success",
  "status": "success"
 }

Last updated