Paypal 沙盒测试 - 更改 URL 端点?

2023-06-24php开发问题
3

本文介绍了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.

我现在的问题是:

  • 这仍然有效吗?
  • 如果是,"https://www.sandbox.paypal.com/cgi-bin/webscr" 替换为什么?
  • 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 端点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

PHP实现DeepL翻译API调用
DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以...
2025-08-20 php开发问题
168

PHP通过phpspreadsheet导入Excel日期数据处理方法
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的...
2024-10-23 php开发问题
287

mediatemple - 无法使用 codeigniter 发送电子邮件
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)...
2024-08-23 php开发问题
11

Laravel Gmail 配置错误
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)...
2024-08-23 php开发问题
16

将 PHPMailer 用于 SMTP 的问题
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)...
2024-08-23 php开发问题
4

关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)...
2024-08-23 php开发问题
17