BharatX Pay In 3

Gateway Configuration:

1. Configure the sandbox gateway credentials on your Sandbox environment / Configure and enable Production Credentials on your Production Environment

Note
Step 1.1
Configuring a new gateway account for BHARATX on the Juspay Dashboard
BharatX Gateway
BharatX Gateway
Step 1.2
Adding Gateway Credentials
Select Environment
Select Environment
Assigning Gateway Ref Id (Skip if there's no requirement for flow based Checks)
Assigning Gateway Ref Id (Skip if there's no requirement for flow based Checks)
Update Credentials
Update Credentials
Step 1.3
Saving the gateway credentials and proceeding to add payment method
 Select BHARATX Pay in 3
Select BHARATX Pay in 3

2. Push the latest bundle supported for BharatX via Studio to CUG

3. Point your app/website to CUG (Guide to CUGlink icon)

4. Complete a set of internal testing on Sandbox environment to understand the flow

5. Initiate a staggered release with the changes from CUG to be pushed to Production

Sample Requests and Responses

Merchant Payment Methods:

getPaymentMethods Sample Request:


getPaymentMethods Sample Response:

Eligibility:

Sample Request:


Sample Response:

Note
If Gateway Ref ID based logic is enabled

Transaction Create:

Sample Curl:


Sample Response:

Order Status

Sample curl:

              
                curl --location 'https://sandbox.juspay.in/orders/order_1689161867?options.add_full_gateway_response=true' \
--header 'version: 2019-08-19' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic NEVDNEIyREVGOTY0QUE0QUEwQ0ZDNkU0RkY3MEU3Og=='
              

            

Note: options.add_full_gateway_response=true' can be set for receiving the PG response for reference

Sample Response

Order Refund

Sample Request

              
                curl --location 'https://sandbox.juspay.in/refunds' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic RThGQjJCMDBDODA5NDU3RkE5MzU2RDIxMzI1QUYxRDU6' \
--data-urlencode 'unique_request_id=suyash_1687852854' \
--data-urlencode 'amount=2' \
--data-urlencode 'order_id=test_1687852383'
              

            

Sample Response

              
                {
    "order_id": "test_1687852383",
    "status": "SUCCESS",
    "amount": 2,
    "sent_to_gateway": true,
    "unique_request_id": "suyash_1687852851",
    "gateway": "BHARATX",
    "created": "2023-06-27T08:00:51Z",
    "initiated_by": "API",
    "refund_source": "BHARATX",
    "refund_arn": null,
    "error_message": null,
    "epg_txn_id": "7093",
    "txn_id": "suyash-test_1687852383-1",
    "authorization_id": null,
    "reference_id": "2310",
    "response_code": null,
    "refund_type": "STANDARD"
}
              

            
Last updated 2 years ago