1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-18 00:53:10 +01:00
invoiceninja/app/PaymentDrivers/AbstractPaymentDriver.php

35 lines
985 B
PHP
Raw Normal View History

2020-06-09 13:17:26 +02:00
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
2020-06-09 13:17:26 +02:00
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
2020-06-09 13:17:26 +02:00
*
* @license https://opensource.org/licenses/AAL
*/
namespace App\PaymentDrivers;
2020-11-25 22:07:09 +01:00
use App\Models\ClientGatewayToken;
2020-06-24 07:20:33 +02:00
use App\Models\Payment;
2020-11-25 22:07:09 +01:00
use App\Models\PaymentHash;
use Illuminate\Http\Request;
2020-06-24 07:20:33 +02:00
2020-06-09 13:17:26 +02:00
abstract class AbstractPaymentDriver
{
2020-11-25 22:07:09 +01:00
abstract public function authorizeView(array $data);
2020-11-25 22:07:09 +01:00
abstract public function authorizeResponse(Request $request);
abstract public function processPaymentView(array $data);
abstract public function processPaymentResponse(Request $request);
2020-06-24 07:20:33 +02:00
abstract public function refund(Payment $payment, $refund_amount, $return_client_response = false);
2020-06-09 13:17:26 +02:00
2020-11-25 22:07:09 +01:00
abstract public function tokenBilling(ClientGatewayToken $cgt, PaymentHash $payment_hash);
abstract public function setPaymentMethod($payment_method_id);
}