There was an error processing your credit card: A duplicate transaction has been submitted.. If the error persists, please try another card.

When I submit the same form using the same webform used with authorizenetwebform module then this error comes.:
"There was an error processing your credit card: A duplicate transaction has been submitted.. If the error persists, please try another card."

This form fill by the users many times so when user use this form in edit mode to save it again it gives error.Please provide any solution

Thanks in advance

CommentFileSizeAuthor
Error_Screenshot.png110.27 KBmanishway
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

obsidiandesign’s picture

There's two things I can think of so far:
1) make sure that you have the correct code in each o the additional validation and additional processing text boxes; these are not he SAME code, there are very subtle differences. Pne hint that this is the problem would be that this message would appea the FIRST time a user submits the form.

2) in the past, when testing, I've run into this problem when submitting the form rapidly in succession. It seems authorize.net has a built-in control to prevent repeat/multiple duplicate transactions. Wait an hour or so after submitting the first time and see if you can submit again. If so, the error is by design because authorize.net made the setting.

Let me know if either of those help.

Bryan O'Shea
Obsidian Design

manishway’s picture

Thanks for your prompt reply.

First: The code is correct in additional validation and additional processing text boxes.There is small difference in function name only which is valildate and submit in their respective functions name.

Second: I am still not able to submit that form again after a long time(i.e. after 1 or 2 days).It submit but gives an error on next page.
"There was an error processing your credit card: The transaction cannot be found.. If the error persists, please try another card."
and "Submission updated."

or some times give error on the same page without submitting the webform
"There was an error processing your credit card: A duplicate transaction has been submitted.. If the error persists, please try another card."

Please help me out.
Thanks

obsidiandesign’s picture

Assigned: manishway » obsidiandesign
Category: bug » support
Priority: Major » Normal

Now I see what you're trying to do. You cannot resubmit a transaction once it's been processed, at least not with keeping the transaction information in tact. You'd need to remove the transaction ID field or Authorize.net will think the transaction has already been processed, hence the 'duplicate transaction has been submitted' error. Could the users resubmit the form as a new submission, rather than editing an existing submission?

Since this is 'by design' behavior, I'm changing this to a support request. I see you've added a feature request for recurring submissions. Is that why you need the users to be able to resubmit? If they just enter a new webform entry for their new transaction, it will be processed.

Hope this helps,

Bryan O'Shea
Obsidian Design

manishway’s picture

Yes ,I am trying to resubmit the webform because user want to have feature of reset its budget(amount or recurring amount ) of previously transactions for particular product/service. Can I create/submit new webform with the old webform submission with auto-fill fields ?

Can I resubmit webform successfully without having transaction id. ?

thanks

obsidiandesign’s picture

You can set default values for the webform fields from within the 'Form Components' page of the webform. That is outside the scope of this module.

You could remove the transaction ID from the submission & then resubmit it. I'm not sure what Authorize.net would do, but without a transaction ID, it should reprocess the transaction. This is NOT the intended use of the module and you will lose ALL RECORD of the first transaction, since saving the webform will overwrite the old transaction ID.

obsidiandesign’s picture

Status: Active » Closed (won't fix)