laravel / cashier-mollie

MIT License
376 stars 63 forks source link

Can't integrate with Laravel 5.8 - No API key provided #125

Closed paligiannis closed 4 years ago

paligiannis commented 4 years ago

I am already a customer in Mollie and Mollie API is working fine with my application in production. I installed Mollie cashier for subscription plans.

I have this piece of code. $user = \App\User::find(9); $result = $user->newSubscription('main', 'example-1')->create(); dd($result);

I have followed all the steps for installation: Packages:

The error I get, even if the configuration I have in cashier.php is correct I the following: No API key provided. (HINT: set your API key using "Stripe::setApiKey()". You can generate API keys from the Stripe web interface. See https://stripe.com/api for details, or email support@stripe.com if you have any questions. https://prnt.sc/q8gb5m

I have also clear the cache, config files and views.

Anyone having the same issue?

RobertBoes commented 4 years ago

laravel/cashier-mollie is a replacement for laravel/cashier. The error is caused by cashier, which is built with Stripe. You should remove the laravel/cashier requirement and then the error should be gone :)

paligiannis commented 4 years ago

laravel/cashier-mollie is a replacement for laravel/cashier. The error is caused by cashier, which is built with Stripe. You should remove the laravel/cashier requirement and then the error should be gone :)

Thank you very much. Now error 422 but I'l inspect it on my own. Thanks a lot :)