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

Manzoor-Bajwa's avatar

Laravel 5.1 Cashier (Strip package) not working

Hi I have just installed Laravel Cashier package and created a Strip account. I've followed Laravel official guide http://laravel.com/docs/5.1/billing to install Cashier and setup Stripe API keys. For credit card token, I've followed Skype API docs at https://stripe.com/docs/tutorials/forms

But, I'm getting following error when I try to create a subscription.

This API call cannot be made with a publishable API key. Please use a secret API key. You can find a list of your API keys at https://dashboard.stripe.com/account/apikeys.

Please let me know where I'm wrong. Thanks

0 likes
1 reply
Francismori7's avatar

You used the publishable key instead of a secret key? That message is not encrypted, there's nothing more to it than what it says.

Please or to participate in this conversation.