#abdhesh-rajput_best-practices

1 messages ยท Page 1 of 1 (latest)

gusty vaultBOT
#

๐Ÿ‘‹ 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.

fathom bloom
#

๐Ÿ‘‹ 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

warm estuary
#

if there credit balance is zero then does we need to create a new payment intent or we can use same payment intent

fathom bloom
#

no you need to create a new one

#

but you can save the payment method and charge the customer off_session if they agree

warm estuary
#

okay

#

so credit balance is used to deduct and credit amount into current payment intent??

fathom bloom
#

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

gusty vaultBOT
warm estuary
#

Hii @still fulcrum

#

where can i find credit balance