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

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

问题描述

最近 Paypal Sandbox 似乎发生了很多变化,我的测试被困住了.之前,我们只指向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>

但现在,Sandbox 不断要求我请登录以使用 PayPal Sandbox 功能".我认为这意味着鉴于最新的 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.developer 帐户.如果您没有这个,那么只需在此处创建一个 https://developer.paypal.com/webapps/developer/applications/accounts.您的旧沙箱登录凭据在此处不起作用.但是在登录您的贝宝帐户后,您可以将旧沙箱的个人和企业帐户导入此处.

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/登录,在新选项卡中创建会话网络应用程序/开发人员/应用程序/帐户

如果仍然看到只有 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.

希望这对你有用.

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

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