Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
A
authorizenetwebform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
authorizenetwebform
Commits
b7d759b7
Commit
b7d759b7
authored
Apr 24, 2019
by
jenlampton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the delay to the submission to authnet, not for the webform. duh.
parent
a02966ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
js/authorizenetwebform.js
js/authorizenetwebform.js
+7
-7
No files found.
js/authorizenetwebform.js
View file @
b7d759b7
...
@@ -42,7 +42,11 @@
...
@@ -42,7 +42,11 @@
secureData
.
authData
=
authData
;
secureData
.
authData
=
authData
;
Accept
.
dispatchData
(
secureData
,
'
responseHandler
'
);
// @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.
// Prevent the webform from submitting now. @see last line.
e
.
preventDefault
();
e
.
preventDefault
();
...
@@ -126,12 +130,8 @@
...
@@ -126,12 +130,8 @@
}
}
}
}
// @todo remove this stupid delay when AuthNet gets their act together.
// Submit the webform when done.
// https://community.developer.authorize.net/t5/Integration-and-Testing/E00114-Invalid-OTS-Token/td-p/58879/page/2
$
(
context
).
find
(
"
[data-authnet-form]
"
).
submit
();
setTimeout
(
function
()
{
// Submit the webform when done.
$
(
context
).
find
(
"
[data-authnet-form]
"
).
submit
();
},
Drupal
.
settings
.
authorizeNetWebform
.
delay
);
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment