인증 된 카드를 만들었으며 내 샌드 박스 트랜잭션 로그에 표시됩니다. 나는 (SOAP를 사용 activemerchant와) 권한 부여를 사용하여 캡처 할 때, 이것은 서버로 전송하는 XML이다. "내부 오류"10001 Activemerchant로 PayPal에서 승인을 캡처하려고 할 때 내부 오류가 발생했습니다.
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<RequesterCredentials xmlns:n1="urn:ebay:apis:eBLBaseComponents" xmlns="urn:ebay:api:PayPalAPI" env:mustUnderstand="0">
<n1:Credentials>
<Username>seller_1249669053_per_api1.synergyeoc.com</Username>
<Password>snip</Password>
<Subject/>
</n1:Credentials>
</RequesterCredentials>
</env:Header>
<env:Body>
<DoCaptureReq xmlns="urn:ebay:api:PayPalAPI">
<DoCaptureRequest xmlns:n2="urn:ebay:apis:eBLBaseComponents">
<n2:Version>52.0</n2:Version>
<AuthorizationID>0RF01309N5838270B</AuthorizationID>
<Amount currencyID="USD">2600.00</Amount>
<CompleteType>Complete</CompleteType>
<Note/>
</DoCaptureRequest>
</DoCaptureReq>
</env:Body>
</env:Envelope>
페이팔은 아무리 설명 10001을 반환 아무도 여기에없는 것을 발견 할 수 있습니까?
그냥 재미를 위해, 여기 ActiveMerchant 페이팔의 응답으로 구문 분석하는 것입니다 : 누군가가 도움을 줄 수있는 경우
=> #<ActiveMerchant::Billing::Response:0x3e00698 @params={"payment_status"=>"None", "correlation_id"=>"a188cc8c5f94c", "timestamp"=>"2009-08-11T06:21:22Z", "pending_reason"=>"none", "build"=>"997644", "transaction_type"=>"none", "error_codes"=>"10001", "version"=>"52.0", "ack"=>"Failure", "message"=>"Internal Error", "reason_code"=>"none", "payment_type"=>"none"}, @test=true, @authorization=nil, @cvv_result={"code"=>nil, "message"=>nil}, @message="Internal Error", @success=false, @fraud_review=false, @avs_result={"code"=>nil, "postal_match"=>nil, "street_match"=>nil, "message"=>nil}>
내가 싶어요!
오래 전 일이지만 XML 요청을 어떻게 얻었는지 알고 있습니다. 디버깅 목적으로 요청 데이터를 얻으려고하고 있지만 어떻게 기록 할 수 있는지 알지 못합니다 ... – tmaximini
정말 기억이 안나지만 ActiveMerchant로 설정할 수있는 플래그가 있다고 생각합니다. 그래도 작동하지 않으면 tcpdump 또는 Wireshark를 사용하십시오. 출력물을 출력하기 위해 SOAP gem을 얻는 것은 운이 좋을 수도 있습니다. 행운을 빕니다. –
hehe, 나는 그것을 짧게 발견했다. 예를 들어 wiredump_device를 설정할 수 있습니다. 로그 파일에 저장 한 다음 요청을 복사합니다. – tmaximini