#kevin_docs
1 messages ยท Page 1 of 1 (latest)
๐ 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.
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:
I can't access to the documentation unfortunately :
<PaymentElement options={{paymentMethodOrder:['paypal']}} />
Sorry, fixed the link, please try again
Oh okay thank you will test this ๐
How does this attribute work? I tried ['credit_card', 'paypal'] and PayPal render before credit card
"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)