Charge Request JSON ObjectClient-side
The Charge Request JSON object is the main object that holds all your client’s transaction details. The structure of that object is described hereafter.
Charge Request JSON Object parameters' description
At this point, you have successfully integrated FawryPay checkout button. It remains to learn how to handle FawryPay Checkout Plugin Response.
Handling Charge Response
Whether you choose to go with FawryPay Checkout Button or Checkout Link integration solutions, you will end up with sending us your charge request. The exact details of the response of our FawryPay plugin response are exaplained in this page. Two possible outcomes are to happen whenever a client issue a payment through FawryPay checkout form, Successful or Failed payment process.
Successful Payment Response
In case of successful payment process, FawryPay checkout plugin shall redirect the user to the merchant’s pre-designated SuccessPageURL (Learn More) with the following sample response at the header of the redirected page:
Sample Charge Response
Detailed Description of Charge Response Parameters
||Merchant issued transaction reference number. This is the same as the reference number you have set in your charge request.||123335|
||FawryPay issued transaction reference number.||912915023|
||Payment Method Selected by your client.||
"PAYATFAWRY": Payment at any Fawry's POS
"CARD": Payment with card
Failed Payment Response
In case of failed payment process, FawryPay checkout plugin shall redirect the user to the merchant’s pre-designated FailurePageURL (Learn More) described above with only the merchant's transaction reference number at the header of the redirected page:
Extend your Integration
Was this page helpful?