PayPal沙盒.10609 交易 ID 无效



我做错了什么?我使用的是 PayPal 付款专业版沙盒测试帐户。

  1. 我执行DoDirectPayment() where PaymentAction=PaymentActionCodeType.Authorization
  2. 我收到"成功"并TransactionID
  3. 我执行步骤 2 中的DoVoid() where AuthorizationID = TransactionID
  4. 我收到"10609 Transaction id is invalid."

DoAuthorization()也是如此.

  1. 我执行DoDirectPayment() where PaymentAction=PaymentActionCodeType.Order
  2. 我收到"成功"和TransactionID
  3. 我执行步骤 2 中的DoAuthorization() where TransactionID = TransactionID
  4. 我收到" 10609 Transaction id is invalid."

上级:
<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>

您的 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>

相关内容

  • 没有找到相关文章

最新更新