#d.yl4n
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Yes you can do that. You essentially use the Payment Intent created by the Subscription to collect the iDEAL payment. This is configured for recurring payments as a sepa_debit payment method
https://stripe.com/docs/payments/ideal/save-during-payment
That way you collect your first payment with the user on-session using iDEAL and the sepa_debit payment method that is created is used for payments after that
Yes I tried that, but when I create the subscription it automatically bills another billing cycle right away
it automatically bills another billing cycle right away
That doesn't make sense. How are you creating the subscription?
Just the Subscription ID will be fine, thanks
What I mean is what are you trying to collect? Lke just a monthly payment?
I have a 3-month recurring price and a 12-month recurring price
Okay but you can only have one billing period. So which one are you using
well that depends on what my customer chooses but for this ticket let's say a billing period of 1 day
sub_1NIZa5G3FlBxHt8iIondlLZ6
This is a subscription ID
Where I captured the first payment using payment intent. And then created the subscription and another period was automatically charged right away
There's only one invoice paid for that subscription
Oh that is what you are doing wrong
You cannot use a Payment Intent by itself and expect the Subscription to know about it
You need to collect the first payment as part of the Subscription
If I just create the subscription that also returns a payment intent. But that one does not allow iDEAL only sepa direct debit
Okay in that case I have 2 options for you
- Create the PM with a Setup Intent and use the resulting
sepa_debitPM to pay the Subscripton. https://stripe.com/docs/payments/ideal/set-up-payment - Mark the first Invoice for the Subscription as
paid- actually don't do this. You would have to mess with your Subscription settings too much
So I save the payment method with a setupintent. And then I create the subscription where I specifiy the default payment method to be the payment method from the setup intent ?
Yes
And the user does not need to provide any action ? The money will automatically be charged from there bank ?
Correct
Alright, one final question. Will the status of the subscription be pending as long as the first invoice is in pending state?
It depends on the payment_behavior you set. By default it is set to allow_incomplete which means it will start in an incomplete state until the first invoice is paid
alright that's exactly what I need. I will try that thanks for the support
Happy to do it ๐