• Resolved cosio55

    (@cosio55)


    Hi, I already looked at the translation files but the information to change the placeholder text isn’t there, also I changed te language of my Stripe account to spanish which is the language I’m using but still no luck so I wanted to know how’s the correct way to change the language of the placeholders.

    This are the texts I would like to change:
    – Card Number
    – MM/YY

    The URL:
    https://lacorbateria.com

Viewing 1 replies (of 1 total)
  • Thread Starter cosio55

    (@cosio55)

    Is anyone is having the same issue here’s how to fix it, just add this to your themes functions.php at the end of the file:

    add_filter("wc_stripe_elements_options", "customize_stripe_options");
    function customize_stripe_options($options) {
      $options["locale"] = "es";
      return $options;
    }

    You can check other languages here: https://stripe.com/docs/stripe-js/reference#stripe-elements

Viewing 1 replies (of 1 total)
  • The topic ‘How to change the language of the credit card placeholder’ is closed to new replies.