Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress 传递自定义PayPal支付字段_Wordpress_Paypal_Payment - Fatal编程技术网

Wordpress 传递自定义PayPal支付字段

Wordpress 传递自定义PayPal支付字段,wordpress,paypal,payment,Wordpress,Paypal,Payment,所以我尝试在我的Wordpress站点上实现一个PayPal支付字段,它有两个自定义字段,用户可以在其中键入 一是发票号 二是价格 我在stackoverflow上的另一篇文章中发现了一些代码(未测试),这些代码从2013年开始运行(线程的最后一篇文章) 它有一个文本框,用户可以在其中输入他们的自定义价格,并将其传递给PayPal。我需要编辑表单以允许发票号也通过。有人知道怎么做吗?以前从未使用过贝宝API。非常感谢您的帮助,谢谢 <form action="https://www.pa

所以我尝试在我的Wordpress站点上实现一个PayPal支付字段,它有两个自定义字段,用户可以在其中键入

一是发票号

二是价格

我在stackoverflow上的另一篇文章中发现了一些代码(未测试),这些代码从2013年开始运行(线程的最后一篇文章)

它有一个文本框,用户可以在其中输入他们的自定义价格,并将其传递给PayPal。我需要编辑表单以允许发票号也通过。有人知道怎么做吗?以前从未使用过贝宝API。非常感谢您的帮助,谢谢

<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="XXXXXXXX">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Payments">
<input type="hidden" name="amount" value="100.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="http://YOURSITE.com/">
<input type="hidden" name="cancel_return"     value="http://YOURSITE.com/payments.html">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest">
<input type="image" src="https://www.paypalobjects.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.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

我最终解决了这个问题

我必须将项目名称的type=“hidden”更改为type=“text”

非常简单的修复,没想到会这么容易