Hi Group,
I've been trying to figure out if ActiveMerchant has the ability to change the Authorize.net default 2 minute window for allowing a duplicate transaction to 5 hours or something.
I found this article, but other than this article I haven't found any documentation on how to implement the :duplicate_window setting.
Does anyone have information in this regard. I've done both, without errors, but in test mode I'm not sure if it's working.
gateway = ActiveMerchant::Billing::AuthorizeNetGateway.new(
:login => login,
:password => password,
:duplicate_window => 1800, #timeout in 5 hours
:test => true)
I also tried adding it to the actual transaction - I'm using Authorize.net's CIM service.
@gateway.create_customer_profile_transaction({:transaction => {:type => :auth_capture,
:amount => amount,
:customer_profile_id => customer_cim_id,
:duplicate_window => 18000,
:customer_payment_profile_id => payment_cim_id}})
I'm not getting errors with either, but it would be nice to know what the proper implementation is. I'm not confident either of these will work. I want to create a 5 hour window where a duplicate cannot be entered.
Thanks!
Chris