简体   繁体   English

贝宝沙箱立即购买问题

[英]PayPal sandbox Buy Now Problem

I have paypal sandbox test account. 我有贝宝沙盒测试帐户。 I want to create a 'buy Now' button. 我想创建一个“立即购买”按钮。 I am trying it with GWT. 我正在与GWT尝试。 But its even not working with simple HTML form. 但是它甚至不能与简单的HTML形式一起使用。 It displays a 'Buy Now' button on HTML page and after clicking on it redirects to PayPal site. 它在HTML页面上显示“立即购买”按钮,单击后将重定向到PayPal网站。 Where it ask to login to buy product but after that it goes on displaying message: The email address or password you have entered does not match our records. 它要求登录以购买产品的位置,但之后继续显示消息:您输入的电子邮件地址或密码与我们的记录不匹配。 Please try again. 请再试一次。 I am using buyer user to purchase product. 我正在使用买方用户购买产品。 I am pretty sure about the username and password. 我非常确定用户名和密码。

Providing here the simple HTML form which I am trying: 在这里提供我尝试的简单HTML形式:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="payPalForm">
<input type="hidden" name="item_number" value="1">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="no_note" value="1"><br>
<input type="hidden" name="business" value="sellr1_1252495907_biz@gmail.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="cn" value="Add special instructions to the seller">
<input type="hidden" name="no_shipping" value="2">

<input type="hidden" name="rm" value="1">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_paynow_SM.gif:NonHosted">

<input type="hidden" name="variables" value="http://google.com">
<input type="hidden" name="cancel_return" value="http://google.com">
<input type="hidden" name="notify_url" value="http://google.com">
<input type="hidden" name="return" value="http://freelanceswitch.com/payment-complete /">
<input type="hidden" name="currency_code" value="USD">
<input name="item_name" type="hidden"    value="Deal Name">
<input name="amount" type="hidden"  value="500">
<input type="submit" name="Submit" value="Submit">
</form>

Please advice. 请指教。 Thank you. 谢谢。

As Lazarus has pointed out you are using the wrong address for your form action. 正如拉撒路(Lazarus)指出的那样,您在表单操作中使用了错误的地址。 You are posting to the live PayPal service - The sandbox is what it is, its a dev version of the live Paypal... why shouldn't the Sandbox environment ask you Credit Card details, how else would you test your check out process? 您正在发布实时PayPal服务-沙盒是它的实质内容,它是实时Paypal的开发版本...为什么沙盒环境不要求您提供信用卡详细信息,否则您将如何测试结帐流程?

Obviously the sandbox environment uses dummy credit card numbers. 显然,沙箱环境使用虚拟信用卡号。

Anyway, I believe the address you need for your form action method is: 无论如何,我相信您需要使用表单操作方法的地址是:

https://www.sandbox.paypal.com/cgi-bin/webscr https://www.sandbox.paypal.com/cgi-bin/webscr

Your hidden fields look ok :) 您的隐藏字段看起来还可以:)

Also please consider marking answers once you feel your questions have been answered - just click on the outline 'tick' for whichever answer you feel is best. 另外,一旦您认为自己的问题已被回答,请考虑标记答案-只需单击大纲“勾号”,即可找到最合适的答案。

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

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