mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fix composer.lock file
This commit is contained in:
parent
76d320e079
commit
91f4c0ecd8
@ -1,109 +0,0 @@
|
||||
<?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\Events\Payment\PaymentWasCreated;
|
||||
use App\Factory\PaymentFactory;
|
||||
use App\Jobs\Mail\PaymentFailureMailer;
|
||||
use App\Jobs\Util\SystemLogger;
|
||||
use App\Models\ClientGatewayToken;
|
||||
use App\Models\GatewayType;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\Payment;
|
||||
use App\Models\PaymentType;
|
||||
use App\Models\SystemLog;
|
||||
use App\PaymentDrivers\Stripe\Utilities;
|
||||
use App\Utils\Traits\MakesHash;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Stripe\PaymentIntent;
|
||||
use Stripe\SetupIntent;
|
||||
use Stripe\Stripe;
|
||||
|
||||
class AuthorizeNetAIMPaymentDriver extends BasePaymentDriver
|
||||
{
|
||||
use MakesHash;
|
||||
|
||||
protected $refundable = true;
|
||||
|
||||
protected $token_billing = true;
|
||||
|
||||
protected $can_authorise_credit_card = true;
|
||||
|
||||
protected $transactionReferenceParam = 'refId';
|
||||
|
||||
/**
|
||||
* Returns the gateway types
|
||||
*/
|
||||
public function gatewayTypes() :array
|
||||
{
|
||||
$types = [
|
||||
GatewayType::CREDIT_CARD,
|
||||
];
|
||||
|
||||
return $types;
|
||||
}
|
||||
|
||||
public function viewForType($gateway_type_id)
|
||||
{
|
||||
switch ($gateway_type_id) {
|
||||
case GatewayType::CREDIT_CARD:
|
||||
case GatewayType::TOKEN:
|
||||
return 'gateways.authorize.credit_card';
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public function getLoginId()
|
||||
{
|
||||
return $this->company_gateway->getConfigField('apiLoginId');
|
||||
}
|
||||
|
||||
public function getTransactionKey()
|
||||
{
|
||||
return $this->company_gateway->getConfigField('transactionKey');
|
||||
}
|
||||
|
||||
public function authorizeView(array $data)
|
||||
{
|
||||
$data['gateway'] = $this->gateway;
|
||||
|
||||
return render('gateways.authorize.add_credit_card', $data);
|
||||
}
|
||||
|
||||
public function authorizeCreditCardResponse($request)
|
||||
{
|
||||
|
||||
$request = $gateway->authorize(
|
||||
[
|
||||
'amount' => 0,
|
||||
'opaqueDataDescriptor' => $request->input('dataDescriptor'),
|
||||
'opaqueDataValue' => $request->input('dataValue'),
|
||||
]
|
||||
);
|
||||
|
||||
$response = $request->send();
|
||||
$data = $response->getData();
|
||||
|
||||
info($data);
|
||||
|
||||
$data['paymentProfile']['customerProfileId'];
|
||||
$data['paymentProfile']['customerPaymentProfileId'];
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -21,7 +21,6 @@
|
||||
"php": ">=7.3",
|
||||
"ext-json": "*",
|
||||
"asgrim/ofxparser": "^1.2",
|
||||
"authorizenet/authorizenet": "^2.0",
|
||||
"beganovich/omnipay-checkout": "dev-master",
|
||||
"cleverit/ubl_invoice": "^1.3",
|
||||
"composer/composer": "^1.10",
|
||||
|
45
composer.lock
generated
45
composer.lock
generated
@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "71160af87b4347c05f90402c2790540e",
|
||||
"content-hash": "723f03b92457a3f3410083e2b42f96c3",
|
||||
"packages": [
|
||||
{
|
||||
"name": "asgrim/ofxparser",
|
||||
@ -62,49 +62,6 @@
|
||||
],
|
||||
"time": "2018-10-29T10:10:13+00:00"
|
||||
},
|
||||
{
|
||||
"name": "authorizenet/authorizenet",
|
||||
"version": "2.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/AuthorizeNet/sdk-php.git",
|
||||
"reference": "7fa78e6397d363296e462c3b348573c17175b7a8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/AuthorizeNet/sdk-php/zipball/7fa78e6397d363296e462c3b348573c17175b7a8",
|
||||
"reference": "7fa78e6397d363296e462c3b348573c17175b7a8",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-curl": "*",
|
||||
"ext-json": "*",
|
||||
"php": ">=5.6"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpmd/phpmd": "~2.0",
|
||||
"phpunit/phpunit": "~4.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"lib"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"proprietary"
|
||||
],
|
||||
"description": "Official PHP SDK for Authorize.Net",
|
||||
"homepage": "http://developer.authorize.net",
|
||||
"keywords": [
|
||||
"authorize.net",
|
||||
"authorizenet",
|
||||
"ecommerce",
|
||||
"payment"
|
||||
],
|
||||
"time": "2019-01-14T13:32:41+00:00"
|
||||
},
|
||||
{
|
||||
"name": "aws/aws-sdk-php",
|
||||
"version": "3.140.4",
|
||||
|
Loading…
x
Reference in New Issue
Block a user