Paypal 订阅按钮错误
这是我的标记
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions"/>
<input type="hidden" name="business" value="[email protected]"/>
<input type="hidden" name="lc" value="US"/>
<input type="hidden" name="item_name" value="XYZ"/>
<input type="hidden" name="no_note" value="1"/>
<input type="hidden" name="src" value="1"/>
<input type="hidden" name="srt" value="3"/>
<input type="hidden" name="a3" value="10.00"/>
<input type="hidden" name="p3" value="1"/>
<input type="hidden" name="t3" value="M"/>
<input type="hidden" name="currency_code" value="USD"/>
<input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHostedGuest"/>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_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>
,它会重定向到 paypal,但是当我使用沙箱测试帐户电子邮件登录时,会出现以下错误: 您用于进入 PayPal 系统的链接无效。请检查链接并重试。
有什么想法吗?
This is my markup
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions"/>
<input type="hidden" name="business" value="[email protected]"/>
<input type="hidden" name="lc" value="US"/>
<input type="hidden" name="item_name" value="XYZ"/>
<input type="hidden" name="no_note" value="1"/>
<input type="hidden" name="src" value="1"/>
<input type="hidden" name="srt" value="3"/>
<input type="hidden" name="a3" value="10.00"/>
<input type="hidden" name="p3" value="1"/>
<input type="hidden" name="t3" value="M"/>
<input type="hidden" name="currency_code" value="USD"/>
<input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHostedGuest"/>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_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>
With this it redirects to paypal, but when I login with sandbox test account email it gives following error:The link you have used to enter the PayPal system is invalid. Please review the link and try again.
Any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
[电子邮件受保护] 不是沙盒帐户。这是一个开发者帐户,用于访问 https://developer.paypal.com/
您还必须通过 https://developer.paypal.com/ > 创建测试买家/卖家帐户测试帐户。
“业务”的值将是卖家测试帐户的“电子邮件地址”。
[email protected] is not a Sandbox account. It's a developer account used for accessing https://developer.paypal.com/
You must also create a test buyer/seller account via https://developer.paypal.com/ > Test Accounts.
The value of 'business' will be the 'email address' of the Seller test account.