#smol
1 messages · Page 1 of 1 (latest)
Am a bit confused on your integration. You mention subscriptions, but are creating an invoice direclty in the above example. Why is that?
So what is happening is that there are charges that happen automatically
and I want to be able to charge the user but when I invoice him and try to pay programatically it just adds it to the end of month and not auto bill immediatly
but when I did payment intent I was able to charge the user immediatly but it did not show in the account
I want it to be transparant but in subscription model is not working I am thinking to make it a product and do the subscription logic on my end
So try creating invoice as a draft first: https://stripe.com/docs/api/invoices/create. Then create invoice item explicitly passing that draft invoice's id: https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-invoice
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
it is not like what I am doing in the code?
you create invoice item first
but I thought with auto advance will take them automatically
So I need to make the invoice as draft and then put it in then finalalize it right?
I will test it out and let you know right now thanks alot ❤️