#charaktarrr_api

1 messages ยท Page 1 of 1 (latest)

heavy escarpBOT
#

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

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

sour shale
#

๐Ÿ‘‹ happy to help

slender warren
#

Thanks.

#

Nice to meet you @sour shale .

#

I am going to integrate stripe payment in our website.

#

And Need to enable bank transfer option.

sour shale
#

@slender warren this is @tepid abyss 's thread

#

please stop entering other people's threads

slender warren
#

sorry

sour shale
#

click on API in #dev-help and enter what you need as information

#

@tepid abyss you should wait before finalizing the invoice to be able to stay in draft status

tepid abyss
#

to attach a paymentIntent the status needs to be "open", I can't attach in "draft"

sour shale
#

yes you're right, sorry my bad

tepid abyss
#

I couldn't manage to get a Invoice into "open" via API. Feels like I tried everything ๐Ÿ˜“

sour shale
#

but let me test that first

#

to make sure it works as expected in this scenario

tepid abyss
#

I just tried, It still goes to "paid" right away

#

I have the shell ready anytime ๐Ÿ˜›

sour shale
#

did you update before finalizing?

tepid abyss
#

no, I created the invoice with "auto_advance":false, the value is correct in the response

#

let me try to set the parameter "auto_advance" on finalizing explicitly

sour shale
#

yes you're right

#

it should be done in the finalization

tepid abyss
#

even stripe invoices finalize_invoice in_1RjgL0Pt62ypWkCOKNwYgaib --auto-advance=false will go to "paid" right away

sour shale
#

what's the request ID?

tepid abyss
#

req_QGQO4GWbHO2c1J

sour shale
#

this seems a bit odd

tepid abyss
#

good it's not just me ๐Ÿ˜›

#

is this maybe because the amount of the invoice is 0?

sour shale
#

oh yeah

#

I didn't see that ๐Ÿ˜ฆ

#

sorry I missed it

#

because the invoice doesn't really need payment

tepid abyss
#

ok, let me try

#

I created a invoice, added a item with amount 1, same behavior ๐Ÿ˜ฆ

#

req_bADaSpXBaXFE2E

sour shale
#

the amount should be more than 50 cents

#

otherwise it will be considered as paid automatically

#

so the total should be 100 instead of 1

tepid abyss
#

heureka

#

that's it... thank you! Did I miss that in the docs?

heavy escarpBOT