TABLE OF CONTENTS
Create Payment Page
Payment Method: Fawry
Sample request
{ "profile_id" : {{profile_id}}, "tran_type": "sale", "tran_class": "ecom", "cart_id": "4444333221", "cart_currency": "EGP", "cart_amount": "1000", "cart_description": "50 empty boxes used for nothing", "payment_methods": [ "fawry" ], "paypage_lang": "en", "callback": "https://webhook.site/53aba5b2-2e8d-4104-af30-34976b2fd57d", "return": "https://webhook.site/53aba5b2-2e8d-4104-af30-34976b2fd57d", "customer_details": { "name": "John Snow", "email": "[email protected]", "phone": "01234567890", "street1": "Winterfell, The north", "city": "Egypt", "state": "eg", "country": "EG", "zip": "34717" }, "shipping_details": { "name": "John Snow", "email": "[email protected]", "phone": "01234567890", "street1": "Winterfell, The north", "city": "Egypt", "state": "eg", "country": "EG", "zip": "34717" }, "user_defined": { "title": "king in the north" } }
Page Language
"paypage_lang": "en",
You can change Page language from the parameter by creating payment request as above.
However, Fawry Payment Method is currently available only in the English Language. doesn’t support a full Arabic page yet.
Once Payment Page is visited as below:
Customer View
By Just opining the payment page by the customer that would create a transaction like below:
Merchant Dashboard
The customer will immediately receive SMS like the following:
Customer Mobile
Please use code# 9133849621 to pay 1,002 LE for GOT Store before 24-12-2021, 04:29 PM ,via FawryPay (Service code 788).
Note that the SMS will be sent to the number registered on customer details, NOT the number on shipping details.
And a callback like below would be received on callbackURL
Callback object
{ "tran_ref": "PTE2135712143468", "merchant_id": 28777, "profile_id": 81736, "cart_id": "4444333221", "cart_description": "50 empty boxes used for nothing", "cart_currency": "EGP", "cart_amount": "1000.00", "tran_currency": "EGP", "tran_total": "1000.00", "tran_type": "Payment Request", "tran_class": "ECom", "customer_details": { "name": "John Snow", "email": "[email protected]", "phone": "0123 456 7890", "street1": "Winterfell, The north", "city": "Egypt", "country": "EG", "zip": "34717", "ip": "156.221.216.216" }, "shipping_details": { "name": "John Snow", "email": "[email protected]", "phone": "01234567890", "street1": "Winterfell, The north", "city": "Egypt", "country": "EG", "zip": "34717" }, "payment_result": { "response_status": "P", "response_code": "9133849621", "response_message": "Pending", "cvv_result": " ", "avs_result": " ", "transaction_time": "2021-12-23T14:30:02Z" }, "payment_info": { "payment_method": "Fawry", "card_scheme": "", "payment_description": "Fawry", "issuerCountry": "EG", "issuerName": "Fawry" }, "ipn_trace": "IPNS0003.61C487EA.00000DB5" }