Send Paypal Payment Request

Fonte: abh.pt - Algarve Beach House
Paypal Payment Request
This page explains how to create an Email template with a request to make a payment via Paypal.

You can use an Auto Action email to send a Paypal payment request.

Paypal Link[editar]

  • Go to SETTINGS->PAYMENTS->PAYMENT GATEWAYS->PAYPAL and enter the Paypal email address to which you want the payment to go.
  • Go to SETTINGS->GUEST MANAGEMENT->AUTO ACTIONS and create an Auto Action. A template is available which you can further customize. Use the context help (?Icons) in the Auto Action and on the help page (click on HELP in the top right menu) for further instructions.

In the "Messaging" tab click on "Edit" and enter your text. The template variable [PAYPALLINK] creates a clickable Paypal payment link (HTML A Tag) for the amount in the booking deposit field if non zero, otherwise the outstanding balance.

[PAYPALLINK:25%] - Creates a Paypal payment link (HTML A Tag) for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.

[PAYPALLINK:200] - Creates a Paypal payment link (HTML A Tag) for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount.


The template variable [PAYPALURL] - Creates a Paypal payment url for the amount in the booking deposit field if non zero, otherwise the outstanding balance.

[PAYPALURL:25%] - Creates a Paypal payment url for a percentage of the outstanding balance.

[PAYPALURL:200] - Creates a Paypal payment url for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount.

Paypal Button and Custom Paypal Payment Form[editar]

Some Email programmes deactivate the button so that the payment screen can not open.

Auto Action Email with Paypal Button[editar]

  • Go to SETTINGS->PAYMENTS->PAYMENT GATEWAYS->PAYPAL and enter the Paypal email address to which you want the payment to go.
  • Go to SETTINGS->GUEST MANAGEMENT->AUTO ACTIONS and create an Auto Action. Use the context help (?Icons) and the help page (click on HELP in the top right menu) for general instructions.

In the "Messaging" tab click on "Edit" and enter your text. [PAYPALBUTTON] creates a Paypal payment button for the amount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emails.

[PAYPALBUTTON:25%] - Creates a Paypal payment button for a percentage of the outstanding balance. Not recommended for emails.

[PAYPALBUTTON:200] - Creates a Paypal payment button for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount. Not recommended for emails.

Custom Paypal Payment Form[editar]

When you use this method the system can automatically calculate the deposit amount from the price of the booking.

Requires: Knowledge of HTML

Go to SETTINGS->GUEST MANAGEMENT->AUTO ACTIONS and create an Auto Action. Use the context help (?Icons) and the help page (click on HELP in the top right menu) for general instructions.


In the "Messaging" tab click on "Edit" then "Source code".

This is an example code for a request to pay a 50% deposit:

The deposit amount is € [INVOICEBALANCENUM:50%]

The remaining balance of € [INVOICEBALANCENUM:50%] can be paid at your arrival at - [PROPERTYNAME].
 

<form action=" https://www.paypal.com/cgi-bin/webscr" method="post "> <fieldset>

<input name="cmd" type="hidden" value="_xclick" />

<input name="business" type="hidden" value="paypal@myemail.com" />

<input name="lc" type="hidden" value="US" />

<input name="item_name" type="hidden" value="Payment" />

<input name="item_number" type="hidden" value="[BOOKID]" />

<input name="custom" type="hidden" value="[BOOKID]" />

<input name="currency_code" type="hidden" value="EUR" />

<input name="button_subtype" type="hidden" value="services" />

<input name="no_note" type="hidden" value="0" />

<input name="cn" type="hidden" value="Comments" />

<input name="no_shipping" type="hidden" value="1" />

<input name="rm" type="hidden" value="1" />

<input name="return" type="hidden" value="http://myurl.com/confirm" />

<input name="cancel_return" type="hidden" value="http://myurl.com/cancel" />

<input name="bn" type="hidden" value="PP-BuyNowBF:btn_paynowCC_LG.gif:NonHostedGuest" />

<table> <tbody> <tr> <td style="padding:0 5px 5px 0;">Amount €</td> <td style="padding:0 5px 5px 0;"><input maxlength="250" name="amount" type="text" value="[INVOICEBALANCENUM:50%] "</td> </tr> <tr> <td style="padding:0 5px 5px 0;"><input name="on0" type="hidden" value="reference" />Reference</td> <td style="padding:0 5px 5px 0;"><input maxlength="250" name="os0" type="text" value="[BOOKID]" /></td> </tr> <tr> <td> </td> <td style="padding:0 5px 5px 0; text-align: right;"><input alt="PayPal. The safer, easier way to pay online." name="submit" src="https://www.paypalobjects.com/en_US/i/btn/x-click-but6.gif" style="background:#ffffff; border:0;" type="image" /> <img alt="" height="1" src="https://www.paypalobjects.com/en_AU/i/scr/pixel.gif" style="border:0;" width="1" /></td> </tr> </tbody> </table> </fieldset> </form>

Exchange following information:

  • [INVOICEBALANCENUM:50%] - with the percentage or amount you want to collect
  • paypal@myemail.com - with the the email address of your Paypal account
  • EUR - with your currency e.g. USD,, CAD, AUD, GBP
  • http://myurl.com/confirm - with the link to the URL where the guest is sent after the payment was made
  • http://myurl.com/cancel - with the link to the URL where the guest is sent if he did not complete the payment