#louisram_ - invoice bot
1 messages · Page 1 of 1 (latest)
Sounds like that should be doable. Do you have questions on how to make this create Invoice call after the bot has the product/quantity info that it needs?
I'm not sure on a few things:
-
do i need to create a customer before creating an invoice?
-
can I just add a quantity to a product ID and the invoice will display the total?
Yes, you need to create a Customer object to be able to create Invoices. If you don't want to create a Customer, you may want to charge this via a Checkout Session instead
You would need a Price object but yes passing in price IDs and quantities will have us calculate the total amount to charge the user
in this situation (using a discord bot to generate a checkout link/invoice) what do you think would be best?
That is entirely up to you. You can definitely use either and they would work almost the same. It could honestly come down to which UI you like better or which API call you find it easier to work with.
ok great I think invoices as I have looked into webhooks to perform my action after payment has been made
is it possible to have an example of how to retrieve a stripe customer ID when using nodejs please?
Or if you are asking how to retrieve a specific customer by ID, we have this call https://stripe.com/docs/api/customers/retrieve?lang=node
@warm aurora are you still around?