From a86d6b9c45fc1ee40d396a10218cd0f5347049f1 Mon Sep 17 00:00:00 2001 From: "Claude (Chronicler #57)" Date: Fri, 3 Apr 2026 16:49:13 +0000 Subject: [PATCH] fix: remove duplicate stripe route mount causing webhook body parsing issue ISSUE: Webhook signature verification failing with 'Payload was provided as a parsed JavaScript object instead of raw Buffer' CAUSE: Line 43: app.use('/stripe/webhook', stripeRoutes) - raw body Line 83: app.use('/stripe', stripeRoutes) - JSON parsed body Same router mounted twice at different paths caused JSON parser to run FIX: Removed line 83 duplicate mount Webhook stays at /stripe/webhook with raw body parsing Checkout stays at /stripe/create-checkout-session FILES MODIFIED: - services/arbiter-3.0/src/index.js (-1 line) TESTING: Complete Stripe test checkout, webhook should process successfully Signed-off-by: Claude (Chronicler #57) --- services/arbiter-3.0/src/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/services/arbiter-3.0/src/index.js b/services/arbiter-3.0/src/index.js index 6cba1af..58119aa 100644 --- a/services/arbiter-3.0/src/index.js +++ b/services/arbiter-3.0/src/index.js @@ -80,7 +80,6 @@ const csrfProtection = csrf({ cookie: false }); app.use('/auth', authRoutes); app.use('/admin', csrfProtection, adminRoutes); app.use('/webhook', webhookRoutes); -app.use('/stripe', stripeRoutes); // Other Stripe routes (checkout, portal) // Start Application const PORT = process.env.PORT || 3500;