我希望有經驗的人可以在這裏幫忙。我們使用SetExpressCheckout將人員發送到PayPal,然後在他們回到我們的網站時向他們收費。不幸的是,當我們試圖向這些用戶收費時,我們看到了40%的失敗率。我在下面列出了我們的要求和迴應,希望有人能夠發現可能給我們帶來麻煩的變量。使用PayPal SetExpressCheckout API時的40%故障率
謝謝!
REQUEST TO PAYPAL TO SET EXPRESS CHECKOUT:
SetExpressCheckoutReq:
SetExpressCheckoutRequest:
Version: 116.0
SetExpressCheckoutRequestDetails:
MaxAmount currencyID="USD」: 100
ReqConfirmShipping: 0
NoShipping: 1
AddressOverride: 0
SolutionType: Sole
BuyerEmail: xxx
BillingAgreementDetails:
BillingType: MerchantInitiatedBillingSingleAgreement
BillingAgreementDescription: Billing Agreement
PaymentDetails:
OrderTotal currencyID="USD」:0
ItemTotal currencyID="USD」: 0
ButtonSource: PayPal_SDK
PaymentDetailsItem:
Name: Subscription
Quantity: 1
Amount currencyID="USD」:0
PaymentDetailsItem:
PaymentAction: Authorization
RESPONSE:
Timestamp: 2015-06-30T02:35:29Z
Ack: Success
CorrelationID: xxx
Version: 116.0
Build: 16684246
Token: XXX
BILLING ATTEMPT:
DoReferenceTransactionRequest:
Version: 53.0
DoReferenceTransactionRequestDetails:
ReferenceID: EC-1WA3806198386283U
PaymentAction: Sale
PaymentType: Any
PaymentDetails:
OrderTotal currencyID='USD’: 14.95
OrderDescription: Subscription
NotifyURL: xxx
ReqConfirmShipping: 0
ERROR RESPONSE:
Short Message : Transaction cannot complete.
Long Message:Instruct the customer to retry the transaction using an alternative payment method from the customers PayPal wallet. The transaction did not complete with the customers selected payment method.
ErrorCode:10417
SeverityCode: Error
CorrelationId:907fc42ce9669
Build:17098556
Ip:
這是一個奇怪的方式來做到這一點。通常情況下,您會運行SEC - >反彈W /令牌 - >從PayPal返回 - >運行'DoExpressCheckoutPayment'。我對使用Express Checkout進行參考交易的理解是,您首先需要「結算協議」。 – Machavity