#stephy

1 messages · Page 1 of 1 (latest)

toxic needleBOT
ocean quarry
#

👋 how may I help?

rotund silo
#

HTTP status code
419
after webhook response

#

try {
$event = Webhook::constructEvent(
$request->getContent(),
$request->header('Stripe-Signature'),
Config('services.stripe.webhook_secret')
);
// Handle the webhook event
switch ($event->type) {
case 'checkout.session.completed':

                // Verify that the session ID from the webhook event matches the one from the URL
                if ($event->data->object->id === $sessionId) {
                    // Payment is successful, update database accordingly

                    // Insert payment details into the database
                    DB::table('tbl_payment_details')->insert([
                      
                    ]);

am mange webhook like this..payment is complted but this case not working..why?

#

in my stripe dashboard ,first i create a webook with my webite url
www.example.com..after i done above code but that case not working

#

i got failed webhooks

#

but my payament is completed and amount is paid

ocean quarry
#

are you testing using the CLI?

rotund silo
#

No am testing in my website in stripe test mode