Authorizations
Access token
Path Parameters
order number
Body
application/json
- PayuPaymentGatewayParams
- JuspayPaymentGatewayParams
Commerce Engine is now in beta. We're working hard to make it better for you.
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/orders/{order_number}/retry-payment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"payment_gateway_params": {
"payment_gateway": "PAYU",
"furl": "<string>",
"surl": "<string>"
}
}'
{
"message": "<string>",
"success": true,
"content": {
"payment_info": {
"key": "<string>",
"txnid": "<string>",
"amount": 123,
"productinfo": "<string>",
"firstname": "<string>",
"lastname": "<string>",
"email": "<string>",
"phone": "<string>",
"si": "<any>",
"si_details": {
"billingAmount": 123,
"billingCurrency": "<any>",
"billingCycle": "<any>",
"billingInterval": 123,
"paymentStartDate": "2023-12-25",
"paymentEndDate": "2023-12-25"
},
"furl": "<string>",
"surl": "<string>",
"hash": "<string>"
}
}
}
To generate new payment request if first payment request is failed or expired. Retry payment request can be made after 15 mins of last request or immediately after last payment request is marked as failed.
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/orders/{order_number}/retry-payment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"payment_gateway_params": {
"payment_gateway": "PAYU",
"furl": "<string>",
"surl": "<string>"
}
}'
{
"message": "<string>",
"success": true,
"content": {
"payment_info": {
"key": "<string>",
"txnid": "<string>",
"amount": 123,
"productinfo": "<string>",
"firstname": "<string>",
"lastname": "<string>",
"email": "<string>",
"phone": "<string>",
"si": "<any>",
"si_details": {
"billingAmount": 123,
"billingCurrency": "<any>",
"billingCycle": "<any>",
"billingInterval": 123,
"paymentStartDate": "2023-12-25",
"paymentEndDate": "2023-12-25"
},
"furl": "<string>",
"surl": "<string>",
"hash": "<string>"
}
}
}
Access token
order number
Show child attributes
Was this page helpful?