Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spatie\WebhookClient\Exceptions\InvalidConfig: App\Jobs\ProcessPayment is not a valid process webhook job class. #65

Closed
jewishmoses opened this issue May 26, 2020 · 1 comment

Comments

@jewishmoses
Copy link

Config:

[
    'name' => 'stripe',
    'signing_secret' => env('STRIPE_WEBHOOK_SECRET'),
    'signature_header_name' => 'Stripe-Signature',
    'signature_validator' => \App\SignatureValidators\Stripe::class,
    'webhook_profile' => \Spatie\WebhookClient\WebhookProfile\ProcessEverythingWebhookProfile::class,
    'webhook_model' => \Spatie\WebhookClient\Models\WebhookCall::class,
    'process_webhook_job' => \App\Jobs\ProcessPayment\Stripe::class,
],

Class:

<?php

namespace App\Jobs\ProcessPayment;

use \Spatie\WebhookClient\ProcessWebhookJob;

class Stripe extends ProcessWebhookJob
{
    public function handle()
    {
        $data = $this->webhookCall->payload;
    }
}

Error:

Spatie\WebhookClient\Exceptions\InvalidConfig: `App\Jobs\ProcessPaymenst\Stripe` is not a valid process webhook job class. A valid class should implement `Spatie\WebhookClient\ProcessWebhookJob`.
@jewishmoses jewishmoses changed the title Spatie\WebhookClient\Exceptions\InvalidConfig: App\Jobs\ProcessPayment is not a valid process webhook job class. Spatie\WebhookClient\Exceptions\InvalidConfig: App\Jobs\ProcessPayment is not a valid process webhook job class. May 26, 2020
@freekmurze
Copy link
Member

Seems like there's a type here: ProcessPaymenst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants