#d.yl4n

1 messages ยท Page 1 of 1 (latest)

modest gladeBOT
analog storm
#

Hi ๐Ÿ‘‹

#

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

rocky granite
#

Yes I tried that, but when I create the subscription it automatically bills another billing cycle right away

analog storm
#

it automatically bills another billing cycle right away
That doesn't make sense. How are you creating the subscription?

rocky granite
#

Through nodejs sdk

#

I can send a snippet if you want

analog storm
#

Just the Subscription ID will be fine, thanks

#

What I mean is what are you trying to collect? Lke just a monthly payment?

rocky granite
#

I have a 3-month recurring price and a 12-month recurring price

analog storm
#

Okay but you can only have one billing period. So which one are you using

rocky granite
#

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

analog storm
#

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

rocky granite
#

If I just create the subscription that also returns a payment intent. But that one does not allow iDEAL only sepa direct debit

analog storm
#

Okay in that case I have 2 options for you

#
  1. Create the PM with a Setup Intent and use the resulting sepa_debit PM to pay the Subscripton. https://stripe.com/docs/payments/ideal/set-up-payment
  2. 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
rocky granite
#

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 ?

analog storm
#

Yes

rocky granite
#

And the user does not need to provide any action ? The money will automatically be charged from there bank ?

analog storm
#

Correct

rocky granite
#

Alright, one final question. Will the status of the subscription be pending as long as the first invoice is in pending state?

analog storm
#

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

rocky granite
#

alright that's exactly what I need. I will try that thanks for the support

analog storm
#

Happy to do it ๐Ÿ™‚