#kevin_docs

1 messages ยท Page 1 of 1 (latest)

gusty juniperBOT
#

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

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

ionic canopy
#

hey there!

#

this is something we dynamically order based on our optimizations for conversion based on where the customer is and other factors about the payment

#

If you want to force certain payment methods to appear first, you can optionally specify that:

#

in react, that would be adding to your options prop for the payment element:

stone frost
#

I can't access to the documentation unfortunately :

ionic canopy
#
<PaymentElement options={{paymentMethodOrder:['paypal']}} />
#

Sorry, fixed the link, please try again

stone frost
#

Oh okay thank you will test this ๐Ÿ˜„

#

How does this attribute work? I tried ['credit_card', 'paypal'] and PayPal render before credit card

ionic canopy
#

"credit card" is not a valid type, its just card

#

That option allows you to pass payment methods the specific payment/instance does not include to allow you to define a static order preference, and we just order the ones we do have

#

paymentMethodOrder:['card', 'paypal'] should ensure card is always before paypal

#

(and those two will be first before any others, which we'll just order according to our optimizations)