Webhook
Steps to configure for Webhook
-
Step 1 : Sign In to a PayG Account with username and password.
-
Step 2 : Go to Dashboard > Settings.
-
Step 3 : Click on Webhook URL tab as shown in image.
-
Step 4 : Click on Edit button. Enter the PostbackURL for Webhook URL tab as shown in image.
-
Step 5 : You can also specify auth key if required. It is optional parameter.
-
Step 6 : You will get OrderResponse in PostBackURL in JSON Format
{
"OrderKeyId":"210923M8340Uf3f5b5c13h",
"MerchantKeyId":8340,
"UniqueRequestId":"f3f5b5c13h",
"OrderType":"PAYMENT",
"OrderAmount":100.0,
"OrderId":null,
"OrderStatus":null,
"OrderPaymentStatus":0,
"OrderPaymentStatusText":null,
"PaymentStatus":0,
"PaymentTransactionId":null,
"PaymentResponseCode":0,
"PaymentApprovalCode":null,
"PaymentTransactionRefNo":null,
"PaymentResponseText":null,
"PaymentMethod":null,
"PaymentAccount":null,
"OrderNotes":null,
"PaymentDateTime":null,
"UpdatedDateTime":null,
"PaymentProcessUrl":"https://uat.payg.in/payment/payment?orderid=210923M8340Uf3f5b5c13h",
"OrderPaymentCustomerData":{
"FirstName":"ravi",
"LastName":null,
"Address":null,
"City":null,
"State":null,
"ZipCode":null,
"Country":null,
"MobileNo":"7337327109",
"Email":"test@gmail.com",
"UserId":null,
"IpAddress":null
},
"UpiLink":null,
"OrderPaymentTransactionDetail":null,
"UserDefinedData":{
"UserDefined1":"",
"UserDefined2":null,
"UserDefined3":null,
"UserDefined4":null,
"UserDefined5":null,
"UserDefined6":null,
"UserDefined7":null,
"UserDefined8":null,
"UserDefined9":null,
"UserDefined10":null,
"UserDefined11":null,
"UserDefined12":null,
"UserDefined13":null,
"UserDefined14":null,
"UserDefined15":null,
"UserDefined16":null,
"UserDefined17":null,
"UserDefined18":null,
"UserDefined19":null,
"UserDefined20":null
}
}