#jeingo
1 messages ยท Page 1 of 1 (latest)
Hi there!
Can you tell me which method and which fields should I use to make a payment with a saved card?
So you already have a Payment Method saved, and you want to charge it?
yes
Then yes Invoice seems like a good option for you
But the documentation says that
Note that finalizing the invoice, when automatic, does not happen immediately as the invoice is created. Stripe waits until one hour after the last webhook was successfully sent (or the last webhook timed out after failing)
That's how it works by default, but you can fnalize the invoice yourself to remove that delay if needed
and how to pass the product name without creating it. This can be done in checkout, but not in invoice.
You'll need to create Product/Price objects with Invoice.
it turns out I need to create an InvoiceItem and then an invoice with the charge_automatically flag. After that, the funds should be debited? Did you miss anything?
You'll need to Finalize and Pay the invoice yourslef if you don't want the one hour delay. Otherwise yes it should work.
Understood. Thank you. I will try
Happy to help ๐
I figured out how to do finalize. via finalize Invoice . And how to pay the bill?
With the Pay endpoint: https://stripe.com/docs/api/invoices/pay