#yanqing_code

1 messages ยท Page 1 of 1 (latest)

wet owlBOT
#

๐Ÿ‘‹ 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/1367545150749802537

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

normal pagoda
#

Hi ๐Ÿ‘‹

Can you clarify what you mean by

the payment method orders are not forced when there are multiple payment method specified

Also it doesn't look like you are specifying ordering in that code.

#

We have a separate parameter to specify the order for selected payment methods, the paymentMethodOrder parameter

acoustic knot
#

Thanks! We would like to have 'card' always as the first tab in the payment element

#

But this option is not available in StripeElementsOptions

#

Also we haven't changed this code in a while and we only started to see this recently (in 5 days or so?)

normal pagoda
#

It's not a Stripe Elements option. It's a PaymentElement option.

acoustic knot
#

We are using <Elements stripe={stripePromise} options={options}>

normal pagoda
#

Where do you create the Payment Element?

acoustic knot
#

ok I see. So we specify the paymentTypes in the elements option, and then order in payment element options?

normal pagoda
#

The Elements provider is used to pass information down to the Element Components. See our React SDK doc

acoustic knot
#

I see thank you very much!

normal pagoda
#

Specifically here. You can specify an options parameter when instantiating the <PaymentElement /> component.

acoustic knot
#

Thanks a lot! I will give it a try!

wet owlBOT
acoustic knot
#

Thanks again for your help!