From 26b943dcd9c22e270d9992f7f15c83036455074e Mon Sep 17 00:00:00 2001 From: Matthew Wire <mjw@mjwconsult.co.uk> Date: Tue, 5 Jan 2021 18:53:07 +0000 Subject: [PATCH] Fix #126 setting user locale for stripe elements --- js/civicrm_stripe.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/civicrm_stripe.js b/js/civicrm_stripe.js index b3ca06ad..4db6dde0 100644 --- a/js/civicrm_stripe.js +++ b/js/civicrm_stripe.js @@ -396,6 +396,7 @@ debugging('New Stripe ID: ' + CRM.vars.stripe.id + ' pubKey: ' + CRM.vars.stripe.publishableKey); stripe = Stripe(CRM.vars.stripe.publishableKey); + debugging('locale: ' + CRM.vars.stripe.locale); var stripeElements = stripe.elements({locale: CRM.vars.stripe.locale}); // By default we load paymentRequest button if we can, fallback to card element -- GitLab