Getting error in calling purchase method for QuickbooksGateway.

50 views
Skip to first unread message

Jai shanker

unread,
Sep 11, 2015, 2:11:25 PM9/11/15
to Active Merchant
Please find link fro more clarification: https://github.com/activemerchant/active_merchant/blob/master/lib/active_merchant/billing/gateways/quickbooks.rb

Hi, I am integrating QuickbooksGateway using ActiveMerchant gem, Used below code: config.after_initialize do ActiveMerchant::Billing::Base.mode = :test ::GATEWAY = ActiveMerchant::Billing::QuickbooksGateway.new( :consumer_key => 'xxxxxxxxxxxxxxx', :consumer_secret => 'xxxxxxxxxxx', :access_token => 'xxxxxxxxx', :token_secret => 'xxxxxxxxx', :realm => "xxxxxxxxx" ) end But when doing payment getting error: Call: response = GATEWAY.purchase(self.amount, credit_card, purchase_options) Error: #<ActiveMerchant::Billing::Response:0x007f96e49dfbc0 @params={"errors"=>[{"message"=>"The merchant account could not be validated.", "detail"=>"", "infoLink"=>"https://developer.intuit.com/v2/docs?redirectID=PayErrors", "code"=>"PMT-3000", "type"=>"account_error"}]}, @message="The merchant account could not be validated.", @success=false, @test=true, @authorization=nil, @fraud_review=false, @error_code="processing_error", @emv_authorization=nil, @avs_result={"code"=>nil, "message"=>nil, "street_match"=>nil, "postal_match"=>nil}, @cvv_result={"code"=>nil, "message"=>nil}> Can anyone help me out.

Luke Hutscal

unread,
Sep 11, 2015, 2:13:36 PM9/11/15
to activem...@googlegroups.com
It sounds like the credentials you're trying to use might be wrong - double check those, and if they're correct maybe try asking Quickbooks support.

Luke

--
You received this message because you are subscribed to the Google Groups "Active Merchant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to activemerchan...@googlegroups.com.
To post to this group, send email to activem...@googlegroups.com.
Visit this group at http://groups.google.com/group/activemerchant.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages