#DamManc

1 messages ยท Page 1 of 1 (latest)

fickle masonBOT
south sleet
#

Hello ๐Ÿ‘‹
Yes, subscription schedule would be best for your usecase

tender fox
#

@south sleet ok thank you, I have another question, if I don't write the phases option array when i created the scheduleSubscription which product is associated with this subscription?

south sleet
#

I believe phases aren't optional

#

unless you pass in an existing subscription ID

tender fox
#

@south sleet a ok perfect!, another: there is the event checkout.session.completed after the completion of checkout session with setup as type?

south sleet
#

I believe so, yes.

tender fox
#

ok i will try, thank you ๐Ÿ™‚

south sleet
#

๐Ÿ‘

tender fox
#

@south sleet i have another: I can quickly setup a behavior if the payment intent goes bad?

south sleet
#

not sure what you mean by setting up a behavior
can you clarify?

tender fox
#

with webhook? If I crete a checkout session setup, the customer insert the payment data, and after with webhook I create a ScheduleSubscription for tomorrow (with metadata I can pass the right data). But tomorrow the payment goes bad, because the card have not money, There is a method to delete/update the subscription

#

@south sleet

south sleet
#

Yes, you can use webhooks to listen for failed payments and handle the use-case according to your needs ๐Ÿ™‚

tender fox
#

ok perfect, thank you ๐Ÿ™‚