#mckeemi_code
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/1227908330958229506
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mckeemi_best-practices, 21 hours ago, 13 messages
Oh I didn't see this thank you will have a look
let me know if you need any more help
Is there any other way to do this? The current code is working correctly using setup_intents, is there a way of adjusting the SubscriptionCreateOptions or the Items within it to allow for this?
unfortunately there isn't
Or is there away when we create the Stripe Plan that we can set the initial payment
oh actually you can do something here
you can add a one-off payment of the difference to the first invoice
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oh that would be great, if I didn't have to refactor it all ๐
yes you can add the 30 cents as a one-off to the first invoice
the problem with subscriptions though is that you can't use a number of iterations like you do with subscription schedules
instead you need to use https://docs.stripe.com/api/subscriptions/create#create_subscription-cancel_at
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
to say when the subscription should end
That's ok for now as we control the cancelling of the subscription when all payments are met if it's not an ongoing subscription.
how do you add a one-off addition to the first invoice?
using the parameter I sent you above add_invoice_items
If I can add that in for now and then look at maybe refactoring to the subscription schedules for those with a predefined number of payments when we can fit it in.
Thank you for all your help, very much appreciated ๐
sure let me know if you need any more help