Qchain
English
English
  • KNOWLEDGE BASE
    • Introduction to Qchain
    • Getting Started
    • How to run QChain node?
    • Instructions
      • How to install QNode on Linux
      • How to send tokens to staking
      • How to import an account
      • How to change the storage size
      • How to install Qnode on Andriod and register an account.
      • How to create a repository
      • How to transfer tokens between accounts
      • How to create your own token
      • How to send a file to the storage
    • Video instructions
      • How to import an account into Qchain node
      • Qchain. Import and Export of private key
      • Qchain installation Mac OS
      • Installation Qchain Node on Android
      • How to install a Qnode on Windows and register an account
    • Our tokens
    • Our products
    • Developing
      • Node API
      • Node account API
        • Export and import operations
        • Registering a new user
        • Registering a new user (2)
        • User login
        • Getting an address
        • Getting a balance
        • Getting a private key
        • Import a private key
        • Transfer
        • Request for transfer status
        • Request for list of transfers
        • Staking-Stake
        • Staking-Unstake
      • QTreasure API
        • Registration
        • List of payment gateways
        • Status payment
        • Payments
        • Purchase
        • Transaction fields
        • Transaction types
        • Transaction statuses
        • Callback response
Powered by GitBook
On this page
  1. KNOWLEDGE BASE
  2. Developing
  3. QTreasure API

Callback response

Fields

{
  "currency": "USDT-TRC20",
  "id": "3557",
  "status": "SUCCESS",
  "sum": "10",
  "sum_currency": "11",
  "verify_hash": "******************************",
}

id - transaction ID

sum - total amount in QSTN

sum_currency - total amount in currency

status - transaction status (only "SUCCESS" or "CANCEL")

currency

verify_hash - encrypted client api key

Example of decrypting a key in PHP:

$data = Yii::$app->request->post();
unset($data['verify_hash']);
ksort($data);
$dataString = serialize($data);
$checkKey = hash_hmac('sha1', $dataString, /* Your api key */);

if ($checkKey != Yii::$app->request->post('verify_hash')) {
  // Verification failed verification
}
PreviousTransaction statuses

Last updated 1 year ago