Fail:(TESTMODE) Transactions of this market type cannot be processed on this system

你。 提交于 2019-12-10 23:49:43

问题


I have created a test account with Authorize.net and am using ActiveMerchant to process credit card payments for a website. What error I always get is Error#*87 - "Transactions of this market type cannot be processed on this system" mentioned in ActiveMerchant documentations. Any suggestions how to resolve this error ? Following is how i created my gateway. I also checked gateway.test? and it returns true.

 gateway = ActiveMerchant::Billing::Base.gateway(:authorized_net).new(
        :login =>'API Login ID',
        :password =>'Transaction Key',
        :test => true)

回答1:


Try

gateway = ActiveMerchant::Billing::AuthorizeNetGateway.new(
                                              :login => 'API Login ID', 
                                              :password => 'Transaction Key',
                                              :test => true)


来源:https://stackoverflow.com/questions/3132450/failtestmode-transactions-of-this-market-type-cannot-be-processed-on-this-sys

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!