Skip to main content

Get Payment Session/Transaction Details


GET

 /api/v1/payment_session/{gid}

Fynd Commerce uses this API to retrieve payment session/transaction status details. This API will enable Fynd Commerce to retrieve the current status of payment using gid. Extension will need to respond with the correct payment status. Extension should validate order_checksum_auth before processing the request. This to run cron every 12 hours from platform and update any order which payment was not updated before.
Request Parameters
gid
string
Global identifier for the transaction. This is generated by Fynd payments platform and is unique for each transaction
Response schema
200
400
Success
GetPaymentSessionResponse
payments
array of object (AggregatorPaymentDetails)
Payment Details
Array of AggregatorPaymentDetails
Example Response
{
"payments": [
{
"aggregator_transaction_id": "hpp_vqrUEvucg001",
"amount": 10000,
"amount_captured": 10000,
"amount_refunded": 0,
"currency": "INR",
"fynd_platform_id": "FY662F91410E0BCBD001",
"g_user_id": "65fc3a26b7e85bd44752641a",
"gid": "TR662637B30D570001",
"kind": "sale",
"payment_methods": [
{
"code": "TABBY",
"name": "TABBY",
"sub_payment_mode": [
{
"code": "CARD",
"name": "CARD"
}
]
}
],
"status": "started"
}
]
}

Was this section helpful?