mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 10:27:33 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			572 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			572 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Exceptions;
 | |
| 
 | |
| use Exception;
 | |
| use Illuminate\Http\Request;
 | |
| use Illuminate\Http\Response;
 | |
| 
 | |
| class PaymentRefundFailed extends Exception
 | |
| {
 | |
|     /**
 | |
|      * Report the exception.
 | |
|      *
 | |
|      * @return void
 | |
|      */
 | |
|     public function report()
 | |
|     {
 | |
|         //
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Render the exception into an HTTP response.
 | |
|      *
 | |
|      * @param  Request  $request
 | |
|      * @return Response
 | |
|      */
 | |
|     public function render($request)
 | |
|     {
 | |
|         return response()->json([
 | |
|            'message' => 'Unable to refund the transaction',
 | |
|        ], 401);
 | |
|     }
 | |
| }
 |