PAYRAM
API SPECS
  • INTRODUCTION
    • 👋PAYRAM
    • 💡Getting Started
      • Setup
      • YAML Configuration
      • Wallet Configuration
      • Reset Setup
      • Update PayRam Server
      • Check your Database
      • Project API Keys
      • Webhook Integration
      • 🦊Test Wallet Setup
  • PAYMENT INTEGERATION
    • 📪Payments Flow
    • 🎌Integrating Payments
      • Implementing the Payment Form
      • Generating a Payment Link
      • Get Payment Details
      • Checking Payment Status
      • Webhook
  • REFERRAL INTEGRATION
    • 👬Referral Flow
    • Create New Campaign
      • Embed the Referral Dashboard
      • Link Referrers to Referees
      • Trigger Events
  • Fund Management
    • 🛠️Smart Consolidation
    • ⛽GAS Station
    • 👮‍♀️Policy Management
  • DEVELOPERS
    • 🎨API Reference
    • 🧪Test Faucets
  • SUPPORT
    • ⁉️FAQ
      • Deployment FAQ's
      • Configuration FAQ's
      • API Integration FAQ's
      • Fund Management FAQ's
      • Referral FAQ's
      • Debug FAQ's
    • 📅Change Log
Powered by GitBook
On this page
  • How to set up a webhook?
  • Sample Payload Structure
  • Webhook Events
  1. PAYMENT INTEGERATION
  2. Integrating Payments

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.

  1. Access the Payram Dashboard.

  2. Locate the "Webhook" tab under the "Developer" section.

  3. Click the "Add Endpoint" button.

  4. 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.

  1. Payment Page Rendered

  2. Payment Detected on Network

  3. Payment Confirmed

PreviousChecking Payment StatusNextReferral Flow

Last updated 9 months ago

🎌