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

learningtolearn's avatar

Save customer card with Stripe

Hi there,

I'm looking to find a tutorial or some help with my setup. I want to create a very simple form that saves a customer card for charges later on. Because we have clients that send their card details to us in email so often, i'd rather that stopped happening. We can then charge them manually in the stripe dashboard. Is this a hard task to accomplish in Laravel? I am a beginner, it will not be easy for me to build, i have been looking all over but i have so far only found intermediate blogs.

Thanks!

0 likes
2 replies
topvillas's avatar

DON'T STORE CREDIT CARD DETAILS.

You'll be opening up a massive can of very ugly worms.

I don't know Stripe but they must send you some sort of reference id that you can use for transactions. Store that instead.

learningtolearn's avatar

Hi there Topvillas,

Yes, stripe saves a customer ID token that is used for reference when the customer makes another payment. Stripe saves their CC details, we don't save anything. What i am trying to do is save the customer ID, not the card details.

Thanks!

Please or to participate in this conversation.