#QTechDev - create invoice
1 messages · Page 1 of 1 (latest)
When you say "from a separate API", does that mean you just want to create an invoice from your server?
yeah its a seperate server
so basically the client will be choosing items from our server and we want to have the payments done thru stripe
Ah ok. Yeah, you can just utilize the "Create an invoice" API endpoint to do this from your server: https://stripe.com/docs/api/invoices/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
the customer ID is something I would make correct?
Yeah. Here's a guide to get you started: https://stripe.com/docs/invoicing/integration/quickstart
Learn how to create and send an invoice with code.
ok great ill take a look at this thanks
i just refer to this thread if i need any help?
Yeah. We archive them after a while if there's no activity, but you can always just come back and ask a question in the main channel if it's been archived
okay thanks
No problem!
is it possible to instead of sending an email for an invoice to just have them pay on the site itself?
Yes for sure. PaymentIntents might be the way to go then. Are you accepting one-time payments or subscription payments? Also, do you want them to remain on your website for the payment, or are you open to them paying on a Stripe-hosted page?
Ok let me send you a different guide that will be better for your use-case. One moment
much appreciated
This guide will allow you to use the Stripe PaymentElement form on your website and shows you how to accept a one-time payment using PaymentIntents: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
Here's more info on what a PaymentIntent is: https://stripe.com/docs/payments/payment-intents