2013-09-26 121 views
0

我正在嘗試使用並行Paypal Express結賬。這裏是API implementation在PayPal並行快速結賬訂單

我使用PAYMENTREQUEST_0_PAYMENTACTION => OrderSetExpressCheckoutDoExpressChecoutPayment它給出了錯誤(這是必需的)。

當我用PAYMENTREQUEST_0_PAYMENTACTION => OrderSetExpressCheckoutPAYMENTREQUEST_0_PAYMENTACTION => SaleDoExpressChecoutPayment它的作品。

一切順利,直到DoExpressChecoutPayment。從這個請檢查該

DoExpressCheckoutPayment Request 
(
[TOKEN] => EC-4U931568VK402050F 
[PAYERID] => BFSU67Z2LX5FJ 
[VERSION] => 97.0 
[METHOD] => DoExpressCheckoutPayment 
[USER] => 'user' 
[PWD] => 'pwd' 
[SIGNATURE] => 'sig' 
[PAYMENTREQUEST_0_PAYMENTACTION] => ORDER 
[PAYMENTREQUEST_0_AMT] => 200.00 
[PAYMENTREQUEST_0_CURRENCYCODE] => EUR 
[PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID] => [email protected] 
[PAYMENTREQUEST_0_PAYMENTREQUESTID] => 25935 
[PAYMENTREQUEST_1_PAYMENTACTION] => ORDER 
[PAYMENTREQUEST_1_AMT] => 22.00 
[PAYMENTREQUEST_1_CURRENCYCODE] => EUR 
[PAYMENTREQUEST_1_SELLERPAYPALACCOUNTID] => [email protected] 
[PAYMENTREQUEST_1_PAYMENTREQUESTID] => 25934 
) 

和響應:

(
[TOKEN] => EC-4U931568VK402050F 
[SUCCESSPAGEREDIRECTREQUESTED] => false 
[TIMESTAMP] => 2013-09-26T10:08:27Z 
[CORRELATIONID] => 2381c85a926e3 
[ACK] => Failure 
[VERSION] => 97.0 
[BUILD] => 7882219 
[INSURANCEOPTIONSELECTED] => false 
[SHIPPINGOPTIONISDEFAULT] => false 
[PAYMENTINFO_0_PAYMENTSTATUS] => Failed 
[PAYMENTINFO_0_SELLERPAYPALACCOUNTID] => [email protected] 
[PAYMENTINFO_0_SECUREMERCHANTACCOUNTID] => DRM9QQUAG9UNC 
[PAYMENTINFO_0_PAYMENTREQUESTID] => 25935 
[PAYMENTINFO_0_ERRORCODE] => 10001 
[PAYMENTINFO_0_SHORTMESSAGE] => Internal Error 
[PAYMENTINFO_0_LONGMESSAGE] => Internal Error 
[PAYMENTINFO_0_SEVERITYCODE] => Error 
[PAYMENTINFO_0_ACK] => Failure 
[PAYMENTINFO_1_PAYMENTSTATUS] => Failed 
[PAYMENTINFO_1_SELLERPAYPALACCOUNTID] => [email protected] 
[PAYMENTINFO_1_SECUREMERCHANTACCOUNTID] => M7HT95CA3PUCE 
[PAYMENTINFO_1_PAYMENTREQUESTID] => 25934 
[PAYMENTINFO_1_ERRORCODE] => 10001 
[PAYMENTINFO_1_SHORTMESSAGE] => Internal Error 
[PAYMENTINFO_1_LONGMESSAGE] => Internal Error 
[PAYMENTINFO_1_SEVERITYCODE] => Error 
[PAYMENTINFO_1_ACK] => Failure 
) 

我也問過同樣的問題here

+0

基本上我只是想訂購,因此在SetExpressCheckout我使用了PAYMENTREQUEST_0_PAYMENTACTION => Order和PAYMENTREQUEST_1_PAYMENTACTION => Order。現在在DoExpressCheckoutPayment中,如果我使用PAYMENTREQUEST_0_PAYMENTACTION =>銷售和PAYMENTREQUEST_1_PAYMENTACTION =>銷售,它工作正常。但我需要放置「訂單」,因此需要在DoExpressCheckoutPayment中使用PAYMENTREQUEST_0_PAYMENTACTION => Order和PAYMENTREQUEST_1_PAYMENTACTION =>訂單,即給出「內部錯誤」。請幫忙。謝謝 – Guru

回答

0

發生內部錯誤是因爲在DoExpressCheckoutPayment請求中,錯誤類型的帳戶ID分配給了PAYMENTINFO_0_SELLERPAYPALACCOUNTID和PAYMENTINFO_1_SELLERPAYPALACCOUNTID。分配的帳戶是個人的,他們應該是貝寶企業帳戶。這是「內部錯誤」的原因。謝謝