贝宝沙盒测试-更改URL端点? [英] Paypal Sandbox Testing - Change of URL Endpoint?

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

问题描述

最近,贝宝(Paypal)沙盒似乎发生了很多变化,我坚持进行测试.在此之前,我们仅指向 https://www.sandbox.paypal.com/cgi-bin /webscr 用于沙盒测试,如以下代码所示:

It seems there are a lot of changes with Paypal Sandbox lately and I am stuck with my testing. Before, we only point to https://www.sandbox.paypal.com/cgi-bin/webscr for Sandbox testing as seen in the code below:

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" style="padding: 0; margin: 0;">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="your bussiness id" />
<input type="hidden" name="quantity" value="1" />
<input type="hidden" name="item_name" value="your item" />
<input type="hidden" name="item_number" value="1" />
<input type="hidden" name="amount" value="item price" />
<input type="hidden" name="shipping" value="0" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="notify_url" value="Your notify url">
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="rm" value="2" >
<input type="hidden" name="return" value="your return url">
<input type="image" border="0" name="paypal" src="images/btn_paypal_nl.gif" onClick=""/>
</form>

但是,现在,沙盒一直问我请登录以使用PayPal沙盒功能".我认为这意味着我在使用最新的Paypal Sandbox更改后使用了错误的端点.

But now, Sandbox keeps asking me to "Please login to use the PayPal Sandbox features." which I assume means I am using the wrong endpoint given the latest Paypal Sandbox changes.

我现在的问题是:

  • Does this still work?
  • If yes, "https://www.sandbox.paypal.com/cgi-bin/webscr" is replaced with what?

截至目前,我假设上面提到的URL是我唯一需要做的更改.但是,我找不到要提交表单的新URL的新文档.而且Paypal尚未更新有关此文档.

As of now, I'm assuming that the URL I mentioned above is the only change I need to do. However, I can't find new documentation on what the new URL to submit the form to is. And Paypal doesn't have updated docs about this.

请帮助.

谢谢.

推荐答案

是的,链接" https://www.sandbox.paypal.com/cgi-bin/webscr "仍然有效.但是,现在您必须使用Paypal帐户凭据登录到paypal.developer帐户.如果您没有,请在这里 https://developer.paypal.com创建一个/webapps/developer/applications/accounts .您的旧沙箱登录凭据在这里无法使用.但是登录完Paypal帐户后,您可以将旧沙箱的个人和企业帐户导入此处.

Yes, the link "https://www.sandbox.paypal.com/cgi-bin/webscr" still work. But, now you have to use your paypal account credential to login to your paypal.developer acount. If you don't have this then just create one here https://developer.paypal.com/webapps/developer/applications/accounts. Your old sandbox login credentials will not work here. But after logging through your paypal account you can import your old sandbox's personal and business account to here.

通过使用 https://developer.paypal.com/登录来在新标签页中创建会话webapps/developer/applications/accounts

,如果仍然看到只有sandbox.com名称的沙盒空白页,则只需清除您的cookie并重新缓存一次即可.

and if still see sandbox blank page with just sandbox.com name then just clear your cookies and cache an try again.

希望这对您有用.

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

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