Well, are you sure you are including the Laravel CSRF token (correctly)?
This looks like being independant from stripe to me.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
So im playing with Cashier trying to set up a subscription form
form looks like
<div>
<form action="/" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="pk_test_ylThVfhN9BlO4pdm4evJTeWi"
data-amount="2181"
data-name="OG Pokemon"
data-description="monthly UK"
data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
data-locale="auto"
data-currency="gbp">
</script>
</form>
</div>
Posts to this route
Route::post('/', function() {
$token = Input::get('stripeToken');
Auth::user()->subscription('monthly')->create($token);
return 'DONE';
});
and get this error
TokenMismatchException in VerifyCsrfToken.php line 68:
any ideas?
Thanks guys
Please or to participate in this conversation.