1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/app/PaymentDrivers/StripePaymentDriver.php

49 lines
952 B
PHP
Raw Normal View History

2019-09-05 09:00:12 +02:00
<?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;
2019-09-05 14:42:26 +02:00
use Stripe\Stripe;
2019-09-05 09:00:12 +02:00
class StripePaymentDriver extends BasePaymentDriver
{
2019-09-05 14:42:26 +02:00
/**
* Methods in this class are divided into
* two separate streams
*
* 1. Omnipay Specific
* 2. Stripe Specific
*
* Our Stripe integration is deeper than
* other gateways and therefore
* relies on direct calls to the API
*/
/************************************** Omnipay API methods **********************************************************/
/************************************** Stripe API methods **********************************************************/
public function init($api_key)
{
Stripe::setApiKey($api_key);
}
2019-09-05 09:00:12 +02:00
}