[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: payments from email



As a follow up to my original question under this same subject dated June
12 to the devel list. Turns out a user can add one.
How I added a paypal "buy it now button"

This will add a button that pays an invoice total using your merchant
paypal account. We use project numbers to identify different contracting
jobs for the same customer so substitute you own variable there or remove
the projectnumber_1 line.

This does not allow a customer to create an order just pay a bill for work
you already performed etc...

Edit the invoice.html file in templates.
Append this code to the end of your invoice.html

<br>
<form target="_blank" action="https://www.paypal.com/cgi-bin/webscr";
method="post">


<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="..hidden..">
<input type="hidden" name="amount" value="<?lsmb total ?>">
<input type="hidden" name="item_name" value="<?lsmb projectnumber_1 ?>">
<input type="hidden" name="item_number" value="<?lsmb invnumber ?>">
<input type="hidden" name="invoice" value="<?lsmb invnumber ?>">
<input type="hidden" name="bn" value="YourBuisnessNameWithNOspaces">
<input type="image"
src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif"; border="0"
name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif";
width="1" height="1">

Tips:
Do not use the paypal button creator.
Insert your data for YourBuisnessNameWithNOspaces and
..hidden..

Email the invoice and use the html template.

Enjoy accepting plastic and getting paid faster but loosing a %.

-Turtle