Authorize.net "duplicate window" setting for extending "duplicate transaction" check.

713 views
Skip to first unread message

internetchris

unread,
Oct 6, 2012, 1:15:13 AM10/6/12
to activem...@googlegroups.com
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

internetchris

unread,
Oct 9, 2012, 12:55:35 PM10/9/12
to activem...@googlegroups.com
Hi Group,

I thought I would bump this. I found if I turned off "test mode" I would get a realistic response from Authorize.net. This setting doesn't change anything. Does anyone know how to increase the 2 minute duplicate window for CIM transactions?  If it's not built in already, I don't know I have the time to write a patch. Not to mention, that previous link I provided looks like a patch was written, but I can't figure out if it's an undocumented feature?  I've looked through the gem files and don't see reference to it for CIM transactions :-(

If anyone has experience messing with the 2 minute window "x_duplicate_window" and CIM regarding ActiveMerchant, I'm all ears. 

Thanks,

Chris
Reply all
Reply to author
Forward
0 new messages