簡體   English   中英

Paypal中帶有Rails的無效商家配置

[英]An invalid merchant configuration in Paypal with rails

我正在使用rails進行paypal應用程序。 我已經在http://develpers.paypal.com中創建了所有必需的帳戶,並且還在我的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)

您需要使用Website Payments Pro設置賣家帳戶。

  1. 使用“ 預配置”選項創建您的銷售測試帳戶。
  2. 在“ 帳戶類型”下 ,選擇“ 網站付款專業版”

祝好運!

得到了解決方案。 我已經在google上找到了,但是得到了有關“結算協議”的信息。 但是該功能是在Website Payment Pro中提供的。 因此,我剛剛使用WPP創建了一個測試帳戶,並使用該WPP帳戶憑據進行交易。 工作正常。

干杯!!!

此外,即使在Sandbox中注冊了您的帳戶,也可能未啟用Pro(DoDirectPayment)。 x.com論壇上有一個主題,您可以要求一個支持人員為您啟用它。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM