web - Paypal 网站服务付款

标签 web paypal payment

我正在尝试在我的网站上设置 PayPal 的网站支付系统,我在其中销售没有运费的服务!

我想指定 PayPal Checkout 为我发送付款不是为了商品,而是为了服务,这样我就不必运送实物了!

我现在的代码:(现在是沙箱)

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="lc" value="en">
<input type="hidden" name="page_style" value="primary">
<input type="hidden" name="business" value="pp_1350857585_biz@zgmail.us">
<!-- <input type="hidden" name="notify_url" value=""> -->
<input type="hidden" name="item_name" value="TEST">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="amount" value="100">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="no_shipping" value="1">
<!-- <input type="hidden" name="return" value=""> -->
<!-- <input type="hidden" name="cancel_return" value=""> -->
<!-- <input type="hidden" name="custom" value=""> -->
<input type="image" style="width: 144px;" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_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">

我应该改变什么?

提前致谢!

最佳答案

您需要添加此设置L_PAYMENTREQUEST_n_ITEMCATEGORYm

来自 Paypal 文档:

Indicates whether an item is digital or physical. For digital goods, this field is required and must be set to Digital. You can specify up to 10 payments, where n is a digit between 0 and 9, inclusive, and m specifies the list item within the payment; except for digital goods, which only supports single payments. These parameters must be ordered sequentially beginning with 0 (for example L_PAYMENTREQUEST_n_ITEMCATEGORY0, L_PAYMENTREQUEST_n_ITEMCATEGORY1). It is one of the following values:

数字 body 的 此字段自版本 65.1 起可用。

关于web - Paypal 网站服务付款,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13002963/

相关文章:

asp.net - 支付宝底层连接被关闭

php - Paypal API 待处理付款

magento - 客户无法使用 PayPal Website Payments Standard 登录而不用卡支付

php - Paypal IPN 安全性已验证

css - HTML 三页布局列空白问题

java - 为什么在Gradle war插件中 'javax.servlet'可以是 'ProvidedCompile'?

javascript - PayPal集成中出现“未处理的API错误”

php - 如果数据库没有显示任何内容,则会出现错误消息

google-chrome - chrome 和蓝牙 - 连接、发现 - 如何使其正常工作?

magento - 仅在特定状态下设置付款方式 "Cash On Delivery"