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

Swaz's avatar
Level 20

Cashier not saving last four to db

I am playing around with Stripe in testing mode. I have this code and it's working fine, except the last_four column in the db stays as null. Does it not save the last_four if you are using a Stripe test key?

$token = $request->input('stripe_token');
$user->subscription('monthly')->create($token);
0 likes
1 reply
Swaz's avatar
Swaz
OP
Best Answer
Level 20

I figured it out. I was on cashier 3.0. It works fine on 4.0.

Please or to participate in this conversation.