#smol

1 messages · Page 1 of 1 (latest)

sterile yewBOT
hexed bronze
#

Please look at the images to get the frustration that is happening 😭

sweet quest
#

Am a bit confused on your integration. You mention subscriptions, but are creating an invoice direclty in the above example. Why is that?

hexed bronze
#

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

sweet quest
#

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

hexed bronze
#

it is not like what I am doing in the code?

sweet quest
#

you create invoice item first

hexed bronze
#

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 ❤️

sterile yewBOT