Category:Payments: Difference between revisions

Jump to navigation Jump to search
Line 151: Line 151:
*[PAYURL:200] - Creates a payment url for the payment request url for a fixed amount.
*[PAYURL:200] - Creates a payment url for the payment request url for a fixed amount.


===Request URL  Parameters===
==== Using Request URL  Parameters====
You can also use a direct link. The link uses the booking number and the requested amount.
You can also use a direct link. The link uses the booking number and the requested amount.


https://www.beds24.com/bookpay.php?bookid=1234567 create a payment request for the remaining balance for this booking showing all payment gateways which are enabled.
For Auto Actions you can use the [BOOKID] template variable to automatically populate the bookid URL parameter:  


Parameters can be added to the payment request.  
https://www.beds24.com/bookpay.php?bookid=[BOOKID]
 
 
For custom Emails you can type the booking number in directly:
 
https://www.beds24.com/bookpay.php?bookid=1234567
 
The parameters below can be added to the URL to customize the behaviour of  the payment request.  


These are the parameters for the different payment options:
These are the parameters for the different payment options:


AuthoizeNet: an


Bitpay: bp
=====Parameters for different payment options=====
By default all payment gateways enabled for your booking page will show on the payment request page.
 
You can override which gateways are shown on the booking request page using the URL <code>&g=</code> and <code>&h=</code>  parameters.  You can specify multiple payment gateways comma separated for both the  <code>&g=</code> and the <code>&h=</code> parameter.
 
The  <code>&g=</code> parameter forces the gateway to be shown, the  <code>&h=</code>  forces the gateway to be hidden.
 
an - AuthoizeNet
 
bp -  Bitpay


Custom Gateway: cg
cc - credit card collection


Offline Payment: op
cg - Custom Gateway


Paymill: pm
op - Offline Payment


Paypal: pp
pm - Paymill


Realex A: ra
pp -  Paypal


Realex B: rb
ra - Realex A


Stripe: st
rb - Realex B:


Capture for Stripe: capture=0 (do not capture payment) / capture=1 (capture payment)
st - Stripe


Capture for Stripe:


Card Collection: cc
capture=0 - do not capture payment


*Create a link with a payment request for a specific amount.
capture=1- capture payment  
&pay=70 - for payment request for the amount of 70.


https://www.beds24.com/bookpay.php?bookid=1234567&pay=70


https://www.beds24.com/bookpay.php?bookid=[BOOKID]&pay=70
Examples:  


*Create a link showing only a specific payment gateway
<code>https://www.beds24.com/bookpay.php?bookid=[BOOKID]&g=an</code> creates a payment link for Authorize.Net
&g=cc collect credit card details only


https://www.beds24.com/bookpay.php?bookid=1234567&g=cc
<code>https://www.beds24.com/bookpay.php?bookid=1234567&g=st,pp</code> creates a payment link showing Stripe and Paypal


https://www.beds24.com/bookpay.php?bookid=[BOOKID]&g=cc
<code>https://www.beds24.com/bookpay.php?bookid=[BOOKID]&g=st&capture=0</code> creates a payment link for Stripe without capturing


*Create a link showing multiple payment gateways
<code>https://www.beds24.com/bookpay.php?bookid=1234567&h=cc</code> creates a payment link hiding credit card collection
&g=st,pp show Stripe and Paypal only


https://www.beds24.com/bookpay.php?bookid=1234567&g=st,pp


https://www.beds24.com/bookpay.php?bookid=[BOOKID]&g=st,pp
=====Parameters for amounts=====
&pay=100 - for a payment request for the  specified amount (in this example 100)


*Create a link showing Stripe and Capture the credit card details to charge at a later time.
&pay=bookpay  - for a payment request collecting the outstanding balance for this booking
https://www.beds24.com/bookpay.php?bookid=[BOOKID]&g=st&capture=0


*Create a link showing Stripe and Capture a fixed amount on the credit card that can be collected/charged at a later time.
&pay=grouppay  - for a payment request collecting the outstanding balance for the group booking (the default)
https://www.beds24.com/bookpay.php?bookid=[BOOKID]&g=st&pay=300&capture=0


*Create a link showing all payment gateaways except for one
&h=cc show Stripe and Paypal but hide credit card collections


https://www.beds24.com/bookpay.php?bookid=1234567&h=cc
Examples:


https://www.beds24.com/bookpay.php?bookid=[BOOKID]&h=cc
<code>https://www.beds24.com/bookpay.php?bookid=[BOOKID]&pay=70</code> creates a payment link requesting a payment of 70


===Payment Request without Payment Options Activated===
===Payment Request without Payment Options Activated===