Skip to content
Snippets Groups Projects
Commit 26b943dc authored by mattwire's avatar mattwire Committed by mattwire
Browse files

Fix #126 setting user locale for stripe elements

parent a66ca0fb
No related branches found
No related tags found
1 merge request!1526.6 to master
...@@ -396,6 +396,7 @@ ...@@ -396,6 +396,7 @@
debugging('New Stripe ID: ' + CRM.vars.stripe.id + ' pubKey: ' + CRM.vars.stripe.publishableKey); debugging('New Stripe ID: ' + CRM.vars.stripe.id + ' pubKey: ' + CRM.vars.stripe.publishableKey);
stripe = Stripe(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}); var stripeElements = stripe.elements({locale: CRM.vars.stripe.locale});
// By default we load paymentRequest button if we can, fallback to card element // By default we load paymentRequest button if we can, fallback to card element
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment