#theculturedone
1 messages ยท Page 1 of 1 (latest)
this is the input which sometimes spawns another 2 checkboxes and other times not
Hello! I believe the reason it's not showing up is because your subscription is scheduled to be created at a future date (which under the hood will create a subscription schedule)
Configuring trial end behavior is something that you can only set for subscriptions, not for subscription schedules
Ah
got it
Indeed if i set the start date to present time it spawns
Thank you !
Lol
I was just about to
So I have another question:
Assuming I want my customers to set up their billing info on trialWillEnd webhook event from a free trial.
I am creating a new checkoutSession with mode setup.
How can i make this checkoutSession set the payment method configured as the default one?
Because the issue is that even though I managed to configure a payment method via checkout it is not the default one.
And when the trial ends the subscription will get deleted even though the customer set up their info.
You'd need to write additional code to set the default - after the checkout session is successful you'd make an api request to update the Customer and set invoice_settings.default_payment_method to the PaymentMethod you just set up (https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_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.