receiver icon indicating copy to clipboard operation
receiver copied to clipboard

Stripe Driver Not Recognized?

Open nkeena opened this issue 3 years ago • 2 comments

I've installed the latest version running on Laravel 9 and PHP 8.1.

I'm getting this error message when trying to use the stripe driver:

InvalidArgumentException: Driver [stripe] not supported.

Not sure what I'm doing wrong or if this is a bug.

My implementation:

<?php

namespace App\Http\Controllers\Webhooks;

use Illuminate\Http\Request;
use Receiver\Facades\Receiver;
use App\Http\Controllers\Controller;

class WebhooksController extends Controller
{
    public function store(Request $request)
    {
        Receiver::driver('stripe')
            ->receive($request)
            ->ok();
    }
}

nkeena avatar Aug 31 '22 19:08 nkeena

It's easy to miss, but I mentioned in the docs that the Stripe receiver requires you to install the SDK:

https://github.com/hotmeteor/receiver#installation

hotmeteor avatar Sep 01 '22 22:09 hotmeteor

Hey, thanks for replying. I do have the Stripe SDK installed already. Is it a specific version?

Here's what's in my composer.json file

"stripe/stripe-php": "^7.113",

nkeena avatar Sep 02 '22 05:09 nkeena

@nkeena Fixed it, there was a regression in the Manager. Thanks!

hotmeteor avatar Sep 07 '22 20:09 hotmeteor