我做错了什么? 我使用PayPal Payments Pro沙盒测试帐户。
DoDirectPayment() where PaymentAction=PaymentActionCodeType.Authorization
TransactionID
DoVoid() where AuthorizationID = TransactionID
"10609 Transaction id is invalid."
与DoAuthorization()
相同。
DoDirectPayment() where PaymentAction=PaymentActionCodeType.Order
TransactionID
DoAuthorization() where TransactionID = TransactionID
10609 Transaction id is invalid."
UPD:
<DoDirectPaymentRequest><Version xmlns="urn:ebay:apis:eBLBaseComponents">95.0</Version><DoDirectPaymentRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents"><PaymentAction>Sale</PaymentAction><PaymentDetails><OrderTotal currencyID="USD">951</OrderTotal></PaymentDetails><CreditCard><CreditCardNumber>4998275181667886</CreditCardNumber><ExpMonth>12</ExpMonth><ExpYear>2017</ExpYear><CardOwner><PayerName><FirstName>Nazar</FirstName><LastName>Nazar</LastName></PayerName><Address><Street1>dfgdfgdfg</Street1><CityName>Manhattan</CityName><StateOrProvince>NY</StateOrProvince><Country>US</Country><PostalCode>10005</PostalCode></Address></CardOwner><CVV2>030</CVV2></CreditCard></DoDirectPaymentRequestDetails></DoDirectPaymentRequest></DoDirectPaymentReq>
<DoDirectPaymentResponse xmlns="urn:ebay:api:PayPalAPI"><Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2012-12-06T15:23:13Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Success</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">32db76f5d7828</CorrelationID><Version xmlns="urn:ebay:apis:eBLBaseComponents">95.0</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">4137385</Build><Amount xsi:type="cc:BasicAmountType" currencyID="USD">951.00</Amount><AVSCode xsi:type="xs:string">X</AVSCode><CVV2Code xsi:type="xs:string">M</CVV2Code><TransactionID>1R649887J67078538</TransactionID></DoDirectPaymentResponse>
抱歉,并非全部复制
的 UPD2:
<DoVoidReq xmlns="urn:ebay:api:PayPalAPI"><DoVoidRequest><Version xmlns="urn:ebay:apis:eBLBaseComponents">95.0</Version><AuthorizationID>1R649887J67078538</AuthorizationID></DoVoidRequest></DoVoidReq>
<DoVoidResponse xmlns="urn:ebay:api:PayPalAPI"><Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2012-12-06T15:23:15Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Failure</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">f8795daa4b104</CorrelationID><Errors xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:ErrorType"><ShortMessage xsi:type="xs:string">Invalid transactionID.</ShortMessage><LongMessage xsi:type="xs:string">Transaction id is invalid.</LongMessage><ErrorCode xsi:type="xs:token">10609</ErrorCode><SeverityCode xmlns="urn:ebay:apis:eBLBaseComponents">Error</SeverityCode></Errors><Version xmlns="urn:ebay:apis:eBLBaseComponents">95.0</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">4181146</Build><AuthorizationID xsi:type="xs:string"></AuthorizationID></DoVoidResponse>
答案 0 :(得分:0)
您的DoVoid请求看起来不太合适。你有......
<DoVoidRequest>
<Version xmlns="urn:ebay:apis:eBLBaseComponents">95.0</Version>
<AuthorizationID>1R649887J67078538</AuthorizationID>
</DoVoidRequest>
</DoVoidReq>
应该是......
<DoVoidReq>
<DoVoidRequest>
<Version xmlns="urn:ebay:apis:eBLBaseComponents">95.0</Version>
<AuthorizationID>1R649887J67078538</AuthorizationID>
</DoVoidRequest>
</DoVoidReq>