#jogui_best-practices

1 messages ยท Page 1 of 1 (latest)

faint wraithBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1227951613390618674

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

dense plankBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

arctic glen
#

Hi, let me help you with this.

#

What text are you talking about specifically?

languid helm
#

Credit Card number, Expiration Date, CVC

#

nevermind about the screenshots, now the dev environment is failing,

#

I need to translate these three labels

arctic glen
#

I am sure Payment Element supports translation, let me check...

languid helm
#

I see also it puts a Disclaimer on the bottom, for example "Al facilitarnos los datos de la tarjeta, permites que XXXX cargue en tu tarjeta futuros pagos conforme a las condiciones estipuladas."

#

these are the 4 labels that weren't appearing with card element, but now doing the migration to payment element appears.

arctic glen
#

I am not sure if Catalan is an option though.

languid helm
#

It is not, that's the problem :/

arctic glen
#

I see, I don't think it's possible then.

languid helm
#

And cannot i find a way to use the card element with createConfirmationToken()?

#

can you revalidate that only with the payment element will the createConfirmationToken work?

arctic glen
#

Let me check...

#

It seems that you're correct and confirmation tokens are only supported with Payment Element, unfortunately. I understand it's a confusing situation. Maybe we could find a workaround?
Surely, I suggest reaching out to Stripe Support and placing a request to add Catalan to supported languages: https://support.stripe.com/?contact=true
In the meantime, what are you trying to solve with confirmation tokens exactly?

languid helm
#

@native quest answered with:

Hi @languid helm apologies for the delay, the server is quite busy at the moment. If you want to get a Payment Method that you can inspect before processing an intent, you'll want to follow this guide:
https://docs.stripe.com/payments/build-a-two-step-confirmation

With that approach, you should be able to inspect payment_method_preview.card.country on the Confirmation Token that is created:
https://docs.stripe.com/api/confirmation_tokens/object#confirmation_token_object-payment_method_preview-card-country

Add an optional review page or run validations after a user enters their payment details.

arctic glen
#

I understand, yes, this would be the ideal solution. As a workaround, you could instead collect a Payment Method with a SetupIntent and charge it later, checking the country in the meantime for example.

languid helm
#

and if the country is different, i would go back and cancel that setup and show the user the new price with the correct currency right?

#

there is no problem in generating multiple non-complete setupintents for this situation

arctic glen
#

The SetupIntent would be complete actually, but you will just not used the resulting Payment Method. You can as well delete/detatch it.

#

No, there shouldn't be an issue.

languid helm
#

Just a last comment vanya, thinking in workarounds

arctic glen
#

However, I would still generally recommend using the Payment Element with 2-step confirmation if you can live with the missing translation for now.

languid helm
#

If I modify the labels using some DOM js manipulation on the iframe to change the texts

#

Is that crazy? Iโ€™m thinking in your TOS and such

arctic glen
arctic glen
languid helm
#

Thanks vanya, gonna talk with product team in we can make this compromise

#

I asked 2 years ago for Catalan translations but were not possible

#

To stripe support, we were eager to provide the text and such

arctic glen
#

I understand, adding and supporting a new language is not a trivial task since we want to make sure it looks and works well on all surfaces.

dense plankBOT