1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/app/PaymentDrivers/AbstractPaymentDriver.php

35 lines
998 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
*
2022-04-27 05:20:41 +02:00
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
2020-06-09 13:17:26 +02:00
*
2021-06-16 08:58:16 +02:00
* @license https://www.elastic.co/licensing/elastic-license
2020-06-09 13:17:26 +02:00
*/
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);
}