mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-30 22:37:29 -04:00 
			
		
		
		
	* Fix whereClientId when starting payment * Refunding using Paypal * Refunding engine * Cleanup and making refund method work * Remove "refund" method from BasePaymentController * Add "refund" to PaypalExpressPaymentDriver * Extract refunding into own classes * Apply php-cs-fixer to PaypalExpress * Refunding with stripe
		
			
				
	
	
		
			32 lines
		
	
	
		
			529 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			529 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Exceptions;
 | |
| 
 | |
| use Exception;
 | |
| 
 | |
| class PaymentRefundFailed extends Exception
 | |
| { 
 | |
|     /**
 | |
|     * Report the exception.
 | |
|     *
 | |
|     * @return void
 | |
|     */
 | |
|    public function report()
 | |
|    {
 | |
|        //
 | |
|    }
 | |
| 
 | |
|    /**
 | |
|     * Render the exception into an HTTP response.
 | |
|     *
 | |
|     * @param  \Illuminate\Http\Request  $request
 | |
|     * @return \Illuminate\Http\Response
 | |
|     */
 | |
|    public function render($request)
 | |
|    {
 | |
|        return response()->json([
 | |
|            'message' => 'Unable to refund the transaction'
 | |
|        ], 401);
 | |
|    }
 | |
| }
 |