Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 2
Registered: ‎07-04-2013
Accepted Solution

Preventing duplicate transactions but allowing upsells

[ Edited ]

I have a checkout that processes an order using the CIM api. This creates a customer payment profile, then gives the user the option to purchase a '1 click upsell', by adding a tranaction to this profile.

 

My problem is with duplicate orders as some users are refreshing the page and triggering multiple orders. I have seen that there is a 'x_duplicate_window' parameter which I can set to ignore orders in a certain timeframe, but I think this will also ignore the upsell. 

 

Is there a way around this? to perhaps identify a product by name and prevent duplicate orders being submitted for that, but at the same time, allowing an upsell product to be purchased, straight after?

 

Thanks


Accepted Solutions
Solution
Accepted by topic author chrisallen1
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Preventing duplicate transactions but allowing upsells

Here is the list of duplicate transaction fields

http://community.developer.authorize.net/t5/Integration-and-Testing/Duplicate-Transactions-AIM/m-p/2...

 

If the amount is different, it wouldn't trigger the duplicate transaction error.

 

View solution in original post


All Replies
Solution
Accepted by topic author chrisallen1
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Preventing duplicate transactions but allowing upsells

Here is the list of duplicate transaction fields

http://community.developer.authorize.net/t5/Integration-and-Testing/Duplicate-Transactions-AIM/m-p/2...

 

If the amount is different, it wouldn't trigger the duplicate transaction error.