Changes

Jump to navigation Jump to search

Custom Gateway

456 bytes added, 17:41, 23 October 2021
no edit summary
[[Category:Payment_Gateways]]
<div class="heading">Custom Gateway</div>
This page is about the menu {{#fas:cog}} (SETTINGS->) PAYMENTS->PAYMENT GATEWAYS->CUSTOM GATEWAY and explains how to connect with a payment gateway of your choice.
<span style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span> Required skills: html, programming
= 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.
= Webhook to notify of payment status =

Navigation menu