A webhook is an HTTP endpoint that receives events from OPEN. Webhooks allow you to be notified about payment events that happen.

You can set up webhooks from your Dashboard and configure separate URLs for live and sandbox modes.

Setup Webhook URL

1 . Log into your OPEN Dashboard and navigate to Settings.
2 . Click on Developer API, setup your webhook URLs
3 . Click Save to enable webhooks.

{
   "amount":"1.00",
   "currency":"INR",
   "payment_error_code":null,
   "payment_error_description":null,
   "vpa":"8301834097@ybl",
   "pg_transaction_source":"icp_gateway_icici_upi_transactions",
   "id":"py_IFQA87wzVv2bXc",
   "entity":"payment",
   "status":"captured",
   "bank_reference_details":{
      "pg_transaction_id":"109017206890"
   },
   "payment_instrument":{
      "entity":"payment_instrument",
      "id":7,
      "name":"upi",
      "type_id":7,
      "type_name":"upi"
   },
   "pg_transaction_id":"109017206890",
   "payment_token":{
      "amount":"1.00",
      "currency":"INR",
      "mtx":"order_IFQA72GgLDejsl",
      "attempts":1,
      "id":"pt_BS1kJeZH16USlLI",
      "entity":"payment_token",
      "status":"paid",
      "pg_transaction_id":"109017206890"
   },
   "customer":{
      "contact_number":"8848123139",
      "email_id":"[email protected]",
      "id":"cs_BSB6QmCIZm96o8G",
      "entity":"customer",
      "pg_transaction_id":"109017206890"
   },
   "event":"payment_captured",
   "button":{
      "button_id":"bt_BS1j29a4zLwYqve",
      "total_amount":1,
      "amount_due":0,
      "amount_paid":1,
      "item_order_list":[
         {
            "item_id":"itm_IFP0MPGrJoRFqZ",
            "quantity":1,
            "items_value":1
         }
      ],
      "currency":"INR",
      "status":"active",
      "entity":"button_orders",
      "custom_attributes":{
         "Email":"[email protected]",
         "Mobile Number":"8848123139"
      }
   }
}

The table below lists the webhook events available for Payments.

Webhook EventDescription
payment_capturedTriggered when a payment is successfully completed.
payment_failedTriggered when a payment failed
payment_pendingTriggered when a payment is in pending state
payment_cancelledTriggered when a payment is cancelled