贝宝沙盒。 10609交易ID无效

时间:2012-12-05 16:18:59

标签: paypal paypal-sandbox

我做错了什么? 我使用PayPal Payments Pro沙盒测试帐户。

  1. 我执行DoDirectPayment() where PaymentAction=PaymentActionCodeType.Authorization
  2. 我收到“成功”和TransactionID
  3. 我从第2步执行DoVoid() where AuthorizationID = TransactionID
  4. 我收到"10609 Transaction id is invalid."
  5. DoAuthorization()相同。

    1. 我执行DoDirectPayment() where PaymentAction=PaymentActionCodeType.Order
    2. 我收到“成功”和TransactionID
    3. 我从第2步执行DoAuthorization() where TransactionID = TransactionID
    4. 我收到“10609 Transaction id is invalid."
    5. 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>

1 个答案:

答案 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>