Open igaurab opened 2 months ago
When the payment is succcessful esewa will send a GET request to the success_url defined above with the data
Eg:
https://webhook.site/47b86944-5062-46b1-9ead-7eea3d827db4?data=eyJ0cmFuc2FjdGlvbl9jb2RlIjoiMDAwN0IwQiIsInN0YXR1cyI6IkNPTVBMRVRFIiwidG90YWxfYW1vdW50IjoiMTEwLjAiLCJ0cmFuc2FjdGlvbl91dWlkIjoiMjQwNDE4LTExNTEyOCIsInByb2R1Y3RfY29kZSI6IkVQQVlURVNUIiwic2lnbmVkX2ZpZWxkX25hbWVzIjoidHJhbnNhY3Rpb25fY29kZSxzdGF0dXMsdG90YWxfYW1vdW50LHRyYW5zYWN0aW9uX3V1aWQscHJvZHVjdF9jb2RlLHNpZ25lZF9maWVsZF9uYW1lcyIsInNpZ25hdHVyZSI6IkI3VlE0ZDUzWnJNM2lMTTJjcnpwa1FZS1pCV0pCcitGMzgwYThuL1RiaGM9In0=
This data is base64 encoded. When decoded
{"transaction_code":"0007B0B","status":"COMPLETE","total_amount":"110.0","transaction_uuid":"240418-115128","product_code":"EPAYTEST","signed_field_names":"transaction_code,status,total_amount,transaction_uuid,product_code,signed_field_names","signature":"B7VQ4d53ZrM3iLM2crzpkQYKZBWJBr+F380a8n/Tbhc="}