diff --git a/app/Http/Controllers/Api/V1/PaymentController.php b/app/Http/Controllers/Api/V1/PaymentController.php index 4b842faf..8f23dfb1 100644 --- a/app/Http/Controllers/Api/V1/PaymentController.php +++ b/app/Http/Controllers/Api/V1/PaymentController.php @@ -90,8 +90,8 @@ public function initiatePaymentForPayStack(Request $request) } catch (\Exception $e) { return response()->json([ 'status' => 500, - // 'message' => 'An unexpected error occurred. Please try again later.' - 'message' => 'Payment Initialization Failed: ' . $e->getMessage() + 'message' => 'An unexpected error occurred. Please try again later.' + // 'message' => 'Payment Initialization Failed: ' . $e->getMessage() ], 500); } } @@ -205,7 +205,8 @@ public function initiatePaymentForFlutterWave(Request $request) } catch (\Exception $e) { return response()->json([ 'status' => 500, - 'message' => 'Payment Initialization Failed: ' . $e->getMessage() + 'message' => 'An unexpected error occurred. Please try again later.' + // 'message' => 'Payment Initialization Failed: ' . $e->getMessage() ], 500); } }