laravel / cashier-mollie

MIT License
375 stars 63 forks source link

Support for Laravel 6 #131

Closed pperzyna closed 4 years ago

pperzyna commented 4 years ago

Take a look

Package operations: 4 installs, 0 updates, 0 removals
  - Installing composer/ca-bundle (1.2.5): Downloading (100%)         
  - Installing mollie/mollie-api-php (v2.11.0): Downloading (100%)          
  - Installing mollie/laravel-mollie (v2.8.0): Downloading (100%)          
  - Installing laravel/cashier-mollie (v1.9.0): Downloading (100%) 
....
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   Mollie\Api\Exceptions\ApiException  : Invalid API key: ''. An API key must start with 'test_' or 'live_' and must be at least 30 characters long.

  at /var/www/html/vendor/mollie/mollie-api-php/src/MollieApiClient.php:348
    344|     {
    345|         $apiKey = trim($apiKey);
    346| 
    347|         if (!preg_match('/^(live|test)_\w{30,}$/', $apiKey)) {
  > 348|             throw new ApiException("Invalid API key: '{$apiKey}'. An API key must start with 'test_' or 'live_' and must be at least 30 characters long.");
    349|         }
    350| 
    351|         $this->apiKey = $apiKey;
    352|         $this->oauthAccess = false;

  Exception trace:

  1   Mollie\Api\MollieApiClient::setApiKey("")
      /var/www/html/vendor/mollie/laravel-mollie/src/Wrappers/MollieApiWrapper.php:92

  2   Mollie\Laravel\Wrappers\MollieApiWrapper::setApiKey()
      /var/www/html/vendor/mollie/laravel-mollie/src/Wrappers/MollieApiWrapper.php:67
sandervanhooft commented 4 years ago

Try flushing the config cache.

pperzyna commented 4 years ago

@sandervanhooft same :(

the problem is related to mollie/mollie-api-php . Shoud i put it as a bug also there?

pperzyna commented 4 years ago

i switched to latest version