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

mattysmart's avatar

Update stripe card details for subscribed user

I have allows users to subscribe to my application. But if the users card details change they will need to update them both on stripes end and on my database too.

How can i do this in Laravel, i have seen people using a updateCard() method on stack overflow questions but i cannot find the method on documentation.

Can anyone point me in the right direction please?

0 likes
3 replies
Francismori7's avatar

updateCard needs a stripe token. The same kind of token that you use to store the initial card details.

$user->updateCard($request->stripeToken);
Francismori7's avatar

@mattysmart Actually identical. You yourself generate a token either using \Stripe\Token::create() or Stripe.js on your form.

Please or to participate in this conversation.