Invoice callbacks
Handling callbacks correctly is crucial to ensure your integration’s business logic works as expected. It is highly recommended to validate payment statuses and callbacks before acting on it inside your system.
Refer to this section to get more information on what callbacks are and how to validate them before acting on it inside your system.
Invoice Status Schema
created
Not finalized invoice created by api and waiting for customer actions
authorized
Authorized by a customer which it will be selected amount and currency
completed
The invoice has been completed and payments received
canceled
Invoice canceled some reason. There will be no any incoming payment for this invoice
expired
It means that the payment was not made within the specified time.
manually_captured
Indicates that the payment was marked as received manually. Follow the same scenario as Completed.
{
"type": "invoice",
"merchant": "LTYM23KU6BX3JQ0C",
"data": {
"transaction_id": "test",
"fiat_currency": "USD",
"fiat_amount": "0",
"txn_id": "12d4d1f7-fc16-45a6-890c-217db96e615e",
"status": "created"
}
}{
"type": "invoice",
"merchant": "LTYM23KU6BX3JQ0C",
"data": {
"transaction_id": "test",
"fiat_currency": "USD",
"fiat_amount": "0",
"txn_id": "12d4d1f7-fc16-45a6-890c-217db96e615e",
"status": "expired"
}
}{
"type": "invoice",
"merchant": "LTYM23KU6BX3JQ0C",
"data": {
"transaction_id": "test",
"fiat_currency": "USD",
"fiat_amount": "0",
"txn_id": "12d4d1f7-fc16-45a6-890c-217db96e615e",
"status": "canceled"
}
}Last updated