#stan_api
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/1465753004152983765
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
So you want to influence the order in which payment methods are displayed when using dynamic payment methods, is that right?
correct. Documentation is clear when we know the type but not really when dealing with customer payment methods
There's a parameter you can pass a ranking/order to in the frontend in the options passed to the Payment Element:
yes, it is the one I queoted in the thread, however if you look at the step to add a customer payment method, one can create it without a type, as no such type exists in Stripe
as per above screen
in that scenario, what do we pass to paymentMethodOrder in order to define the order of that custom method?
Ah, Custom payment methods. You said "customer payment method" which confused me
sorry, typo. Custom payment methods is what I am after and defining their order
So you want to order multiple custom payment methods, not a single one? I would not be surprised if you can't do this
I would first try "custom" in paymentMethodOrder and seeing if that works or not
In a scenario where we have a number of standard one (known) and 1 or more custom ones. We want to be able to define their order. Ideally I should be able to put the custom once wherever I want
Can you try the suggestion above and see if it produces any results?
it will take me a while to prep a POC, was hoping for evidence in the documentation
okay I just tested this: you can use the id of the Custom Payment Method in paymentMethodOrder to place it where you want in the order