diff --git a/app/Http/Controllers/BtcPaymentController.php b/app/Http/Controllers/BtcPaymentController.php index 188ed726c..512617c80 100644 --- a/app/Http/Controllers/BtcPaymentController.php +++ b/app/Http/Controllers/BtcPaymentController.php @@ -66,6 +66,7 @@ public function btcPayCallback(Request $request): Response preg_match('/(?P\w+(\s\+\+)?)[\s](?P\d+)/i', $checkOrder->item_description, $matches); User::updateUserRole($user->id, $matches['role']); User::updateUserRoleChangeDate($user->id, null, $matches['addYears']); + $checkOrder->update(['invoice_status' => 'Settled']); Log::info('User: '.$user->username.' upgraded to '.$matches['role'].' for BTCPay webhook: '.$checkOrder->webhook_id); return response('OK', 200);