尝试使用Activemerchant从PayPal捕获授权时出现10001内部错误

时间:2009-08-12 03:37:41

标签: ruby-on-rails ruby soap paypal activemerchant

我已经成功授权了一张卡片,它显示在我的沙盒事务日志中。当我尝试使用该授权进行捕获时(使用SOAP的activemerchant),这是它发送给服务器的XML:

<?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>

Paypal返回了如此描述性的10001“内部错误”。有人能发现什么不对吗?

只是为了好玩,以下是ActiveMerchant解析为paypal的响应:

=> #<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}>

如果有人可以提供帮助,我会爱上它!

2 个答案:

答案 0 :(得分:5)

使用非标准信用卡号。

我使用的是标准信用卡号码'4111111111111111'并收到10001错误。

使用“4024007148673576”,它对我有用。

答案 1 :(得分:1)

我所拥有的只是远射的可能性。

在您获得授权后,界面可能会因未经宣布的原因而失败。类似的事情发生在3号,返回10001s。

可能与https://ppmts.custhelp.com/cgi-bin/ppdts.cfg/php/enduser/std_adp.php?p_faqid=169

有关

我还尝试使用少量重新授权,但如果出现问题则应该给出不同的错误。

虽然如果auth成功,它不应该有所作为,但你没有向我们展示授权交易。