Charge Crypto

Processing transaction from the crypto.

You have to redirect to the link which is returned in respomse data. In addition, you need to store the value of field reference and orderid for using api Verify Transaction.

Create Transaction

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

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer YOUR_SECRET_KEY

Body

Name
Type
Description

amount*

number

amount of transaction

token*

string

USDT

network*

string

BITCOIN_MAINNET ETHEREUM_MAINNET

POLYGON_MAINNET

TRON_MAINNET

reference *

string

transaction reference

callback_url *

string

callback url (GET)

webhook_url

string

webhook url (POST)

Response

Response 3D
{
  "status" : "success",
  "message" : "success",
  "data" : {
      "reference" : "abssjsu222",
      "orderid" : "1282827",
      "link" : "https:/safepayltd.net/checkout/1136/a292929acvvb881272aajakakaka"
  }
}

Response 2D
{
  "status" : "success",
  "message" : "success",
  "data" : {
      "reference" : "abssjsu222",
      "orderid" : "1282827",
      "transaction" : {
          "status" : "success",
          "message": "Transaction is sucessful"
      }
  }
}

Last updated