#mahendra_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1220039088078454845
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! Looking, give me a few minutes...
The latest Invoice has a prorated amount because you updated the Subscription to cancel before the period ended, so the amount is slightly less than for a full period: https://dashboard.stripe.com/test/logs/req_Bqnddbmjzl3Imt
but I have fix 3 months subscription how can I setup this on subscription creation phase becuase I use stripe prebuild checkout page
and why first time it take 2.61 euro from customer even subscription is not started
You updated the Subscription to cancel before the last period ended, so we only charged for the amount while the Subscription was active, not the full last period. It sounds like you want to use cancel_at_period_end instead of cancel_at: https://docs.stripe.com/api/subscriptions/update#update_subscription-cancel_at_period_end
That way the Subscription will cancel at the end of the current period and bill for the full period instead of only part of it.
It's because you set billing_cycle_anchor when you created the Checkout Session. The amount charged initially is for the time between when the Subscription starts and when the billing cycle anchor is set, which in this case was only a small portion of time, so only a small amount was charged.
ok so how can I setup stripe future subscription through prebuild checkout session.
Because I have use case where I have to book for future booking and I want to take customer payment details and setup subscription schedule for that particular date. How can I do this with batter approach
How much time is there between when you take payment info and when you actually start charging?
there is no time limit It could be 1 month or 1 year. Because we offer future booking
Okay, so you should do this to save the payment info without taking an immediate payment: https://docs.stripe.com/payments/save-and-reuse
Then, later, you can create a Subscription using the saved Payment Method.
ok thanks