mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 12:37:32 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * Invoice Ninja (https://invoiceninja.com).
 | |
|  *
 | |
|  * @link https://github.com/invoiceninja/invoiceninja source repository
 | |
|  *
 | |
|  * @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
 | |
|  *
 | |
|  * @license https://www.elastic.co/licensing/elastic-license
 | |
|  */
 | |
| 
 | |
| namespace App\PaymentDrivers\Common;
 | |
| 
 | |
| use App\Http\Requests\ClientPortal\Payments\PaymentResponseRequest;
 | |
| use Illuminate\Http\Request;
 | |
| 
 | |
| interface MethodInterface
 | |
| {
 | |
|     /**
 | |
|      * Authorization page for the gateway method.
 | |
|      *
 | |
|      * @param array $data
 | |
|      */
 | |
|     public function authorizeView(array $data);
 | |
| 
 | |
|     /**
 | |
|      * Process the response from the authorization page.
 | |
|      *
 | |
|      * @param Request $request
 | |
|      */
 | |
|     public function authorizeResponse(Request $request);
 | |
| 
 | |
|     /**
 | |
|      * Payment page for the gateway method.
 | |
|      *
 | |
|      * @param array $data
 | |
|      */
 | |
|     public function paymentView(array $data);
 | |
| 
 | |
|     /**
 | |
|      * Process the response from the payments page.
 | |
|      *
 | |
|      * @param PaymentResponseRequest $request
 | |
|      */
 | |
|     public function paymentResponse(PaymentResponseRequest $request);
 | |
| }
 |