-
-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Report
Summary
All other Stripe webhook events are working, but checkout.session.expired returns an error.
Error Message
Webhook Error: Invalid API Key provided: sk_live_************************************************************************************************yrW3
Event Payload
Received from Stripe to /webhooks:
{
"id": "evt_1S8bvmB9G8rKmdS63kkohIJ2",
"object": "event",
"api_version": "2023-10-16",
"created": 1758179222,
"data": {
"object": {
"id": "cs_live_b1MtpwY9er2giwMTl5zvJHJqLTHr0JO5DKN6RKiqKufYbTRoRWDg2UZ0kA",
"object": "checkout.session",
"amount_subtotal": 2000,
"amount_total": 1400,
"currency": "usd",
"customer": "cus_T4NmrYOS2wnkAO",
"discounts": [
{
"promotion_code": "promo_1Q6Uc5B9G8rKmdS6l6bPwOYj"
}
],
"expires_at": 1758179220,
"livemode": true,
"mode": "subscription",
"payment_status": "unpaid",
"status": "expired",
"success_url": "https://hidden?success=true&session_id={CHECKOUT_SESSION_ID}&price=20&email=hidden",
"cancel_url": "https://hiddenpricing?canceled=true"
}
},
"livemode": true,
"pending_webhooks": 2,
"type": "checkout.session.expired"
}Steps to Reproduce
- Create a checkout session in live mode.
- Let the session expire without completion.
- Observe the webhook call to
/webhooks.
Expected Behavior
Webhook event checkout.session.expired should be processed without error.
Actual Behavior
Webhook returns:
Webhook Error: Invalid API Key provided
Notes
- Other webhook event types succeed.
- Only
checkout.session.expiredcauses this error.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working