我试图在{3}的帮助下通过Ruby on Rails中的Paypal的ExpressCheckout API设置定期付款配置文件,但我一直收到错误代码11502(无效令牌)=> paypal-express gem
文档有点不清楚,因为它没有说什么缺失:
请求中缺少一个或多个订阅详细信息字段。
我已经检查了文档Paypal error code documentation中的必填字段,但我不认为我错过了任何字段。由于我们不提供产品,因此无需提供运输详情。 以下是我在结帐时创建定期个人资料时发送给Paypal的日志:
SetExpressCheckout
参数:
{:RETURNURL =>" here&#34 ;, :CANCELURL =>" http://localhost:3000/paypal/validate&#34 ;, :REQCONFIRMSHIPPING => 0,:NOSHIPPING => 1,:ALLOWNOTE => 0, :PAYMENTREQUEST_0_AMT =>" 88.00",:PAYMENTREQUEST_0_TAXAMT =>" 0.00", :PAYMENTREQUEST_0_SHIPPINGAMT =>" 0.00&#34 ;, :PAYMENTREQUEST_0_CURRENCYCODE =>" HKD",:PAYMENTREQUEST_0_DESC =>"加x 2个月订阅x 2名员工",:LOCALECODE =>:fr}
回应:
TOKEN = EC%2d0H440138VJ9552235&安培; TIMESTAMP = 2015%2d04%2d25T08%3a38%3a42Z&安培;的correlationID> = 48742557da98&安培; ACK =成功&安培; VERSION = 88%2E0&安培; BUILD = 16428450
CreateRecurringPaymentsProfile
参数:
{:TOKEN =>" EC-0H440138VJ9552235",:BILLINGPERIOD =>:月, :BILLINGFREQUENCY => 2,:TOTALBILLINGCYCLES => 0,:AMT =>" 88.00", :CURRENCYCODE =>" HKD",:SHIPPINGAMT =>" 0.00",:TAXAMT =>" 0.00", :DESC =>"加上x 2个月订阅x 2名员工",:MAXFAILEDPAYMENTS => 0, :PROFILESTARTDATE =>" 2015-04-25 16:39:24"}
响应:
TIMESTAMP = 2015%2d04%2d25T08%3a39%3a26Z&安培;的correlationID = 533964ff183a1&安培; ACK =失败&安培; VE> RSION = 88%2E0&安培; BUILD = 16398710&安培; L_ERRORCODE0 = 11502&安培; L_SHORTMESSAGE0 =无效%20Token&安培; L_> LONGMESSAGE0 =该 %20token%图20是%20invalid&安培; L_SEVERITYCODE0 =错误
你们有什么想法可能有什么不对吗?我可以毫无问题地执行付款,在创建定期个人资料时会出现此问题。
答案 0 :(得分:1)