PayPal IPN - 购买按钮所需的最少字段?

发布于 2024-09-16 17:46:55 字数 608 浏览 1 评论 0原文

我正在使用“立即购买”PayPal 按钮,但我不想使用 PayPal 帐户上以前保存的按钮,我想创建一个包含提交按钮的自定义表单。但是,我需要知道哪些字段是表单的最低必需字段。我以为会是这样的,

<input type="hidden" name="cmd" value="_s-xclick" >
<input type="hidden" name="business" value="[email protected]" >
<input type="hidden" name="item_name" value="some item name" >
<input type="hidden" name="item_number" value="some item number" >
<input type="hidden" name="amount" value="10.00" >

但这作为 PP 上的未指定错误不断出现。有什么想法吗?

I am using "buy it now" PayPal buttons but I DO NOT want to use the previously saved buttons on my PayPal account, I want to create a custom form that has a submit button. However, I need to know which fields are the minimum required ones for a form. I thought it would be something like this

<input type="hidden" name="cmd" value="_s-xclick" >
<input type="hidden" name="business" value="[email protected]" >
<input type="hidden" name="item_name" value="some item name" >
<input type="hidden" name="item_number" value="some item number" >
<input type="hidden" name="amount" value="10.00" >

But this keeps on kicking back as an unpecified error on PP. Any thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瑶笙 2024-09-23 17:46:55

以下链接有一个最小的示例: https://www.paypal.com/ cgi-bin/webscr?cmd=_pdn_xclick_techview_outside 。最重要的部分是确保操作正确并且 cmd 字段正确。 (我不熟悉 _s-xclick 作为命令 - 我自己总是使用 _xclick - 但我在该领域的知识无可否认有点过时。)

更多提示为了使表格恰到好处,我建议在 PayPal 开发者网络上浏览一下: https://www.x .com/index.jspa

另外,请注意:PayPal IPN 是一项功能,可在购买后从 PayPal 向您(商家)回调帖子,但似乎与您所执行的功能不太一样。使用此处,这是从用户浏览器发布到 PayPal 的按钮表单。在“立即购买”按钮中提交表单仅被视为“立即购买”按钮功能的一部分。

The following link has a minimal example: https://www.paypal.com/cgi-bin/webscr?cmd=_pdn_xclick_techview_outside . The most important parts are making sure the action is correct and the cmd field is correct. (I'm not familiar with _s-xclick as a command – I always use _xclick myself – but my knowledge in the area is admittedly a bit dated.)

For more tips on making the form just right, I recommend poking around on the PayPal Developer network: https://www.x.com/index.jspa

Also, please note: PayPal IPN is a feature that does callback posts from PayPal to you, the merchant, after a purchase is made, and doesn't quite seem to be what you're working with here, which is the button's form posted from the user's browser to PayPal. This form submission in a buy-now button is just considered part of the buy-now button feature.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文