#dai
1 messages · Page 1 of 1 (latest)
Apologies I forgot to attach the guide I am referring to:
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements&element=payment
This depends on the flow you're trying to achieve -- you may wish to create a separate payment for the first period then discount the first invoice 100%
Can you describe the customer flow for this scenario and when you expect to take payment(s)?
Of course!
When the customer signs up for a product initially, we automatically give them a free 2 week trial of the paid product. If they happen to want to purchase it before the trial ends, we allow them. And if they purchase before the trial ends, their paid subscription does not begin until the trial period is complete
Essentially rolls over into their active paid subscription
only when they express intent to pay
Do you want to charge them right away, or collect those details to charge when the trial ends?
That's a actually a good UX question - could you highlight implementation for both?
Sure!
If you wanted to collect payment details right away, you could use a setup intent for that:
https://stripe.com/docs/payments/save-and-reuse?platform=web
You'd then set the new payment method as either the subscription default_payment_method or the Customer invoice_settings.default_payment_method
fwiw i believe today, the charge doesn't occur until their trial ends
That would require the least custom work, since we allow you to create a subscription in trialing mode without a payment method, and have it set to auto cancel if a PM is not provided by the end of the trial:
https://stripe.com/docs/api/subscriptions/create#create_subscription-trial_settings-end_behavior-missing_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If you want to do something else, there are more decisions to make:
1/ If you pay now, does the trial end and start the new billing period immediately?
2/ If you don't end the trial, how does the payment affect the first paid invoice? Discounted to zero? Something else?
That would require the least custom work, since we allow you to create a subscription in trialing mode without a payment method, and have it set to auto cancel if a PM is not provided by the end of the trial
💯 to least custom work
I guess the clarifying question is given the requirement of existing trialing subscription and collect payment at the end of trial
what needs to be leverage via thestripe-js library to ensure advance payment methods like 3DS being properly authorized and added as the PM for the subscription?
im thinking if i've understood that we'd like to create a SetupIntent in the scenario 🤔
since we're effectively setting up a payment for the future
Yes, confirming the Setup Intent via Stripe.js/element will accomplish that and support 3ds requirements etc
And lastly for clarification, what configuration is needed to automatically attach a given PaymentMethod to the subscription?
When collected separately like this, it's not automatic. You must explicitly update the Subscription or Customer.
Though, give me a moment to check something
ok, right
when the subscription is created as trialing the subscription has a pending_setup_intent :
https://stripe.com/docs/api/subscriptions/object#subscription_object-pending_setup_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.