Custom Gateway: Difference between revisions
Jump to navigation
Jump to search
Markkinchin (talk | contribs) |
Markkinchin (talk | contribs) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 22: | Line 22: | ||
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. | 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. | ||
'''Example''': <code> deposit=[PAYMENTAMOUNT]&bookid= | '''Example''': <code> deposit=[PAYMENTAMOUNT]&bookid=[BOOKID]</code> will post fields deposit and bookid to the external gateway. | ||
*The custom gateway POST data is posted from the users browser when they click the pay button. | *The custom gateway POST data is posted from the users browser when they click the pay button. | ||
| Line 56: | Line 56: | ||
These POST fields are optional: | These POST fields are optional: | ||
<code>status</code> = booking status, 0 (cancelled), 1 (confirmed), 2 (new), 3 (request) | <code>status</code> = booking status, 0 (cancelled), 1 (confirmed), 2 (new), 3 (request) or -2 (nochange) | ||
<code>amount</code> = amount of the deposit collected | <code>amount</code> = amount of the deposit collected | ||