1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 13:42:49 +01:00
invoiceninja/app/PaymentDrivers/Common/MethodInterface.php

47 lines
1.1 KiB
PHP
Raw Normal View History

<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
2023-01-28 23:21:40 +01:00
* @copyright Copyright (c) 2023. 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;
2021-10-26 16:19:58 +02:00
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);
2021-08-26 15:46:17 +02:00
/**
* 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);
}