#yathartha_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/1273935381091319810
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Yep, seems expected as you can't pass no-recurring items to phases[][items]. Use this param instead: https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-phases-add_invoice_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This will lead to the business logic failure as we have both oneoff and recurring types. which will create subscription schedule
Yeah I mean not sure what to tell you. You can't add a one-time price as an item to recurring subscription/schedule. You'd add it as an invoice item, as per above, so it's included on the invoice for that phase
few weeks back i have created a ticket regarding the update of the subscription schedule, where even if i update the schedule with the proration none, it was updating the schedule keeping proration behaviour so, the client had to refund some amount to the customer
its okay but we also have update feature and its not working as expected that i have mention in the message above
I'm not sure what to tell you. You're trying to add a one-time price as a recurring item on a schedule phase. It won't work, you can only add recurring prices there
further i have talked with the support here and she told me to use stripe subscription update instead. which again works as told but while updating the subscription to oneoff, yet again it says i cannot update the cancellation behaviour as it is managed by the schedule
so schedule is only for recurring type. Is it the use case of the schedule.Am i right?
Subscriptions are only for recurring payments, regardless of whether there's an associated schedule or not. If you want to charge an ad-hoc amount once (e.g. a one-time price), then you'd use the add_invoice_items parameter I shared above and it'll be included on the next invoice for that phase
so it is that we should not /cannot update the subscription from recurring to one off?
Exactly