我已经使用Authorize.net创建了一个测试帐户,并使用ActiveMerchant进行处理 网站的信用卡付款。我总是得到的错误是错误#* 87 - 在ActiveMerchant文档中提到“无法在此系统上处理此市场类型的交易”。有任何建议如何解决此错误? 以下是我如何创建我的网关。我还检查了gateway.test?它返回true。
gateway = ActiveMerchant::Billing::Base.gateway(:authorized_net).new(
:login =>'API Login ID',
:password =>'Transaction Key',
:test => true)
答案 0 :(得分:0)
尝试
gateway = ActiveMerchant::Billing::AuthorizeNetGateway.new(
:login => 'API Login ID',
:password => 'Transaction Key',
:test => true)