#karsh
1 messages ยท Page 1 of 1 (latest)
This is the guide you want: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
Thanks. I've just followed this one today as well, but this only makes SEPA direct debit show up in the payment element. Not iDEAL, bancontact or sofort (local payment methods I need)
You have an example Subscription I can see?
I've also tried this guide: https://stripe.com/docs/payments/save-and-reuse?platform=web
and I guess I need to combine that with the subscriptions API, but am a bit lost in the correct flow
Subscription made using the guide you linked? https://dashboard.stripe.com/test/payments/pi_3MZB1DKWokmZWsWf0bXQDlWk
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
So that works great, but then with iDeal.
The payment element showed me that I could pay with card or sepa direct debit.
But I want to use SEPA direct debit, while letting the user do an iDeal payment instead of filling int heir bank details
So when using the guide you linked, I get a payment element showing this:
Checking
Thanks! In the meantime i'm searching discord for similar threads and perhaps this is the solution? https://stripe.com/docs/billing/subscriptions/sepa-debit?platform=web#use-other-payment-methods
(Still don't fully get it so please think with me)
Ok, the default subscription flow (like I shared), doesn't support iDEAL currently
Okay, so I need to do use setupintents I think. Just missing the logic on what to do first.
- Setupintent
- Create subscription after setupintent succeeds?
Yes
Okay so after the setupintent is confirmed, we're on a 'confirm' page (the return_url).
Then I can check server side if the setupintent went well, if not redirect back to payment page.
I'm a bit lost at this point.
I can retrieve the setupintent and check if the status == "succeeded".
Then I can list payment methods and get the ID of the sepa payment method.
Then I am at step 7 of this guide https://stripe.com/docs/payments/save-and-reuse?platform=web#charge-saved-payment-method
Buth ere I need to start creating a subscription instead, correct?
Then I can check server side if the setupintent went well, if not redirect back to payment page.
Why do that server-side? Just use the response onceconfirmSetupresolves. It'll contain thepm_xxxyou can use to create your subscription
You mean, this?
and then use that paymentMEthod that's saved to the customer to create the subscription?
Yep, exactly!
And then I need to create that subscription with setting the default payment method to that pm_xx I got from the setupIntent ?
Yep
thank you! I'll try this out right now. I probably have 1 or 2 follow up questions ๐
You'll need to be sure to use the correct (SEPA) PM from the SI: https://stripe.com/docs/payments/ideal/set-up-payment?platform=web#charge-sepa-pm
Thanks, I think for my use case that means I need to follow this: list the payment methods associated with that customer
that seems to work as I've got a subscription created ๐
Shouldn't need, to just pass the expand parameter when you create the Setup Intent
oh okay!
And how can I test this properly?
I don't get these instructions: https://stripe.com/docs/payments/save-and-reuse?platform=web#test-charging-a-saved-sepa-debit-paymentmethod
do I need to use those email addresses when creating the customer?
Not sure I understand the question
Okay this is what I want:
The user can buy a subscription, say something that costs 25 euros a month, using iDeal to give the mandate for SEPA direct debits.
Right now it looks like this is working (https://dashboard.stripe.com/test/payments/pi_3MZE2rKWokmZWsWf0QqXN8OY )
But, I read the SEPA transactions can take several days.
Or it might fail due to needing authorization.
I'd like to program the fallbacks for what should happen if the money isn't being received (the subscription should stop after retrying). And if it needs authorization, then I need to let the user know to do something.
To trigger these secnario's I think I can use the test data in the last link? But not sure how to use it. In other words, the instructions aren't clear eonugh for me
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.