Support the ongoing development of Laravel.io →
Architecture
Last updated 2 years ago.
0

I solved this by using

$request->input('stripeToken')

instead of

$request->only('stripeToken')

only() returns an array. The errors that I was seeing were not helpful at all, but var_dumping what I was passing to create() helped me figure that out. It would be great if Cashier did some validation on the data you send it though.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

aaronblink aaronblink Joined 15 Oct 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.