贝宝“SetExpressCheckout"API 方法已停止与沙盒卖家帐户一起使用 [英] Paypal "SetExpressCheckout" API method has stopped working with sandbox seller account

查看:119
本文介绍了贝宝“SetExpressCheckout"API 方法已停止与沙盒卖家帐户一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序使用 SetExpressCheckout paypal 经典 API 方法.当我在真实环境中使用真实账户时,它运行良好.

My application uses the SetExpressCheckout paypal classic API method. It is working fine when I use real accounts in a live environment.

它曾经使用测试帐户可以正常工作,但几周前它已停止正常工作.在某些时候,我的应用程序使用 PHP 中的 curl 调用SetExpressCheckout"API 方法.当我使用我一直用于测试的测试卖家帐户时,我总是收到以下错误:

It used to work fine using test accounts, but some weeks ago it has stopped working right. At some point, my application calls the "SetExpressCheckout" API method using curl in PHP. When I use the test seller account that I've always used for my tests, I always get the following error:

SetExpressCheckout API call failed.
Detailed Error Message: Security header is not valid
Short Error Message: Security error
Error Code: 10002
Error Severity Code: Error

我知道贝宝最近重组了它的开发者网络",问题似乎是由此引起的,但我没有证据.我使用的 API 现在称为经典"API.

I know that paypal has recently restructured its "developer network", and the issue seems to be caused by this but I have no proof of that. The API I used is now called the "classic" API.

我已经阅读了文档,它说我现在必须创建一个新的真实"paypal 帐户,然后使用它登录到 https://developer.paypal.com.我就是这么做的.

I've read the documentation, and it says that I now have to create a new "real" paypal account, and then use it to log to https://developer.paypal.com. I did that.

登录开发者网站后,有一项功能允许我们导入旧沙盒帐户中使用的所有测试买家和卖家帐户.我这样做了,我的旧测试帐户出现在列表中.

Once logged to the developer website, there is a feature allowing us to import all the test buyer and seller accounts used in an old sandbox account. I did that, and my old test accounts appeared in a list.

其中之一是我用来测试的测试卖家帐户.当我检查此帐户的详细信息时,用于向贝宝 API 进行身份验证的用户名、密码和签名都在那里.如果我使用它们,它仍然返回之前的错误.

One of them is the test seller account I used to test. When I check the details of this account, the username, password and signature used to authenticate to the paypal API are there. If I use them, it still returns the previous error.

还有一项功能允许我创建测试帐户.我创建了一个新卖家,但仍然收到相同的错误消息.

There is also a feature allowing me to create test accounts. I've created a new seller, and still, I get the same error message.

当我在谷歌上搜索这个问题时,大多数答案都说用户名、密码或签名错误或其中隐藏了空格.那不是我的情况.

When I search on google about this issue, most answers says that the username, password or signature are wrong or have hidden white spaces in them. That's not my case.

我不知道如何解决这个问题.我想知道 API 端点是否已更改.我目前使用https://api-3t.paypal.com/nvp"进行测试.我使用的是 NVP API,版本 64.

I don't know how to solve that problem. I am wondering if the API endpoint has changed. I currently use "https://api-3t.paypal.com/nvp" for tests. I am using the NVP API, version 64.

简而言之:1)我的测试帐户曾经可以工作2)代码没有修改3)真实账户曾经有效并且仍然有效.4)但测试买家账户已停止工作5)该问题按时间顺序与paypal开发者网络"重组相吻合.6)我不知道究竟发生了什么变化,可能会导致这种情况.7) 有谁知道发生了什么变化并且可能导致这种情况(查询字符串中的新参数?端点 URL 发生了变化?)?8) 根据我之前的描述,我似乎误解了什么?

To make it short: 1) My test account used to work 2) The code has not been modified 3) Real accounts used to work and still work. 4) But test buyer account has stopped working 5) The issue chronologically coincide with paypal "developer network" restructuring. 6) I don't know what has changed exactly and might cause this. 7) Does anyone know what has changed and might has caused this (a new parameter in the query string? Endpoint URL changed?)? 8) According to my previous description, do I seem to have misunderstood something, and what?

推荐答案

我目前使用https://api-3t.paypal.com/nvp"用于测试.

那是你的问题.您使用的是测试凭据,但使用的是实时 API 端点.
将您的端点更改为 https://api-3t.sandbox.paypal.com/nvp一切都应该没问题.

That's your problem. You're using test credentials, but the live API endpoint.
Change your endpoint to https://api-3t.sandbox.paypal.com/nvp and all should be fine.

这篇关于贝宝“SetExpressCheckout"API 方法已停止与沙盒卖家帐户一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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