update a few things

This commit is contained in:
Andras Bacsai
2023-08-23 16:40:59 +02:00
parent d62af76097
commit 2d8f166e4a
9 changed files with 44 additions and 29 deletions

View File

@@ -208,7 +208,7 @@ Route::get('/waitlist/cancel', function () {
})->name('webhooks.waitlist.cancel');
Route::post('/payments/events', function () {
try {
$secret = config('coolify.lemon_squeezy_webhook_secret');
$secret = config('subscription.lemon_squeezy_webhook_secret');
$payload = request()->collect();
$hash = hash_hmac('sha256', $payload, $secret);
$signature = request()->header('X-Signature');