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

Jobs never called #47

Closed
huggy06 opened this issue Jul 31, 2019 · 5 comments
Closed

Jobs never called #47

huggy06 opened this issue Jul 31, 2019 · 5 comments

Comments

@huggy06
Copy link

huggy06 commented Jul 31, 2019

Hi

Here ismy config

'jobs' => [
// 'source_chargeable' => \App\Jobs\StripeWebhooks\HandleChargeableSource::class,
// 'charge_failed' => \App\Jobs\StripeWebhooks\HandleFailedCharge::class,
'invoice_payment_action_required' => \App\Jobs\StripeWebhooks\HandlePaymentActionRequiredInvoice::class,
'invoice_payment_failed' => \App\Jobs\StripeWebhooks\HandlePaymentFailedInvoice::class
],

I can send webhook test from stripe. It seems to be ok and save in DB in table webhook_calls.

But The job never handle the event, any idea ?

@freekmurze
Copy link
Member

This test proves that the package is working as intended:

/** @test */
public function it_will_fire_off_the_configured_job()
{
$this->processStripeWebhookJob->handle();
$this->assertEquals($this->webhookCall->id, cache('dummyjob')->id);
}

Make sure you followed all installation steps.

Maybe you've cached your config? Try running php artisan config:clear.

@huggy06
Copy link
Author

huggy06 commented Jul 31, 2019

Yes I run php artisan config:clear, always same problerm

@freekmurze
Copy link
Member

Then I guess you'll have to go through the code yourself and putting some dump statements to figure out what is going wrong in your app.

@adriandmitroca
Copy link
Contributor

Have you figured the issue? I suppose this can be tricky, because actual Stripe event is named invoice.payment_failed and there might be mismatch between . and _.

@adriandmitroca
Copy link
Contributor

For anyone wondering in the future, I've just tested it and package handles events with underscores correctly.

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

3 participants