Webhook
Webhooks allow PAYRAM Server to send HTTP events related to your backend server.
Once, any transaction has been processed against the payment, the merchant will receive a webhook. The webhook is a GET request to the Merchant's server. Merchant has to accept the webhook request, parse this data and send back confirmation of the receipt.
How to set up a webhook?
To set up a webhook for the Payment Session, you'll need a webhook URL.
Access the Payram Dashboard.
Locate the "Webhook" tab under the "Developer" section.
Click the "Add Endpoint" button.
Enter the Endpoint URL and a description for your webhook, then click "Add Endpoint."
Sample Payload Structure
{
"customer_id": "1234",
"invoice_id": "fdfds",
"reference_id": "fdsfds",
"status": "OPEN",
"amount": "323.53",
"currency": "BTC",
"filled_amount": 18,
"filled_amount_in_usd": 18,
"timestamp": "fdsfds",
}
Webhook Events
Here is the list of major events that our webhook will update your server.
Payment Page Rendered
Payment Detected on Network
Payment Confirmed
Last updated