Level 20
I figured it out. I was on cashier 3.0. It works fine on 4.0.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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);
I figured it out. I was on cashier 3.0. It works fine on 4.0.
Please or to participate in this conversation.