#sugam1469_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/1270267448175624202
📝 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.
- sugam1469_api, 6 days ago, 61 messages
So what's your question?
the customer credit balance should be ignored for next advance invoice
So you don't want Stripe to automatically apply the credit balance for the next invoice?
yes
You can’t choose to not apply the credit balance to an invoice.
here is my use case:
- When a parent(customer) enroll his first child at the middle of the month, 300 is charged for monthly fee and 25 is charged for admission fee.
As he has made this subscription in the middle of the month say 15th of the month 300 whole month is charged and 150 is stored as his credit balance.
The monthly fee is in re occuring basic so the credit will be reducted for his next invoice. - And when the same parent(customer) enroll his second child say at 16th of the same month, while paying invoice as the credit balance is grater then the advance amount im getting Invoice already paid response.
So here i need to treat those 2 child as different subscription and each credit balance should be applied only to their resp. invoices.
As mentioned in the docs that I shared earlier. I'm afraid that you can't choose to not apply the credit balance to an invoice.
A workaround is to create another customer object for the 2nd child.
how can i do that
You mean how to create a customer? https://docs.stripe.com/api/customers/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.