DoReferenceTransaction没有成功 [英] Not getting success for DoReferenceTransaction

查看:116
本文介绍了DoReferenceTransaction没有成功的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看看我如何开始完成程序,

See how I started complete procedure,

步骤1.首先调用SetExpressCheckout,

AMT=0.00
PAYMENTREQUEST_0_AMT=0.00
PAYMENTACTION
BILLINGAGREEMENTDESCRIPTION

BILLINGTYPE=MerchantInitiatedBilling

RETURNURL
CANCELURL
CURRENCYCODE



SOLUTIONTYPE=Sole 
LOCALECODE=us 
LANDINGPAGE=Billing

第2步.然后我打电话给CreateBillingAgreement

TOKEN
PAYERID
PAYMENTACTION

AMT
CURRENCYCODE
IPADDRESS

它返回帐单ID.

第3步.使用参数调用DoReferenceTransaction:

&REFERENCEID=B-0GJ65589SA3528026   //billing Id generated by CreateBillingAgreement method
&PAYMENTACTION=Sale
&AMT=3.00
&CURRENCYCODE=USD
&IPADDRESS=paypalrecurring.com
&L_ITEMCATEGORY0=Digital
&DESC=Test+Recurring+Payment%28+%243.00+monthly%29
&L_PAYMENTREQUEST_0_ITEMCATEGORY0=Digital
&L_PAYMENTREQUEST_0_QTY0=1
&L_PAYMENTREQUEST_0_NAME0=Test Name
&L_PAYMENTREQUEST_0_AMT0=3.00
&L_NAME0=Test Name
&L_DESC0=Test+Recurring+Payment%28+%243.00+monthly%29
&L_AMT0=3.00
&ITEMAMT=3.00
&L_QTY0=1

但是错误提示:

  Array
(
    [TIMESTAMP] => 2015-11-03T11:29:51Z
    [CORRELATIONID] => 811b64f880aff
    [ACK] => Failure
    [VERSION] => 69
    [BUILD] => 000000
    [L_ERRORCODE0] => 10004
    [L_SHORTMESSAGE0] => Invalid Data
    [L_LONGMESSAGE0] => This transaction cannot be processed.
    [L_SEVERITYCODE0] => Error
    [TRANSACTIONTYPE] => None
    [PAYMENTTYPE] => None
    [ORDERTIME] => 1970-01-01T00:00:00Z
    [PAYMENTSTATUS] => None
    [PENDINGREASON] => None
    [REASONCODE] => None
)

请告诉我我哪里错了. 注意:贝宝团队表示已启用RT. (沙盒测试)

Please tell me where I am wrong. Note: Paypal team said RT enabled. (Sandbox testing)

推荐答案

首先尝试设置

正在恢复

DoReferenceTransaction API调用的

字段.

field of DoReferenceTransaction API call.

如果未成功,请使用方法CreateRecurringPaymentsProfile而不是DoReferenceTransaction. API文档链接.

If it's without success use method CreateRecurringPaymentsProfile instead DoReferenceTransaction. API Documentation link.

我建议不要使用贝宝(Paypal)沙箱-只需使用 https://api-3t.paypal.com/nvp 并将价格设置为0.01-这样可以防止重复测试

I recommend to not use paypal sandbox - just use https://api-3t.paypal.com/nvp and set price to 0.01 - this will prevent double testing

当SetExpressCheckout方法与DoReferenceTransaction(在您的情况下)不兼容时,出现错误10004

关于错误"Express Checkout数字商品不再适用于新集成": 我们与Paypal支持人员联系,为我们的主要Paypal帐户激活了数字商品.另外,我们尝试了很多次以在我们的Paypal帐户中激活数字商品",几天后,这个错误像奇迹般消失了:)

About error "Express Checkout Digital Goods is no longer available for new integrations" : We made a contact with Paypal support to activate the Digital Goods for our main paypal account. Also we tried many times to activate Digital Goods inside our paypal account and after several days this error disappear like a miracle :)

我不确定如何解决此错误,但是在尝试了许多不同的测试(包括要求PayPal支持)之后,他就消失了.因此,我的建议是继续尝试不同的方式和组合方式

这篇关于DoReferenceTransaction没有成功的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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