Commit b7d759b7 authored by jenlampton's avatar jenlampton

Move the delay to the submission to authnet, not for the webform. duh.

parent a02966ce
......@@ -42,7 +42,11 @@
secureData.authData = authData;
// @todo remove this stupid delay when AuthNet gets their act together.
// https://community.developer.authorize.net/t5/Integration-and-Testing/E00114-Invalid-OTS-Token/td-p/58879/page/2
setTimeout(function() {
Accept.dispatchData(secureData, 'responseHandler');
}, Drupal.settings.authorizeNetWebform.delay);
// Prevent the webform from submitting now. @see last line.
e.preventDefault();
......@@ -126,12 +130,8 @@
}
}
// @todo remove this stupid delay when AuthNet gets their act together.
// https://community.developer.authorize.net/t5/Integration-and-Testing/E00114-Invalid-OTS-Token/td-p/58879/page/2
setTimeout(function() {
// Submit the webform when done.
$(context).find("[data-authnet-form]").submit();
}, Drupal.settings.authorizeNetWebform.delay);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment