Skip to content

Commit

Permalink
fix reCaptcha is not work in cart page
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-zhang-awx committed Oct 18, 2024
1 parent e71d462 commit 2e67615
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion view/frontend/web/js/view/payment/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ define([
},

isRecaptchaShared() {
if (this.isCartPage()) return false;
if (!window.checkoutConfig) return false;
return window.checkoutConfig.payment.airwallex_payments.is_recaptcha_shared;
},
Expand Down Expand Up @@ -634,7 +635,7 @@ define([
if (self.isSaveCardSelected() && self.getCustomerId()) {
let requestUrl = urlBuilder.build('rest/V1/airwallex/generate_client_secret');
let res = await storage.get(requestUrl, undefined, 'application/json', {});

await Airwallex.createPaymentConsent({
intent_id: intentResponse.intent_id,
customer_id: self.getCustomerId(),
Expand Down

0 comments on commit 2e67615

Please sign in to comment.