Paypal Express结帐:10410无效令牌 [英] Paypal Express Checkout : 10410 Invalid Token

查看:137
本文介绍了Paypal Express结帐:10410无效令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上使用Paypal Express Checkout API,在沙盒网站上遇到错误. USER,PWD和SIGNATURE字段已验证并且正确.为了方便阅读,我用换行符替换了&符.

I Am using the Paypal Express Checkout API on my web site, and encountering an error while on the sandbox site. The USER, PWD and SIGNATURE fields have been verified and are correct. I have replaced ampersands with newlines for readability.

首先,我的SetExpressCheckout请求:

First, my SetExpressCheckout request:

USER=xxx
PWD=xxx
SIGNATURE=xxx
VERSION=76.0
METHOD=SetExpressCheckout  
RETURNURL=xxx
CANCELURL=xxx
REQCONFIRMSHIPPING=0
NOSHIPPING=1
LOCALECODE=FR
SOLUTIONTYPE=Sole
LANDINGPAGE=Billing
PAYMENTREQUEST_0_AMT=86.11
PAYMENTREQUEST_0_CURRENCYCODE=EUR
PAYMENTREQUEST_0_ITEMAMT=72.00
PAYMENTREQUEST_0_TAXAMT=14.11
PAYMENTREQUEST_0_INVNUM=1tyZq03X5c8
PAYMENTREQUEST_0_PAYMENTACTION=Sale
PAYMENTREQUEST_0_PAYMENTREQUESTID=1tyZx03f5c8

贝宝的响应如下:

TOKEN=EC%2d9FE8384171515313J
TIMESTAMP=2011%2d08%2d24T08%3a44%3a36Z
CORRELATIONID=696e70dbd6086
ACK=Success
VERSION=76%2e0
BUILD=2055089

在用户在Paypal网站上填写的付款并返回到上面指定的确认URL之后,我运行GetExpressCheckoutDetails:

After the user fills in the payment for on the Paypal site and returns to the confirm URL specified above, I run the GetExpressCheckoutDetails:

USER=xxx
PWD=xxx
SIGNATURE=xxx
VERSION=76.0
METHOD=GetExpressCheckoutDetails
TOKEN=EC-9FE8384171515313J

响应为:

TIMESTAMP=2011%2d08%2d24T08%3a45%3a56Z
CORRELATIONID=6a2bbe8363462
ACK=Failure
VERSION=76%2e0
BUILD=2055089
L_ERRORCODE0=10410
L_SHORTMESSAGE0=Invalid%20token
L_LONGMESSAGE0=Invalid%20token%2e
L_SEVERITYCODE0=Error

提供令牌的代码一个月都没有更改(直到几分钟前,它才能正常工作).从日志来看,我的请求结构没有变化,因此我假设这一定是PayPal方面的配置问题.

The code that provides the token has not changed for a month (and it worked correctly until several minutes ago). Judging from the logs, there was no change in the structure of my requests, so I am assuming this must be a configuration problem on the PayPal side.

一个可能很重要的细节:在系统开始出现故障之前,我已在沙箱中重置了卖方帐户,但是我确保API凭据是正确的(当我重置卖方帐户时,它们没有更改)

A detail which might be of importance: I reset the seller account in the sandbox before the system started to malfunction, but I made sure that the API credentials are the correct ones (they did not change when I reset the seller account).

有什么主意为什么我会突然出现此错误?

Any ideas why I am getting this error all of a sudden?

推荐答案

帐户重置操作似乎也禁用了API凭据,但是在一个小时左右的延迟时间内,API凭据仍然处于活动状态,但是很奇怪使用它们时,事情发生了.

It seems that the account reset operation also disables the API credentials, but there was a delay of an hour or so during which the API credentials remained active, but strange things happened when using them.

一个小时后,API凭据被有效禁用,因此我只使用了新的凭据,一切正常.

After an hour, the API credentials were effectively disabled, so I just used the new ones and everything works fine.

简而言之:在沙盒中重置帐户时,请计划一个小时的停机时间.

In short: when performing an account reset in the sandbox, plan for an hour of downtime.

这篇关于Paypal Express结帐:10410无效令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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