Paypal中使用rails的商家配置无效

我正在使用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) 

您需要在网站付款专业版中设置卖家帐户。

  1. 使用“ 预配置”选项创建销售测试帐户。
  2. 帐户类型下 ,选择网站付款专业版

祝好运!

得到了解决方案。 我有谷歌它但获得了有关“结算协议”的信息。 但该function在Website Payment Pro中提供。 所以我刚刚使用WPP创建了一个测试帐户,并使用该WPP帐户凭据进行交易。 它工作正常。

干杯!!!

此外,即使在Sandbox中注册之后,您的帐户可能也可能未启用Pro(DoDirectPayment)。 在x.com论坛上有一个post,你可以请求其中一个支持人员为你启用它。