简体   繁体   English

在PayPal付款中获取商品名称

[英]Get item name in PayPal payments

I forward users from my website to the PayPal payment page via a simple POST request that contains payment information: 我通过包含付款信息的简单POST请求将用户从我的网站转发到PayPal付款页面:

<FORM action="https://www.paypal.com/cgi-bin/webscr" method="post">

This form contains everything that is needed including an hidden element "item" that describes the product to be paid. 此表单包含所需的所有内容,包括描述要支付的产品的隐藏元素“item”。 Amazingly in my PayPal backend I never see the value of this "item" field but only the name of the person who paid. 令人惊讶的是,在我的PayPal后端,我从未看到此“项目”字段的价值,而只看到付款人的姓名。

So: what has to be changed to see the item/product name together with the received payments? 那么:必须更改哪些内容才能看到项目/产品名称以及收到的付款?

Thanks! 谢谢!

You should take a look: Paypal variables 你应该看看: Paypal变量

item_name 项目名称

Description of item. 项目描述。 If this variable is omitted, buyers enter their own name during checkout. 如果省略此变量,买方在结账时输入自己的名称。

  • Optional for Buy Now, Donate, Subscribe, Automatic Billing, Installment Plan, and Add to Cart buttons 可选择立即购买,捐赠,订阅,自动计费,分期付款计划和添加到购物车按钮
  • Not used with Buy Gift Certificate buttons 不与购买礼券按钮一起使用

Hope it helps! 希望能帮助到你!

Elmi, the name of the variable for the name of the object is "item_name". Elmi,对象名称的变量名称是“item_name”。
Hope that helps. 希望有所帮助。

您应该使用字段名称“item_name”而不是“item”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM