我使用rails製作paypal應用程序。 我已經在http://develpers.paypal.com中創建了所有必需的a/c,並且還在我的rails應用程序中插入了所有這些信息。 我的問題是,當我試圖授權我的賣家a/c,它給了我錯誤,如 「失敗:由於商家配置無效,此交易無法處理。」支付寶與軌道中的無效商家配置
我的代碼是:
# all inforation is of seller API id, password, signature
gateway = ActiveMerchant::Billing::PaypalGateway.new(
:login => "seller_1302505219_biz_api1.gmail.com",
:password => "...",
:signature => "..."
)
options = {
:ip => request.remote_ip,
:billing_address => {
:name => "Name",
:address1 => '1 Main St',
:address2 => '',
:city => 'San Jose',
:state => 'CA',
:country => 'US',
:zip => '95131',
# :phone => '408-983-5678'
:phone => '408-678-0945'
}
}
res = gateway.authorize(amount, credit_card, options)
是的。謝謝哥們。還有一個,你可以發送電子郵件到「[email protected]」 – 2011-04-16 15:15:19