#abdhesh-rajput_best-practices
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/1268862793097019414
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
basically what you can do is the following
create a PaymentIntent and let the customer pay
once they do you can create a credit note
and use that to pay the upcoming invoices
which automatically reduces the customer's credit balance
if there credit balance is zero then does we need to create a new payment intent or we can use same payment intent
no you need to create a new one
but you can save the payment method and charge the customer off_session if they agree
okay
so credit balance is used to deduct and credit amount into current payment intent??
no not really
that's not how it works
a PaymentIntent is just a way to charge your customer
nothing else
when you create a credit note, you increase the customer's credit balance
and then each time you invoice the customer the amount from their credit balance is used to pay the invoice
which makes the credit balance decrease