1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00
invoiceninja/app/PaymentDrivers/StripeConnectPaymentDriver.php

53 lines
1.4 KiB
PHP
Raw Normal View History

2021-04-12 12:11:08 +02:00
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @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)
2021-04-12 12:11:08 +02:00
*
2021-06-16 08:58:16 +02:00
* @license https://www.elastic.co/licensing/elastic-license
2021-04-12 12:11:08 +02:00
*/
namespace App\PaymentDrivers;
use App\Factory\PaymentFactory;
use App\Http\Requests\Payments\PaymentWebhookRequest;
use App\Http\Requests\Request;
use App\Jobs\Util\SystemLogger;
2021-05-11 13:19:44 +02:00
use App\Models\Client;
2021-04-12 12:11:08 +02:00
use App\Models\ClientGatewayToken;
2021-05-11 13:04:32 +02:00
use App\Models\CompanyGateway;
2021-04-12 12:11:08 +02:00
use App\Models\GatewayType;
use App\Models\Payment;
use App\Models\PaymentHash;
use App\Models\SystemLog;
use App\PaymentDrivers\Stripe\ACH;
use App\PaymentDrivers\Stripe\Alipay;
use App\PaymentDrivers\Stripe\Charge;
use App\PaymentDrivers\Stripe\CreditCard;
2021-10-04 17:34:21 +02:00
use App\PaymentDrivers\Stripe\SEPA;
use App\PaymentDrivers\Stripe\SOFORT;
2021-04-12 12:11:08 +02:00
use App\PaymentDrivers\Stripe\Utilities;
use App\Utils\Traits\MakesHash;
use Exception;
use Illuminate\Support\Carbon;
use Stripe\Customer;
use Stripe\Exception\ApiErrorException;
use Stripe\PaymentIntent;
use Stripe\PaymentMethod;
use Stripe\SetupIntent;
use Stripe\Stripe;
use Stripe\StripeClient;
2021-04-20 13:30:52 +02:00
class StripeConnectPaymentDriver extends StripePaymentDriver
2021-04-12 12:11:08 +02:00
{
2021-04-20 13:30:52 +02:00
public function __construct(CompanyGateway $company_gateway, Client $client = null, $invitation = false)
2021-04-12 12:11:08 +02:00
{
2021-04-20 13:30:52 +02:00
parent::__construct($company_gateway, $client, $invitation);
2021-04-12 12:11:08 +02:00
2021-04-20 13:30:52 +02:00
$this->stripe_connect = true;
2021-04-12 12:11:08 +02:00
}
}