简体   繁体   English

Paypal中带有Rails的无效商家配置

[英]An invalid merchant configuration in Paypal with rails

I am making the paypal application with rails. 我正在使用rails进行paypal应用程序。 I have create all the necessary a/c in http://develpers.paypal.com and also have insert all that information in my rails app. 我已经在http://develpers.paypal.com中创建了所有必需的帐户,并且还在我的rails应用程序中插入了所有这些信息。 My problem is when i am trying to authorize my seller a/c, it gives me error like "Failure: This transaction cannot be processed due to an invalid merchant configuration." 我的问题是,当我尝试授权卖方a / c时,它给我类似“失败:由于无效的商人配置而无法处理此交易”的错误。

My code is: 我的代码是:

# 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)

You need to have a seller account set up with Website Payments Pro. 您需要使用Website Payments Pro设置卖家帐户。

  1. Create your selling test account using the Preconfigured option. 使用“ 预配置”选项创建您的销售测试帐户。
  2. Under Account Type , select Website Payments Pro . 在“ 帐户类型”下 ,选择“ 网站付款专业版”

Good luck! 祝好运!

Got the solution. 得到了解决方案。 I have google it but got the information about the "Billing agreement". 我已经在google上找到了,但是得到了有关“结算协议”的信息。 But that functionality is provided in Website Payment Pro. 但是该功能是在Website Payment Pro中提供的。 so I have just create an test account using WPP and use that WPP account credential for transaction. 因此,我刚刚使用WPP创建了一个测试帐户,并使用该WPP帐户凭据进行交易。 It works fine. 工作正常。

Cheers!!! 干杯!!!

In addition, your account may or may not be enabled for Pro (DoDirectPayment) even after signing up for it in Sandbox. 此外,即使在Sandbox中注册了您的帐户,也可能未启用Pro(DoDirectPayment)。 There's a thread on the x.com forums where you can ask one of the support guys to enable it for you. x.com论坛上有一个主题,您可以要求一个支持人员为您启用它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Paypal-使用Rails的定期结算(适用于非美国商家) - Paypal - Recurring billing with Rails (for non US merchant) PayPal Express Checkout 与 Rails 中活跃商家的多个项目 - PayPal Express Checkout with multiple items with active merchant in rails 商家的帐户无法使用活动商家+ Ruby on Rails + Paypal处理交易 - The merchant's account is not able to process transactions with activemerchant + Ruby on rails + Paypal Rails将对象传递给模块目录paypal-sdk-merchant中的类 - Rails passing object to class in modules directory paypal-sdk-merchant 使用Rails和'paypal-sdk-merchant'gem将多个接收器添加到Paypal Mass Pay - Add multiplie receivers to Paypal Mass Pay using Rails and 'paypal-sdk-merchant' gem Rails:贝宝配置文件和Figaro环境变量 - Rails: Paypal configuration file and figaro environment variables 如何使用活跃的商家使用PayPal从Rails应用程序汇款? - How to use active merchant to send money from a Rails app using PayPal? 在Rails中实施我们的计费系统:Paypal,纯商家帐户/网关或类似Chargify的东西? - Implementing our billing system in rails: Paypal, pure Merchant Account / Gateway, or something like Chargify? 如何在rails /活跃商家上使用paypal / ruby​​创建安全的信用卡网关 - How to create a secure credit card gateway using paypal / ruby on rails / active merchant Active Merchant Paypal定期付款 - Active Merchant paypal recurring payments
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM