mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 07:02:34 +01:00
27 lines
692 B
PHP
27 lines
692 B
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://opensource.org/licenses/AAL
|
|
*/
|
|
|
|
namespace App\PaymentDrivers;
|
|
|
|
use App\Models\Payment;
|
|
|
|
abstract class AbstractPaymentDriver
|
|
{
|
|
|
|
abstract public function authorize($payment_method);
|
|
|
|
abstract public function purchase($amount, $return_client_response = false);
|
|
|
|
abstract public function refund(Payment $payment, $refund_amount, $return_client_response = false);
|
|
|
|
abstract public function setPaymentMethod($payment_method_id);
|
|
|
|
} |