Payment Gateway Introduction
Welcome to PayG Payment Gateway.
The product suite allows you to accept payments,process payments, and disbursements.
PayG provides the facility to access all major payment modes, which includes credit and debit cards, UPI,
netbanking, store cards and wallets(phonepe,paytm,gpay,etc).
Quick Integration in 3 steps
There are three easy steps to integrate PayG Payment Gateway.
1
Sign up for a PayG
Account
2 Authorization
3 API Call
Sign up for a PayG
Account
PayG offers a wide range of payment methods. Choose the ideal way of collecting payment from your clients.
Steps for API Integration using Postman
Header Values
Content-Type : application/json
Authorization: basic YjYwYmU1NzQwMTg5NDY3OWIyNGQ0ZDgwZDljNGE1OWM6ODQ2MjhiNWRmYmU3NDdkYjk0MjFhMTFkZTg5MTYxM2E6TTo4Nzky
(Generated string in Step 2 in Authorization)
URL For Create Order : https://uatapi.payg.in/payment/api/order/create
Request Obejct in JSON Format
{
"MID":"54AC000B0C78452",
"key2":"f3f5b5c13h",
"ProductData": {
"PaymentReason":"OnlineOrder for OrderNo- 1234",
"ItemId":"T-shirt",
"Size":"medium",
"AppName":"yourAppName"
},
"RequestDateTime":"06232021",
"RedirectUrl":"https://payg.in",
"TransactionData": {
"AcceptedPaymentTypes":"",
"PaymentType":"",
"SurchargeType":"",
"SurchargeValue":"",
"RefTransactionId":"",
"IndustrySpecificationCode":"",
"PartialPaymentOption":""
},
"OrderAmount":"100",
"OrderType":"",
"OrderAmountData": {
"AmountTypeDesc":"3",
"Amount":"2"
},
"CustomerData": {
"CustomerId":"152433",
"CustomerNotes":"Mens clothing",
"FirstName":"ravi",
"LastName":"sharma",
"MobileNo":"7337327109",
"Email":"test@gmail.com",
"EmailReceipt":"true",
"BillingAddress":"44 bhagvan nagar",
"BillingCity":"orissa",
"BillingState":"orissa",
"BillingCountry":"India",
"BillingZipCode":"30202020",
"ShippingFirstName":"ravi",
"ShippingLastName":"sharma",
"ShippingAddress":"44 bhagvan nagar",
"ShippingCity":"orissa",
"ShippingState":"orissa",
"ShippingCountry":"India",
"ShippingZipCode":"30202020",
"ShippingMobileNo":"7337327109"
},
"IntegrationData": {
"UserName":"ravi",
"Source":"3213",
"IntegrationType":"",
"HashData":"",
"PlatformId":"1"
}
}
Order Response 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
}
}