feat: enhance FastRequest functionality with shift scheduling and improve payment callback handling
This commit is contained in:
@@ -17,6 +17,7 @@ use App\Services\Payment\ZibalPaymentService;
|
||||
use App\Services\Wallet\WalletService;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class PaymentController extends Controller
|
||||
{
|
||||
@@ -68,7 +69,7 @@ class PaymentController extends Controller
|
||||
}
|
||||
|
||||
if ($wasPending && $payment->status === PaymentStatusEnum::Paid) {
|
||||
$this->settle($payment);
|
||||
DB::transaction(fn () => $this->settle($payment));
|
||||
}
|
||||
|
||||
session()->flash('payment_result', [
|
||||
|
||||
Reference in New Issue
Block a user