#6hills_api

1 messages · Page 1 of 1 (latest)

fringe sorrelBOT
#

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

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

wanton ruin
#

👋 happy to help

fringe sorrelBOT
wanton ruin
#

you can use Invoicing if you want

#

and there's not really a time restriction

#

since you're using MIT payments

#

MIT = merchant initiated transactions

rare canyon
#

would it be possible to autocharge users off session once the admin approves the order? when the creation of the invoice would happen in this case, when the user selects items or on approval of the admin? meaning i’d have to edit the products in the invoice or create a final version on approval?

I assume auto_advance property is what I need?

edgy ocean
#

hi! I'm taking over this thread.

#

can you explain in more details your payment flow?

rare canyon
#

that’s what im trying to figure out 🙂
user selects products.
we save payment info, but do not charge

admin then approves/edits order and thats when the charging would happen, preferably using invoices api so the user has history of selected products.

fringe sorrelBOT
rare canyon
#

so essentially the question is it possible to charge off session using invoices api

#

I apologize if i’m being confusing, please lmk if anything else needs clarification

edgy ocean
#

assuming you already have a payment method saved, then sure you can create an Invoice with collection_method: charge_automatically, and Stripe will try to charge the customer directly.

#

however note that the payment ca fail for many reasons (insufffisant funds, 3DS requested, etc.)

rare canyon
#

great, do I also need to pass auto_advance: true in this case?

edgy ocean
#

yes that makes sense.

#

I recommend testing all of this in test mode to make sure it works as you expect.