Passing extra params to Cybersource gateway

37 views
Skip to first unread message

clem rock

unread,
Jan 19, 2016, 7:29:47 AM1/19/16
to Active Merchant
I'm having problems figuring out where to send extra params like businessRules_ignoreAVSResult to the purchase method and the void method.

both methods have the options hash parameters which seems to be the obvious place to send parameters:

def purchase(money, payment_method_or_reference, options = {})
def void(identification, options = {})

in each case, it seems like my extra options are being ignored.    My purchase options look like:

{:order_id=>"2dd2390adaf7b4666f3f00d7c2af8dad",

 :address=>{:address1=>"123 Fake St.", :address2=>"Apt 2.", :city=>"Fakesville", :state=>"NC", :zip=>"27519", :country=>"USA"},

 :email=>"donot...@test.com",

 :currency=>"USD",

 :businessRules_ignoreAVSResult=>true}



and my void options look like: 


{"voidService_run"=>true,

 "voidService_voidRequestID"=>"4531735325805001233455",

 "merchantReferenceCode"=>"a801823a8d6f2977746d123455",

 :order_id=>"a801823a8d6f2977746df15af9624c6e"}


In every case, the options seem to get completely ignored.

Any ideas?

Reply all
Reply to author
Forward
0 new messages