eventsmanager

Pass language to stripe

Jul 27th, 2020
34
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. * Pass language to stripe
  3. * Supported language: https://support.stripe.com/questions/supported-languages-for-stripe-checkout
  4. */
  5. function my_em_stripe_locale($stripe_checkout,$EM_Booking){
  6. $stripe_checkout['locale'] = "fr";
  7. return $stripe_checkout;
  8. }
  9. add_filter('em_gateway_stripe_checkout_session_vars','my_em_stripe_locale', 100,2);
RAW Paste Data