digital-pros / commerce-authorize

Authorize.net - Craft Commerce 2 Plugin
Other
3 stars 9 forks source link

"A duplicate transaction has been submitted." error after trying 2nd time payment where first time, cvv was wrong. #35

Closed amici-infotech closed 1 year ago

amici-infotech commented 1 year ago

Hello, We have installed a plugin into a site where client has tried to pay for a product and got "This transaction has been declined." error. Its obvious as CVV was wrong.

After that, client has tried to pay again with correct CVV this time, but payment got Declined with error "A duplicate transaction has been submitted.".

In authorize.net support article, they've mentioned that in such cases duplicate transaction window is 2 minutes. however, client in our case tried payment within 50 seconds. Attaching screenshots of both transactions:

Time difference between 2 transactions are 50 seconds. image

Transaction 1: image

Transaction 2: image

On their support page, they mentioned that we can pass x_duplicate_window variable with transaction where we can change duplicate window time from 2 minutes to whatever we want. I would personally want that to change to 30 seconds. Is that possible with some sort of config settings right now inside the plugin? if not, can you add one? if it will take time, can you point us on right direction where we can make changes to achieve this on our end?

benlobach commented 1 year ago

@amici-infotech, thanks for submitting this ticket! One quick question as we investigate our options here, are you using Accept.js?

amici-infotech commented 1 year ago

This is my settings. I think YES!

image

benlobach commented 1 year ago

@amici-infotech, thanks for confirming! 4.0.6 has just been released with support for Duplicate Window Timing. Let us know if you have questions!