#Asad
1 messages · Page 1 of 1 (latest)
Sure, you'd use mode: 'setup': https://stripe.com/docs/payments/save-and-reuse?platform=checkout
can i use multiple mode in a checkout session?
No you cannot. Why do you need multiple modes?
actually i have a scenario
if a user had remaining trial days and he goes to checkout ,i don't want to charge at that moment.For that i just want to secure his card info and deduct the charges when his trial will end.
Sure, then you'd use mode: 'setup' to collect the payment details to apply when trial ends
No, you'd likely need to update the subscription to apply the new Payment Method from Checkout as the default
and how i can do that?
There's details on collecting payment details before the end of a trial here: https://stripe.com/docs/payments/checkout/free-trials
Depends on what mode you're using. Yes if mode: 'subscription': https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes it worked, but it showing free trial as i've passed it the trial_end variable
Ok, that's expected. What are you trying to achieve?
got a new issue
Sure, what's up?
when i try to add 14 days trial it shows me 13 days of free trial,but when i try to fix it by giving 15 days then it turns to 15 days of trial
how is that going?
Is this in Checkout?
yes
Can you share an example ID (cs_xxx)
yeah
You cannot no, you'd need to manage that yourself if necessary
I don't believe we send them automatically. You'd need to build your own, utilising webhook/events
Hey can we send emails through stripe in testing?
No we don't automatically send emails in test mode: https://stripe.com/docs/receipts#:~:text=Receipts for payments created using your test API keys are not sent automatically. Instead%2C you can view or manually send a receipt using the Dashboard.
here is not any reference is given for test mode
i am looking for a reference, that stripe doesn't allow sending email in test mode.