#johan_docs

1 messages ยท Page 1 of 1 (latest)

lime ermineBOT
#

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

hallow slate
signal thunder
#

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',
},
};

hallow slate
#

Taking a look

signal thunder
hallow slate
#

That is helpful, ty!

#

Is iDEAL enabled here? Specifically the recurring part

signal thunder
#

I cannot do this in the dashboard because our connected accounts are custom

#

so I did it through the API

hallow slate
signal thunder
#

for subscriptions? it works for one time payments

hallow slate
signal thunder
#

yeah we don't want to enable it for all connected accounts

#

so I did it for a specific connected account

#

that's one time payments

hallow slate
#

I'm beginning to think iDEAL just isn't supported in this flow

signal thunder
#

maybe that could be it

#

could you please find out if is not supported?

#

and what alternatives do I have?

lime ermineBOT
hallow slate
#

Seems iDEAL recurring payments are only supported in Checkout

signal thunder
#

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?

fallow stone
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

signal thunder
#

np at all thanks a lot

fallow stone
#

there are 2 ways to use iDEAL with subscriptions

#

actually there's one more

#

you save the payment method before creating the subscription

signal thunder
#

which one would you recommend to use in the current page I shared?

fallow stone
#

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

signal thunder
fallow stone
#

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

signal thunder
#

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?

fallow stone
#

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

signal thunder
#

yeah that could be something as well

fallow stone
#

and you can even change your current Elements layout to use radio buttons

signal thunder
#

we have bacs dd working in our internal dashboard I could just add 'ideal' to the checkout and we're good to go

fallow stone
#

this way you still have consistency between the one-time payments and subscriptions UIs

signal thunder
#

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 :/

fallow stone
#

yes I agree

#

there's no clean solution for this

signal thunder
#

oh no way

#

so that's the one right?

fallow stone
#

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

signal thunder
#

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

fallow stone
#

iDEAL is a bit special

signal thunder
#

ok

fallow stone
#

Bancontact is the other one that behaves similarly

signal thunder
#

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

fallow stone
#

yes that's one of the caveats

signal thunder
#

my fear is to continue getting these in the future when sales ask me for another payment method

fallow stone
#

hopefully not

signal thunder
#

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

fallow stone
#

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

signal thunder
#

perfect thanks so much for all the help ๐Ÿ™ have a great day

fallow stone
#

you too, let me know if you need any more help