Switch to Persian (فارسی)
There are two routes in this example:
/purchase
: requests the payment and then sends the user to the payment gateway/callback
: receives the data from the gateway and verifies it
Note: in order to test this example with SSL, you can use ngrok.com and add your ngrok url to the
.env
file.