Skip to content

Commit

Permalink
response body
Browse files Browse the repository at this point in the history
  • Loading branch information
amowogbaje committed Aug 6, 2024
1 parent 070bfd6 commit 5c82990
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/Http/Controllers/Api/V1/PaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 5c82990

Please sign in to comment.