[英]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设置卖家帐户。
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.