PHP Pay via Paypal(适用于大多数开源发票应用程序)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP Pay via Paypal(适用于大多数开源发票应用程序)相关的知识,希望对你有一定的参考价值。
_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*.
<?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>'; ?>
以上是关于PHP Pay via Paypal(适用于大多数开源发票应用程序)的主要内容,如果未能解决你的问题,请参考以下文章
Paypal 对话框向我显示“Android_pay_button PayPal”之类的按钮如何解决此错误?