You can find the sample requests and response values sent by us below and you can easily provide seamless wallet integration. If a request is not completed within 30 minutes, a cancellation request is sent to you for this process. If you want to cancel earlier, you can cancel by specifying a minimum of 10 minutes on your side. If the cancellation request did not come within 30 minutes or more, this process is in the process of being controlled. Please check the security section for the hash calculation on the response side.
{
"apiId": 1,
"apiKey": "x3dfjkasdo12332",
"paymentId": 123,
"userId": 100,
"username": "pay_test",
"type": "deposit", // deposit or withdraw
"amount": 100.5,
"externalTransactionId": 123456789,
"status": true, // If status=true, the transaction is approved.
"message": "success",
"hash": "9eNhXm40VI1faX2eoqZFd7nncRYf3JLCo3be0eO923xFNAnaOF"
}
{
"apiId": 1,
"apiKey": "x3dfjkasdo12332",
"paymentId": 123,
"userId": 100,
"username": "pay_test",
"type": "deposit", // deposit or withdraw
"amount": 100.5,
"externalTransactionId": 123456789,
"status": false, // If status=false, the transaction was rejected.
"message": "no deposit",
"hash": "9eNhXm40VI1faX2eoqZFd7nncRYf3JLCo3be0eO923xFNAnaOF"
}
{
"status": 200,
"message": "success",
"hash": "9eNhXm40VI1faX2eoqZFd7nncRYf3JLCo3be0eO923xFNAnaOF"
}
{
"status": 201,
"message": "transaction already",
"hash": "9eNhXm40VI1faX2eoqZFd7nncRYf3JLCo3be0eO923xFNAnaOF"
}
{
"status": 404,
"message": "transaction not found",
"hash": "9eNhXm40VI1faX2eoqZFd7nncRYf3JLCo3be0eO923xFNAnaOF"
}
{
"status": 500,
"message": "internal server error"
}
{info} Please make sure your seamless address is a JSON page. An example for PHP is header('Content-type: application/json'); You can use.