Status and Webhook Data
Webhooks
const axios = require("axios");
// after this status, you have to send transaction hash for TRP.
await axios.post("YOUR_WEBHOOK_URL", {
transaction_ref: "YOUR_TRANSACTION_REFERENCE",
status: "OTHER_VASP_APPROVED",
});
// this is sent only to inform you and to enable you to take action on your own end.
await axios.post("YOUR_WEBHOOK_URL", {
transaction_ref: "YOUR_TRANSACTION_REFERENCE",
status: "OTHER_VASP_REJECTED",
});
// you need to send the wallet address of the person in the persons object we sent you.
await axios.post("YOUR_WEBHOOK_URL", {
transaction_ref: "YOUR_TRANSACTION_REFERENCE",
status: "WAITING_ADDRESS_DATA",
persons: persons,
accountNumber: ["0xTest"]
});
// the transaction hash information of the transaction sent to you by the other party
await axios.post("YOUR_WEBHOOK_URL", {
transaction_ref: "YOUR_TRANSACTION_REFERENCE",
status: "TRANSACTION_CONFIRMED",
txid: txid
});Statuses
Last updated