/ Published in: PHP
_PHP Snippet for Paying via Paypal_
This snippet is designed for most open source invoicing applications that you have control over the template setup. There multiple free or open source PHP applications that you can download server-side and implement this snippet at the bottom or very top of the template. Work great on *MyClientBase*.
This snippet is designed for most open source invoicing applications that you have control over the template setup. There multiple free or open source PHP applications that you can download server-side and implement this snippet at the bottom or very top of the template. Work great on *MyClientBase*.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $balance = invoice_balance($invoice) ; $invoicenum = invoice_id($invoice) ; $link = ("https://www.paypal.com/cgi-bin/webscr?cmd=_xclick¤cy_code=USD&business=$paypalemail&amount=$balance&tax=0&item_name=Invoice $invoicenum"); echo "<p>Pay securely with credit or debit card - <a href='$link' target=_blank >Click Here</p>"; echo '<img src="http://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/bnr/horizontal_solution_PP.gif"" border=0>'; ?>
URL: http://www.myclientbase.com/forums/viewtopic.php?f=3&t=755&p=3387&hilit=paypal#p3387