• Resolved ignasp

    (@ignasp)


    Hello! I am currently using the Event Tickets plugin on my WordPress website and have integrated Stripe as the payment gateway. My goal is to change the language of the Stripe payment form to Lithuanian.

    I know that I am supposed to pass ‘locale: lt’ in the code in some part, but at the moment, I don’t know where exactly.

    I’ve tried adding it to the create() function in the file: plugins/event-tickets/src/Tickets/Commerce/Gateways/Stripe/Payment_Intent.php

    But that only broke my checkout form so I was supposed to revert the change.

    Could anyone tell me if someone had this issue before and knows how to change the language? I am feeling a bit lost at this moment, as I managed to everything except for this part.

    I’ve reached out to Stripe and they just confirmed that I need to pass ‘locale: lt’, but until this point, I’ve no clue where exactly I am supposed to add it

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ignasp

    (@ignasp)

    Oh, I think I found it

    I had to update both /plugins/event-tickets/src/resources/js/commerce/gateway/stripe/checkout.js and checkout.min.js

    So it would contain the code would have locale in there like so:

        obj.stripeElements = obj.stripeLib.elements( {
            clientSecret: obj.checkout.paymentIntentData.key,
            appearance: obj.checkout.elementsAppearance,
            locale: 'lt',
        } );

    Now – it works, though pretty sure that as soon as I update my plugin – this change will be gone, so this is another challenge to be solved

    Plugin Support tristan083

    (@tristan083)

    Hi @ignasp ,

    Thank you for reaching out and for the information. I’m glad to hear you were able to find the way to change the language of the Stripe checkout form.

    Unfortunately, you are right, updates to the plugin might loose you the changes you’ve made. At this time, we do not have support for this functionality, but I’ll be sure to share your feedback to our product management team for consideration in our future roadmap.

    Your patience while we continue to improve our product offerings is much appreciated.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It appears that we haven’t heard back from you in a while, so I’ll assume that the matter has been resolved. If you need any more help, feel free to start a new thread and we’ll be happy to assist you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.