#johan_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/1370316552729002027
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you share the code you're using to initialise Elements? This function: https://docs.stripe.com/js/elements_object/create_without_intent
sure
const options: StripeElementsOptions = {
mode: 'subscription',
amount: 1000,
currency: 'eur',
paymentMethodCreation: 'manual',
appearance: {
theme: 'stripe',
variables: {
...darkThemeStyling,
colorPrimary: palette.primary.main,
fontFamily: typography.fontFamily,
borderRadius: ${shape.borderRadius.toString()}px,
},
labels: 'floating',
},
};
Taking a look
I have this public link that you could use to debug as well, I hope it can help -> https://staging.legitfit.com/p/membership/673ae36f555918ad9153ce3b
I cannot do this in the dashboard because our connected accounts are custom
so I did it through the API
Actually looks like that iDEAL is disabled on the config for your conncted accounts: https://dashboard.stripe.com/settings
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
for subscriptions? it works for one time payments
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
yeah we don't want to enable it for all connected accounts
so I did it for a specific connected account
you can see that is working here -> https://staging.legitfit.com/p/package/678e3245ca57b317205b6400
that's one time payments
I'm beginning to think iDEAL just isn't supported in this flow
maybe that could be it
could you please find out if is not supported?
and what alternatives do I have?
Seems iDEAL recurring payments are only supported in Checkout
is there a workaround I can use to keep this page?
like mode: 'setup' to save the payment method and then create the subscription or that won't work?
๐ taking over for my colleague. Let me catch up.
np at all thanks a lot
there are 2 ways to use iDEAL with subscriptions
method 1: use Checkout Sessions
https://docs.stripe.com/billing/subscriptions/ideal
method 2: save the bank details during a one-off payment https://docs.stripe.com/payments/ideal/save-during-payment
actually there's one more
you save the payment method before creating the subscription
which one would you recommend to use in the current page I shared?
is there something I can do here to reuse this? https://staging.legitfit.com/p/membership/673ae36f555918ad9153ce3b
I think the easiest would be to replace subscription mode to setup mode
and then you should be good to go
in the case of iDEAL you would use the underlying IBAN payment method ID to start the subscription
I understand. so this would affect all the other payment methods too such as card. this flow is already working for subscriptions paid by card and I used this documentation:
https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=subscription
so then what else should I do in this case? how do I implement this:
https://docs.stripe.com/payments/ideal/set-up-payment
into the current flow I have? or do I have to build something different?
for cards it would work similar to iDEAL with setup mode
when the card PM is created you would then create the subscription
instead of paying directly the first invoice of the subscription
this is not what we recommend usually
but if you want consistency with the 2 payment methods that's what you need to do
it's a tradeoff
I'm sorry I don't fully understand. we have this working for subscriptions:
https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=subscription
it's working perfect for card payments
so I need to replace the mode: 'subscription' to 'setup' and follow another guide?
and then in the case the payment is iDEAL I need to extract the IBAN from the paymentIntent?
or you can setup a "radio" button style list where you treat cards and iDEAL in 2 different ways depending on what the user chooses
yeah that could be something as well
and you can even change your current Elements layout to use radio buttons
we have bacs dd working in our internal dashboard I could just add 'ideal' to the checkout and we're good to go
this way you still have consistency between the one-time payments and subscriptions UIs
is it possible to add a custom button there or I just need to get a button there and make it look as close as possible to the payment element accordion?
is a bit hacky :/
yes I agree
there's no clean solution for this
you can eventually add a "custom payment method" https://docs.stripe.com/payments/payment-element/custom-payment-methods
but you would then have to redirect your customer to a page where they submit their iDEAL in an Element with setup mode
but it's really complicated
as I said there is no clean way today of integrating this
lemme show you what I have within the dashboard I think this could work
and you can tell me if it's a good idea or now
or not*
will this happen again with other payment methods as we enable them?
at the moment we only support, cards, bacs_debit and ideal
iDEAL is a bit special
ok
Bancontact is the other one that behaves similarly
i'm after migrating everything from the legacy card element to the paymentelement and I convinced everyone that it will be dynamic and it'll work for all payment methods but I didn't realise iDEAL won't work with subscriptions in the paymentelement
yes that's one of the caveats
my fear is to continue getting these in the future when sales ask me for another payment method
hopefully not
okay I think that's everything from me! I'm more clear now, I just need to think what I'm going to do
can I contact you after you close this thread?
I always lose the thread and need to explain everything again
don't worry if you come again and open a new thread we would have the reference to this thread added directly there if you're using the same discord user
and if that's not the case:
๐ 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/1370316552729002027
perfect thanks so much for all the help ๐ have a great day
you too, let me know if you need any more help