all(); // $response = Http::asForm()->post('https://mpi.gov.tm/payment/rest/getOrderStatus.do', [ // 'language' => 'ru', // 'orderId' => $request->orderId, // 'userName' => 301161000067, // 'password' => 'E3vb2SR3dgTPdff' // ]); // if ($response['depositAmount'] > 0) { // $payment_history = OnlinePaymentHistory::where('orderId', $request->orderId)->first(); // $booking = Booking::where('id', $payment_history->online_paymantable_id)->update([ // 'status' => Settings::PAID // ]); // $payment_history->update([ // 'paymentStatus' => Settings::PAID // ]); // } } }