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
Sandbox URL : https://sandbox.portal.juspay.inProduction URL : https://portal.juspay.in
2. Push the latest bundle supported for BharatX via Studio to CUG
3. Point your app/website to CUG (Guide to CUG)
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:
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"
}

