PayPal IPN - 购买按钮所需的最少字段?
我正在使用“立即购买”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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下链接有一个最小的示例: 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.