mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on Payment Drivers
This commit is contained in:
parent
f5e19ece06
commit
03c3cc8702
40
app/PaymentDrivers/BasePaymentDriver.php
Normal file
40
app/PaymentDrivers/BasePaymentDriver.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* Invoice Ninja (https://invoiceninja.com)
|
||||
*
|
||||
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||
*
|
||||
* @copyright Copyright (c) 2019. Invoice Ninja LLC (https://invoiceninja.com)
|
||||
*
|
||||
* @license https://opensource.org/licenses/AAL
|
||||
*/
|
||||
|
||||
namespace App\PaymentDrivers;
|
||||
|
||||
|
||||
/**
|
||||
* Class BasePaymentDriver
|
||||
* @package App\PaymentDrivers
|
||||
*/
|
||||
abstract class BasePaymentDriver
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns whether refunds are possible with the gateway
|
||||
* @return boolean TRUE|FALSE
|
||||
*/
|
||||
public function isRefundable() :bool {}
|
||||
|
||||
/**
|
||||
* Returns whether token billing is possible with the gateway
|
||||
* @return boolean TRUE|FALSE
|
||||
*/
|
||||
public function hasTokenBilling() :bool {}
|
||||
|
||||
/**
|
||||
* Returns the Omnipay driver
|
||||
* @return object Omnipay initialized object
|
||||
*/
|
||||
public function gateway() {}
|
||||
|
||||
}
|
17
app/PaymentDrivers/StripePaymentDriver.php
Normal file
17
app/PaymentDrivers/StripePaymentDriver.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Invoice Ninja (https://invoiceninja.com)
|
||||
*
|
||||
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||
*
|
||||
* @copyright Copyright (c) 2019. Invoice Ninja LLC (https://invoiceninja.com)
|
||||
*
|
||||
* @license https://opensource.org/licenses/AAL
|
||||
*/
|
||||
|
||||
namespace App\PaymentDrivers;
|
||||
|
||||
class StripePaymentDriver extends BasePaymentDriver
|
||||
{
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user