Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

skattabrain's avatar

Cashier & Stripe - charge() versus invoiceFor()

Hi All,

Probably a covered question, maybe I didn't look hard enough.

What is the difference between charge versus invoiceFor?

I'd like to use this API to 1 time charge a customer for something but NOT have Stripe automatically try to hit the card again in a few days if it fails like invoiceFor will.

I got a surprise where I thought because it failed, that was it... but days later the charge did go through again without us knowing. Almost had a customer service issue there because it was an expensive charge!

So if I use charge() and it fails... am I safe in saying Stripe will not try to hit the card again later automatically? For this situation, I just need an instant 'success' or 'fail' with fail letting the customer know to try a different card or not make the purchase. I'd like to stay within the Cashier API if possible as the app has subscriptions and 1 time fees that DO need retries.

Thanks in advance good people!

0 likes
0 replies

Please or to participate in this conversation.