Skip to content
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

Open
wants to merge 39 commits into
base: add-gift-support
Choose a base branch
from

Conversation

apetrovici
Copy link
Contributor

No description provided.

checkVersion,
initiateAuthentication,
ChallengeWindowSize,
} = GlobalPayments.ThreeDSecure;
Copy link
Owner

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).

assets/frontend/js/globalpayments-secure-payment-fields.js Outdated Show resolved Hide resolved
// Remove notices from all sources
$( '.woocommerce-error, .woocommerce-message' ).remove();

$form.prepend( '<div class="woocommerce-NoticeGroup woocommerce-NoticeGroup-updateOrderReview woocommerce-error">' + message + '</div>' );
Copy link
Owner

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?

src/Gateways/GpApiGateway.php Outdated Show resolved Hide resolved
@slogsdon slogsdon mentioned this pull request Mar 31, 2021
@slogsdon slogsdon closed this Mar 31, 2021
@slogsdon slogsdon deleted the branch slogsdon:add-gift-support March 31, 2021 19:04
@slogsdon slogsdon reopened this Mar 31, 2021
if (response.version === "ONE") {
return [4 /*yield*/, handle3ds1VersionCheck(response, data.challengeWindow)];
}
return [4 /*yield*/, handle3dsVersionCheck(response, data.methodWindow)];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +1767 to +1769
function handle3ds1VersionCheck(data, options) {
return __awaiter(this, void 0, void 0, function () {
var response;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants