1

私は何が間違っているのですか?PayPalPaymentsProサンドボックステストアカウントを使用しています。

  1. 実行しますDoDirectPayment() where PaymentAction=PaymentActionCodeType.Authorization
  2. 「成功」を受け取り、TransactionID
  3. DoVoid() where AuthorizationID = TransactionID手順2から実行します
  4. 私は受け取ります"10609 Transaction id is invalid."

と同じDoAuthorization()です。

  1. 実行しますDoDirectPayment() where PaymentAction=PaymentActionCodeType.Order
  2. 「成功」を受け取り、TransactionID
  3. DoAuthorization() where TransactionID = TransactionID手順2から実行します
  4. 私は受け取ります "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>

4

1 に答える 1

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>
于 2012-12-06T16:43:05.643 に答える