#kai_invoices

1 messages ยท Page 1 of 1 (latest)

dawn gustBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

grizzled lindenBOT
frail marsh
#

It seems like part of the answer got cut off. Here is the missing part for the question "What have you already attempted?"
Despite these steps, the dashboard shows the invoices as paid with $0 instantly and lists the invoice items with the specified amounts as pending.

floral island
frail marsh
#

It seemed like it initiated the payment with the 'open' status. Does it always take 1 hour for the payment to complete? Is there a way to make the payment instantanious?

#

in_1OwptQEvUNDxHSmfl4bSsH3i

floral island
frail marsh
#

Thank you very much.
InvoiceItem.create() -> Invoice.create() -> Invoice.finalize_invoice() -> Invoice.pay()
Is this the common and correct implementation for having a credit system like mine?

floral island
#

There's a lot of different ways to implement a system like yours - basically, you just need Stripe to manage the payment-acceptance part (which Invoices works great for) but there's a lot of other options for accept payments

frail marsh
#

It seems like implementation worked. very very helpful. Thanks!

floral island
#

๐Ÿ‘