#sqooby_api

1 messages ¡ Page 1 of 1 (latest)

golden notchBOT
#

👋 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/1293551068671905793

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

nocturne valve
#

hi there!

snow yacht
#

Hello

nocturne valve
#

you should first create an Invoice, and it will automatically contain a PaymentIntent

snow yacht
#

Okey

#

is it possible to not send it to mail, and pay it with paymentIntent?

nocturne valve
#

yes

snow yacht
#

case is that i want user to stay in app, and make payment with paymentIntent and then. just link this payment intent to invoces

#

so u say that this is possible

#

right?

nocturne valve
#
  1. create & finalize the invoice
  2. get the PaymentIntent inside the Invoice, and use the Payment Element to let the customer pay
    you could also use the Hosted Invoice Page to let the user pay if needed.
snow yacht
#

there might be one issue with this

#

in Dashboard when i created invoices automaticlly i should pay all amout, then i created paymentIntent to pay this invoice which also display in dashboard

#

so for example when product cost 20$

#

dont i have40$ total in dashboard in transaction?

nocturne valve
#

but you should NOT create a PaymentIntent

#

only create an invoice

#

and the invoice itself will contain a PaymentIntent for the total amount of the invoice.

snow yacht
#

Okey i get it

#

Thanks a lot

#

i got one more question

#

when invoices has parameter

#

paid_out_of_band: true

#

this invoices shoud be paid

#

which is obvious

#

how pdf should looks like?

#

cuz right know i made some invoices with this parameter

#

and on pdf it says that i should pay once more

#

but invoices in dashboard has status paid

#

invoices id: in_1Q7vctGZoi1Nxyrlm0tFZW1E

nocturne valve
#

that's normal. once an inoice pdf is created, it can no longer be edited for legal reasons.

snow yacht
#

rozumiem

#

o shit XD

#

i just changed my language haha

#

thanks again mate