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

Mfrancik's avatar

One off charges

I have a credit based system and I'd like the user to be able to store their card as they would with a subscription and select how many credits they'd like to purchase, hit a button, confirm, and bill their card for that amount.

I used to be able to do this with Auth::user()->charge(500).

From the docs im looking at, it looks like stripe requires the user to input their card details every time, they give you a token, and you pass that token with their charge.

Any solutions to store the card on file and bill the user the requested amount?

0 likes
3 replies
Mfrancik's avatar

went with Auth::user()->invoiceFor('One Time Fee', $amount) which uses only the info stored with spark as a default.

tisuchi's avatar

@mfrancik in that case, you can try the recurring payment option, if the payment gateway support that.

Please or to participate in this conversation.