Handle the callback method

The callback method is fired when the transaction is completed. This is where you include any action you want to perform when the transaction is completed.

The response data will return 'reference', 'status' and 'type'. The 'status' will always be 'payment_processing'.

We recommend always verifying the transaction to confirm the status.

There are 2 types of transactions you can verify, 'fiat' and 'crypto' based on the value returned in response.type

reference: "BNPay-gk60y5m37hp5bd8rvs2rbh64c9mrk4"
status: "payment_processing"
type: "fiat"

To verify the transaction, you have to make a request to the Bani verify payment status endpoints to confirm the status of the transaction.

Last updated