You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I installed this good package but i have a problem with catching test webhook.
I tried to test catching webhook with an event and with a job but when i do a test on stripe i have a good answer (200) but no return.
I'm on laravel 5.7 with laravel stripe webhooks 1.1.1
I have this job in use
<?php
namespace App\Jobs\StripeWebhooks;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Spatie\StripeWebhooks\StripeWebhookCall;
use Illuminate\Http\Request;
use Stripe\Stripe;
use Stripe\Charge;
use App\Models\Centre;
class HandleCustomerSubscriptionCreated implements ShouldQueue
{
use InteractsWithQueue, Queueable, SerializesModels;
/** @var \Spatie\StripeWebhooks\StripeWebhookCall */
public $webhookCall;
public function __construct(StripeWebhookCall $webhookCall)
{
$this->webhookCall = $webhookCall;
}
public function handle()
{
return "plop";
}
}
And i tried with this event
<?php
namespace App\Listeners;
use Spatie\StripeWebhooks\StripeWebhookCall;
class HandleCustomerSubscriptionCreated
{
public function handle(StripeWebhookCall $webhookCall)
{
return 'plop99';
}
}
This error is the same to this issue #36 but i don't have CASHIER_ENV=testing in my .env.
I have cleared cache.
If i try to do same thing with redirect route directly to a simple controller i have the correct return but when i use Jobs or event i can't do it.
I think i forget something somewhere but i don't found what. An idea ?
The text was updated successfully, but these errors were encountered:
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
Hello,
I installed this good package but i have a problem with catching test webhook.
I tried to test catching webhook with an event and with a job but when i do a test on stripe i have a good answer (200) but no return.
I'm on laravel 5.7 with laravel stripe webhooks 1.1.1
I have this job in use
And i tried with this event
Event is in eventprovider
And job in stripe-webhooks.php
This error is the same to this issue #36 but i don't have CASHIER_ENV=testing in my .env.
I have cleared cache.
If i try to do same thing with redirect route directly to a simple controller i have the correct return but when i use Jobs or event i can't do it.
I think i forget something somewhere but i don't found what. An idea ?
The text was updated successfully, but these errors were encountered: