Git Product home page Git Product logo

Comments (10)

cloudwales avatar cloudwales commented on September 14, 2024 1

Never mind. I sorted it. I went back to cashier and I was missing CASHIER_ENV=testing in the .env file.

Thanks for your help

from laravel-stripe-webhooks.

hashimaziz1 avatar hashimaziz1 commented on September 14, 2024 1

After an annoying day of debugging this and several related issues, I finally found a fix to this, #41, #47 and probably some others. I wasted a few hours on this alone because nothing gets logged in Laravel's logs and specifying the format completely wrong returns a successful status code in the Stripe CLI.

The problem is that the webhook event in stripe-webhook.php needs to be completely delimited by underscores:

'jobs' => [
    "payment_intent_succeeded" => \App\Jobs\StripeWebhooks\PaymentIntentSucceeded::class,
    // 'source_chargeable' => \App\Jobs\StripeWebhooks\HandleChargeableSource::class,
    // 'charge_failed' => \App\Jobs\StripeWebhooks\HandleFailedCharge::class,
],

from laravel-stripe-webhooks.

freekmurze avatar freekmurze commented on September 14, 2024

Our tests seem to indicate that this should be working. Could you submit a failing test?

from laravel-stripe-webhooks.

cloudwales avatar cloudwales commented on September 14, 2024

Hi @freekmurze, thanks for your response.

I get a 200 response on all the tests and it adds the entry into the database correctly, but it doesn't do the logic in the HandleSucceededCharge Job. I don't get any failed tests nor anything in the log. It shows up in the database as a successful call.

Cheers

from laravel-stripe-webhooks.

freekmurze avatar freekmurze commented on September 14, 2024

This bit in our tests proves that in normal circumstances the right job should get called: https://github.com/spatie/laravel-stripe-webhooks/blob/master/tests/IntegrationTest.php#L55-L57

Could it be the case that you cached your config and added that job to the config afterwards?

Try running php artisan config:clear.

from laravel-stripe-webhooks.

cloudwales avatar cloudwales commented on September 14, 2024

Not cached unfortunately. Heres a screenshot of the response from Stripe test.

screenshot 2018-10-10 at 14 18 06

from laravel-stripe-webhooks.

freekmurze avatar freekmurze commented on September 14, 2024

Can you submit a failing test for me to look at?

from laravel-stripe-webhooks.

cloudwales avatar cloudwales commented on September 14, 2024

Sorry for sounding stupid and don't want to waste too much of your time, but i don't understand. They all come back with Test webhook sent successfully.

from laravel-stripe-webhooks.

n4inz avatar n4inz commented on September 14, 2024

same, issue
how to solve this problem?
Please help me

from laravel-stripe-webhooks.

Wyatt-NAT avatar Wyatt-NAT commented on September 14, 2024

same, issue
how to solve this problem?

  1. Signing secret key added in the config
  2. Jobs delimited by underscores

I can see that I have a record in the database, however this package does not call Job to carry out extra action utilising payload.

The Job I created and mapped in the configuration is not called, which is the sole problem. It appears that the Job is not being sent from the package itself.

from laravel-stripe-webhooks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.