Difference between revisions of "Send Paypal Payment Request"

From Beds24 Wiki
Jump to navigation Jump to search
Line 8: Line 8:
 
In the "Email" tab click on "Edit" then "Source code.  
 
In the "Email" tab click on "Edit" then "Source code.  
  
This is an example code for a request to pay a 50%</span>"deposit:
+
This is an example code for a request to pay a 50% deposit:
  
 
<div style="background-color: #f9f9f9; border: 1px solid #ddd; padding: 5px">
 
<div style="background-color: #f9f9f9; border: 1px solid #ddd; padding: 5px">
  
<p>The deposit amount is &euro; <span style="color:#008acc;">[PRICE:50%]</span><br />
+
<p>The deposit amount is &euro; <span style="color:#008acc;">[PRICENUM:50%]</span><br />
 
<br />
 
<br />
The remaining balance of &euro; <span style="color:#008acc;">[PRICE:50%]</span> can be paid at your arrival at - [PROPERTYNAME].<br />
+
The remaining balance of &euro; <span style="color:#008acc;">[PRICENUM:50%]</span> can be paid at your arrival at - [PROPERTYNAME].<br />
 
&nbsp;</p>
 
&nbsp;</p>
  
Line 74: Line 74:
 
Exchange following information:
 
Exchange following information:
  
*[PRICE:50%] - with the percentage or amount you want to collect
+
*[PRICENUM:50%] - with the percentage or amount you want to collect
 
*[email protected] - with the the email address of your Paypal account
 
*[email protected] - with the the email address of your Paypal account
 
*EUR - with your currency e.g. USD,, CAD, AUD, GBP
 
*EUR - with your currency e.g. USD,, CAD, AUD, GBP
 
*<nowiki>http://myurl.com/confirm</nowiki> - with the link to the URL where the guest is sent after the payment was made
 
*<nowiki>http://myurl.com/confirm</nowiki> - with the link to the URL where the guest is sent after the payment was made
 
*<nowiki>http://myurl.com/cancel</nowiki> - - with the link to the URL where the guest is sent if he did not complete the payment
 
*<nowiki>http://myurl.com/cancel</nowiki> - - with the link to the URL where the guest is sent if he did not complete the payment

Revision as of 20:57, 28 March 2016

This page explains how to create an Email template with a payment request.

Requires: Knowledge of HTML

You can use an Auto Action email to send a Paypal payment request. Go to SETTINGS->GUEST MANAGEMENT->AUTO ACTIONS and create an Auto Action.

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

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

The deposit amount is € [PRICENUM:50%]

The remaining balance of € [PRICENUM: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="[email protected]" />

<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="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="[PRICE: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="[REFERENCENUMBER]" /></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:

  • [PRICENUM:50%] - with the percentage or amount you want to collect
  • [email protected] - 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