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.

Create a PayG Account 🔗

  • To start with, you must have a PayG account.
    To create an account: Click here
    You can create account via phone number or email.
    To learn more about our sign up process, refer to our sign up documentation.

  • Prerequisities for API Call

    • MID

    • Authentication key

    • Authentication token

    • ( Authentication key , Authentication token are available in Merchant Panel.)
      Login your merchant account , Go to Dashbaord > Settings

    • Uniquerequestid for every order/transaction

Authorization 🔗

Authorization header is based on base64 encode string which is using parameters like MID (MerchantId) , authentication key, authentication token.

Follow the steps to create base64encode string for authorization

  • Step 1 : To generate Base64 encode string Open base64encode

  • Step 2: Format for base64encode string to below format :
    Prepare string by replacing the actual value from dashboard

    MerchantAuthenticationKey:MerchantAuthenticationToken:M:MID

  • Step 3: Click on Encode and you will get the encoded string

  • Step 4
    Format for header in request is Authorization : basic+space+authentication with base64encode string Example:
    basic MzY2YjJhZjE2NjM3NDVhNWE1NTBkZjFlNzE4ZTlhZTU6YzE0ZTk2ZjMzYmM0NGE0M2I5OWZhNjc2ZGRlYjg5M2Q6TToyMjc5MA==

API Call -Steps for integration : 🔗

  • Create a order request object parameters

  • Send request object along with header to PayG end point to receive the response object

  • You will receive either response object / error object

  • Redirect user to PayG payment page

  • Payment processed by user on PayG page and redirect back to merchant site if redirect url is provided in request object

  • Check status on payment based on provided OrderKeyId via status api call (link) OR Configure Webhook/Callback on PayG dashboard

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
                        }
                        }
                    

Accept Payments Using Payment Gateway (Website or Ecommerce Store Required!)

Integrate your website or ecommerce store with the PayG Payment Gateway using our range of Checkout solutions.

Integration Type

Integration Methods

Web Integration

Standard Checkout Integration

Mobile Integration


- Android Standard Checkout Integration
- iOS Standard Checkout Integration
- Flutter SDK Integration
- Ionic SDK Integration
- React Native SDK Integration

Ecommerce Plugins


- WooCommerce Integration
- OpenCart Integration
- Wordpress
- PrestaShop Integration
- WHMCS Integration
- WooCommerce 8.4.0 Integration

Server Integrations (Languages)

- PHP Integration
- NodeJS Integration
- Java Integration
- Python Integration
- .Net Integration

Accept Payments Using Other Modules 🔗

Want to start accepting payments using one of our other modules? Click on the links to view more details on each module.

Module Name

Description

Invoices

Create and send GST compliant invoices that your customers can pay online instantly. Get paid faster and improve your cash flow.

Payment Links

Share payment link via an email, SMS, messenger or chatbot and get paid immediately. Accepting payments from customers is now just a link away.

Payment Pages

Take your store online instantly with zero coding. Accept payments with automated payment receipts.

Subscriptions

Offer your customers subscription plans with automated recurring transactions through a platform that is built for automation.