【发布时间】:2016-02-19 04:19:00
【问题描述】:
我正在使用 joomla,并带来了一个允许用户在我的网站上发布列表的组件。该插件使用信用系统来支付列表费用,但信用系统非常复杂和混乱,所以我禁用了它。
我发现 PayPal 提供了一些代码,可以在任何网页上插入“立即购买”按钮 :) 完美,正是我想要的!
我遇到的唯一问题是按钮显示在我的添加列表表单(这也是组件的一部分)上,但只需单击表单的提交按钮即可轻松绕过它,这意味着列表可以无需付费即可发布。
所以我的问题是:
- 一旦用户点击立即购买按钮,就可以 将他们重定向回他们刚刚填写的“添加列表”表单 出去?
- 我可以在付款完成之前禁用表单上的提交按钮吗 确认的?
- PayPal“立即购买”按钮是否返回任何信息 确认该过程是否成功?
我正在使用 html + php :)
我用来生成立即购买按钮的代码是
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="smyacc@hotmail.com">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="item_name" value="listing-purchase">
<input type="hidden" name="amount" value="2.99">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="shipping" value="0.00">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest">
<input type="image" src="https://www.paypalobjects.com/en_US/GB/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.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
非常感谢您对此的任何帮助!!!
卢克
【问题讨论】:
-
您可能会在类似的主题stackoverflow.com/questions/33951242/payment-info-using-paypal/… 上发现这很有趣
标签: php paypal joomla paypal-buttons