From 31372c607d910f8314a1df36e89f232c139b7569 Mon Sep 17 00:00:00 2001 From: Patrick O'Meara Date: Thu, 8 Aug 2024 09:27:49 +1000 Subject: [PATCH] Don't trim the request values from Paddle Paddle verifies the signature based on the input as they have it on their end. If Cashier receives strings that have been trimmed the signature verification fails. The fields need to stay as they are. https://github.com/laravel/cashier-paddle/issues/120 https://github.com/laravel/cashier-paddle/issues/152 https://github.com/laravel/cashier-paddle/issues/173 --- routes/web.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index c940097..9f2c007 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,5 +1,8 @@ name('webhook'); +Route::post('webhook', 'WebhookController') + ->withoutMiddleware(TrimStrings::class) + ->name('webhook');