通过PayPal按钮在PayPal捐款表格中设置“注释”字段

时间:2016-11-05 02:56:34

标签: html paypal

我正在尝试通过PayPal按钮以编程方式设置“写一个注释”字段(显示在PayPal捐赠表单中)。可以看到该字段here

根据current documentation,看起来我只需要为item_name变量赋值。我有以下HTML,但它似乎没有做到这一点:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
	<input type="hidden" name="cmd" value="_donations">
	<input type="hidden" name="business" value="xxx@xxxxx.com">
	<input type="hidden" name="amount" value="10">
	<input type="hidden" name="item_name" value="hellooo!!!">
	<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" type="image" />
	<img src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" alt="" width="1" height="1" border="0" />
</form>

注意:此代码以前用于旧版本的捐赠表单。这可能是一次重大改变吗?

1 个答案:

答案 0 :(得分:0)

使用较新版本的网站付款标准结帐流程,“卖家须知”不再是受支持的功能。

解决方法是使用“选项变量”在结帐流程中创建文本框。选项变量的一个例子是“os0”和“on0”。

以下是我们网站上有关如何实施此问题的示例:https://www.paypal.com/us/cgi-bin/webscr?cmd=_pdn_xclick_options_help_outside

以下是HTML变量指南的另一个链接: https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/

如果您有任何疑问,请与我们联系!