We have 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
To test using this example with SSL, you can use ngrok.com and add your ngrok url to the .env
file.