Changes

Jump to navigation Jump to search

Custom Gateway

660 bytes added, 16:14, 10 November 2023
= Transfer to Custom Gateway =
The post data is sent to the custom gateway with a POST method as if it came from a normal HTML form being submittedon a web page.
Both the URL and POST fields can contain template variables to include values from the booking.
 
If the POST fields are empty, a GET request is made to the specified URL.
A special template variable [PAYMENTAMOUNT] will contain the value of the deposit when booking and the value of the payment request when used for payment requests.
*The custom gateway POST data is posted from the users browser when they click the pay button.
*This means the POSTED data will be visible in the page source code and should not contain any secret or private data.
 
= Confirmation Page =
 
The payment gateway should show the payment status to the booker confirming the success or failure of their payment.
 
After the booking (and sending the webhook to notify of payment success) the booker can be returned to the page booking.php?page=bookconfirmed which will show the booking they just made.
 
The booking is a stored in a session variable, which means that the confirmation page needs to be on the same domain as the booking otherwise it wont work or if it's in incognito mode and might time out after 15 minutes.
= Webhook to notify of payment status =

Navigation menu