贝宝沙盒-测试付款 [英] Paypal sandbox - test payment

查看:88
本文介绍了贝宝沙盒-测试付款的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Laravel 4.2 + Knockoutjs开发在线商店应用程序,我想使用Paypal进行测试付款.因此,我创建了一个新的Paypal Sandbox帐户.然后,我登录并转到创建了买卖双方帐户的信息中心"->帐户":test-facilitator@gmail.com和test-buyer@gmail.com.遵循本文档 https://developer.paypal.com /docs/classic/paypal-payments-standard/integration-guide/formbasics/这是我的表单:

I am developing online store application with Laravel 4.2 + Knockoutjs and I want to make test payments with paypal. So I have created new Paypal Sandbox account. Then I login and go to Dashboard->Accounts where I created buyer and seller accounts: test-facilitator@gmail.com and test-buyer@gmail.com. Following this documentation https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/formbasics/ this is my form:

<form method="post" action="https://www.paypal.com/cgi-bin/webscr">
  <fieldset>
    <input id="buy" name="submit" type="submit" class="btn btn-primary" value="Buy" id="">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="test-facilitator@gmail.com">
    <input type="hidden" name="item_name" value="My online store">
    <input type="hidden" name="currency_code" value="EUR">
    <input type="hidden" name="amount" data-bind="value: amount"> 
    <input type="hidden" name="notify_url" value="my_notify_url">
    <input type="hidden" name="return" value="my_return_url">
    <input type="hidden" name="cancel_return" value="my_cancel_url">
 </fieldset>
</form>

因此,我单击按钮,重定向到贝宝,并尝试使用在沙箱帐户中设置的密码使用test-buyer@gmail.com登录.这就是问题所在-贝宝(Paypal)说我的凭证错误.我应该如何进行测试付款,我做错了什么?

So I am clicking the button, redirected to paypal and I am trying to login with my test-buyer@gmail.com with the password I have set in the sandbox account. And here is the problem - Paypal says that my credentials are wrong. How should I proceed my test payment, what am I doing wrong ?

推荐答案

问题是您的表单操作正在发布到 https ://www.paypal.com/ ....

The problem is that your form action is posting to https://www.paypal.com/....

您的操作网址应为 https://www.sandbox.paypal.com/cgi -bin/webscr

这篇关于贝宝沙盒-测试付款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆