Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create order_status_response_charged #758

Open
wants to merge 3 commits into
base: features
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
172 changes: 172 additions & 0 deletions twidv2/order_status_response_charged
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
{
"customer_email": "[email protected]",
"customer_phone": "9999999999",
"customer_id": "gdSPLGw37EgtJBXw",
"status_id": 21,
"status": "CHARGED",
"id": "ordeh_fe7a2de881b14549bc550adaaab8b6c1",
"merchant_id": "juspay_test",
"amount": 1000,
"currency": "INR",
"order_id": "test-1699336785",
"date_created": "2023-11-07T05:59:45Z",
"return_url": "http://www.google.com/",
"product_id": "1",
"payment_links": {
"iframe": "https://sandbox.juspay.in/r/QhtogV",
"web": "https://sandbox.juspay.in/r/g1RmIJ",
"mobile": "https://sandbox.juspay.in/r/fET7GM"
},
"udf1": "",
"udf2": "",
"udf3": "",
"udf4": "",
"udf5": "",
"udf6": "",
"udf7": "",
"udf8": "",
"udf9": "",
"udf10": "",
"refunded": false,
"amount_refunded": 0,
"effective_amount": 1000,
"txn_list": [
{
"txn_id": "test-HD-1699336785-1-1",
"payment_method_type": "UPI",
"auth_type": "",
"payment_method": "UPI",
"refunded": true,
"amount_refunded": 998,
"effective_amount": 998,
"refunds": [
{
"id": "refund1699336957",
"amount": 998,
"unique_request_id": "refund1699336957",
"ref": "refund_1319199494",
"created": "2023-11-07T06:02:37Z",
"status": "SUCCESS",
"error_message": "MERCHANT_INITIATED",
"sent_to_gateway": true,
"arn": "Test_ARN",
"expected_refund_credit_time": "2023-11-18T07:00:00Z",
"initiated_by": "API",
"refund_source": "GOCASHFREE",
"refund_type": "STANDARD",
"pg_processed_at": "2023-11-07T06:04:33Z",
"bank_processed_at": "2023-11-07T06:04:33Z",
"error_code": "SUCCESS"
}
],
"resp_code": null,
"resp_message": null,
"bank_error_code": "",
"bank_error_message": "",
"txn_uuid": "mozsTQdwb1L6pQymAgD",
"txn_detail": {
"txn_id": "test-1699336785-1-1",
"order_id": "test-1699336785",
"status": "CHARGED",
"error_code": null,
"net_amount": 1000,
"surcharge_amount": 0,
"tax_amount": 0,
"txn_amount": 998,
"offer_deduction_amount": null,
"gateway_id": 70,
"currency": "INR",
"express_checkout": false,
"redirect": true,
"txn_uuid": "mozsTQdwb1L6pQymAgD",
"gateway": "GOCASHFREE",
"error_message": "",
"created": "2023-11-07T06:00:24Z",
"txn_flow_type": "COLLECT"
},
"payment_gateway_response": {
"resp_code": "SUCCESS",
"rrn": "1234567890",
"created": "2023-11-07T06:00:25Z",
"epg_txn_id": "2150281800",
"resp_message": "Simulated response message",
"auth_id_code": "NA",
"txn_id": "azhar_test-HD-1699336785-1-1"
},
"gateway_id": 70,
"gateway_reference_id": "twid-s2s",
"payer_vpa": "testsuccess@gocash",
"upi": {
"payer_vpa": "testsuccess@gocash",
"txn_flow_type": "COLLECT"
},
"metadata": {
"payment_links": {
"iframe": "https://sandbox.juspay.in/r/QhtogV",
"web": "https://sandbox.juspay.in/r/g1RmIJ",
"mobile": "https://sandbox.juspay.in/r/fET7GM"
},
"payment_page_client_id": "change",
"JUSPAY:gateway_reference_id": "twid-s2s"
},
"offers": [],
"status": "CHARGED"
},
{
"txn_id": "test-1699336785-1-2",
"payment_method_type": "REWARD",
"auth_type": "",
"payment_method": "TWID",
"refunded": true,
"amount_refunded": 998,
"effective_amount": 2,
"resp_code": null,
"resp_message": null,
"bank_error_code": "",
"bank_error_message": "",
"txn_uuid": "mozmNoLkQJLeMvvVTZS",
"txn_detail": {
"txn_id": "test-1699336785-1-2",
"order_id": "HD-1699336785",
"status": "CHARGED",
"error_code": null,
"net_amount": 1000,
"surcharge_amount": 0,
"tax_amount": 0,
"txn_amount": 2,
"offer_deduction_amount": null,
"gateway_id": 92,
"currency": "INR",
"express_checkout": false,
"redirect": false,
"txn_uuid": "mozmNoLkQJLeMvvVTZS",
"gateway": "TWID_V2",
"error_message": "",
"created": "2023-11-07T06:00:16Z",
"txn_flow_type": "DIRECT_DEBIT"
},
"payment_gateway_response": {
"resp_code": "True",
"rrn": null,
"created": "2023-11-07T06:00:24Z",
"epg_txn_id": null,
"resp_message": "success",
"auth_id_code": null,
"txn_id": "azhar_test-HD-1699336785-1-2"
},
"gateway_id": 92,
"gateway_reference_id": "twid-s2s",
"metadata": {
"payment_links": {
"iframe": "https://sandbox.juspay.in/r/QhtogV",
"web": "https://sandbox.juspay.in/r/g1RmIJ",
"mobile": "https://sandbox.juspay.in/r/fET7GM"
},
"payment_page_client_id": "change",
"JUSPAY:gateway_reference_id": "twid-s2s"
},
"offers": [],
"status": "CHARGED"
}
]
}