#dante0-subscriptions

1 messages · Page 1 of 1 (latest)

vale lichen
dusk trout
#

Thanks for the reply - unfortunately not able to use checkout as client doesn't want a redirect. Is there a way to create a payment intent then create a subscription with that payment intent as the first payment?

vale lichen
#

Not really. A sort of hack there is you create the PaymentIntent for the amount of the first billing period and then after it succeeds you create a Subscription with a trial period(to skip the first payment) . But you still need a Customer object upfront since the PaymentIntent has to attach the PaymentMethod to something or the subscription will have nothing to charge next month, so it doesn't really help I think.

dusk trout
spice gyro
#

I'm not a Stripe employee, but if the problem is lots of empty customers for users who didn't complete the flow, you could add a scheduled/cron job to delete them from your database once they're 30 days old or something.

dusk trout
#

That's my current solution but it's hacky

vale lichen
#

yeah that's an option too. It'd definitely a known pain point that you can end up with a lot of unwanted data in an account. We have some ongoing initiatives like Guest Customers to try to alleviate that and the change in the recent API version to change the default value of customer_creation for Checkout is part of it, but we're not there yet and it's not ideal.

vale lichen
dusk trout
vale lichen
#

the latter, you can't explicitly create a guest customer right now in a direct API integration (I see how it would help in this use case and I think that's what the team wants to do support eventually)

dusk trout