-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TR-92: add 3DS #6
base: add-gift-support
Are you sure you want to change the base?
TR-92: add 3DS #6
Conversation
checkVersion, | ||
initiateAuthentication, | ||
ChallengeWindowSize, | ||
} = GlobalPayments.ThreeDSecure; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't use const/let, async/await, or arrow functions due to older browser incompatibilities (e.g. IE 11).
// Remove notices from all sources | ||
$( '.woocommerce-error, .woocommerce-message' ).remove(); | ||
|
||
$form.prepend( '<div class="woocommerce-NoticeGroup woocommerce-NoticeGroup-updateOrderReview woocommerce-error">' + message + '</div>' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any exposed WooCommerce JS methods for displaying error messages so we don't have to keep this in sync with WC?
if (response.version === "ONE") { | ||
return [4 /*yield*/, handle3ds1VersionCheck(response, data.challengeWindow)]; | ||
} | ||
return [4 /*yield*/, handle3dsVersionCheck(response, data.methodWindow)]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function handle3ds1VersionCheck(data, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var response; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.