Comments (10)
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.
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.
Our tests seem to indicate that this should be working. Could you submit a failing test?
from laravel-stripe-webhooks.
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.
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.
Not cached unfortunately. Heres a screenshot of the response from Stripe test.
from laravel-stripe-webhooks.
Can you submit a failing test for me to look at?
from laravel-stripe-webhooks.
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.
same, issue
how to solve this problem?
Please help me
from laravel-stripe-webhooks.
same, issue
how to solve this problem?
- Signing secret key added in the config
- 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)
- Upgrade guide incomplete HOT 1
- Webhook Calls Table Hanging Database HOT 1
- v3 Upgrade guide: Include payload column type change
- Syntax error when processing webhook call HOT 1
- Cannot install package using composer HOT 1
- Spatie\WebhookClient\Exceptions\InvalidConfig: `Spatie\StripeWebhooks\StripeWebhookProfile` is not a valid webhook profile class. A valid web hook profile is a class that implements `Spatie\WebhookClient\WebhookProfile\WebhookProfile`
- Typo in StripeWebhooksController 2.6.2 HOT 2
- Testing for signs of life that webhook jobs are executed
- Routing for using Stripe CLI
- Invalid Signature
- Webhook not hitting the job HOT 1
- URGENT: Deployed to Forge server and now website broken, getting Attribute [stripeWebhooks] does not exist.
- No publishable resources for tag [webhook-client-migrations]
- Unable to generate log event using the Job
- README for v3 HOT 1
- Jobs do not run for Stripe event names that already have `_` in them. HOT 1
- Webhook Model can't be overridden (Root issue https://github.com/spatie/laravel-webhook-client/issues/201) HOT 1
- InvalidArgumentException with stripeWebhooks Attribute in Laravel 11 using spatie/laravel-webhook-client v3.7.0 HOT 1
- Custom connection and queue for webhook jobs HOT 3
- stripe/stripe-php:^15.0 compatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-stripe-webhooks.