1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-06 03:02:34 +01:00

Working on gateway payment methods

This commit is contained in:
David Bomba 2020-07-03 10:56:36 +10:00
parent 50f65c998f
commit 8e4e38776b
4 changed files with 251 additions and 195 deletions

View File

@ -385,6 +385,16 @@ class Client extends BaseModel implements HasLocalePreference
return 'USD'; return 'USD';
} }
public function getPaymentMethodByType($amount, $type) :array
{
$gateways = $this->company->company_gateways;
$gateways = $gateways->map(function ($gateway) use($type){
});
}
/** /**
* Generates an array of payment urls per client * Generates an array of payment urls per client
* for a given amount. * for a given amount.
@ -404,14 +414,14 @@ class Client extends BaseModel implements HasLocalePreference
//this method will get all the possible gateways a client can pay with //this method will get all the possible gateways a client can pay with
//but we also need to consider payment methods that are already stored //but we also need to consider payment methods that are already stored
//so we MUST filter the company gateways and remove duplicates. //so we MUST filter the company gateways and remove duplicates.
//
//Also need to harvest the list of client gateway tokens and present these //Also need to harvest the list of client gateway tokens and present these
//for instant payment //for instant payment
$company_gateways = $this->getSetting('company_gateway_ids'); $company_gateways = $this->getSetting('company_gateway_ids');
if ($company_gateways) { if ($company_gateways) {
$gateways = $this->company->company_gateways->whereIn('id', $payment_gateways); $gateways = $this->company->company_gateways->whereIn('id', $payment_gateways); //this will never hit
} else { } else {
$gateways = $this->company->company_gateways; $gateways = $this->company->company_gateways;
} }
@ -434,7 +444,6 @@ class Client extends BaseModel implements HasLocalePreference
} }
} }
$payment_methods_collections = collect($payment_methods); $payment_methods_collections = collect($payment_methods);
//** Plucks the remaining keys into its own collection //** Plucks the remaining keys into its own collection

View File

@ -50,6 +50,10 @@ class CheckoutComPaymentDriver extends BasePaymentDriver
/** Instance of \Checkout\CheckoutApi */ /** Instance of \Checkout\CheckoutApi */
public $gateway; public $gateway;
public static $methods = [
GatewayType::CREDIT_CARD => '',
];
/** Since with Checkout.com we handle only credit cards, this method should be empty. */ /** Since with Checkout.com we handle only credit cards, this method should be empty. */
public function setPaymentMethod($string = null) public function setPaymentMethod($string = null)
{ {

355
composer.lock generated
View File

@ -107,16 +107,16 @@
}, },
{ {
"name": "aws/aws-sdk-php", "name": "aws/aws-sdk-php",
"version": "3.142.4", "version": "3.145.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/aws/aws-sdk-php.git", "url": "https://github.com/aws/aws-sdk-php.git",
"reference": "1d55df0b6490f6a9d6ebfd3a73d297d299ff8802" "reference": "df5406b49f4f5774045e51e8fecc75717c4d6454"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/1d55df0b6490f6a9d6ebfd3a73d297d299ff8802", "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/df5406b49f4f5774045e51e8fecc75717c4d6454",
"reference": "1d55df0b6490f6a9d6ebfd3a73d297d299ff8802", "reference": "df5406b49f4f5774045e51e8fecc75717c4d6454",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -188,7 +188,7 @@
"s3", "s3",
"sdk" "sdk"
], ],
"time": "2020-06-17T18:18:58+00:00" "time": "2020-07-02T18:12:35+00:00"
}, },
{ {
"name": "checkout/checkout-sdk-php", "name": "checkout/checkout-sdk-php",
@ -420,16 +420,16 @@
}, },
{ {
"name": "composer/composer", "name": "composer/composer",
"version": "1.10.7", "version": "1.10.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/composer/composer.git", "url": "https://github.com/composer/composer.git",
"reference": "956608ea4f7de9e58c53dfb019d85ae62b193c39" "reference": "56e0e094478f30935e9128552188355fa9712291"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/composer/composer/zipball/956608ea4f7de9e58c53dfb019d85ae62b193c39", "url": "https://api.github.com/repos/composer/composer/zipball/56e0e094478f30935e9128552188355fa9712291",
"reference": "956608ea4f7de9e58c53dfb019d85ae62b193c39", "reference": "56e0e094478f30935e9128552188355fa9712291",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -448,12 +448,11 @@
"symfony/process": "^2.7 || ^3.0 || ^4.0 || ^5.0" "symfony/process": "^2.7 || ^3.0 || ^4.0 || ^5.0"
}, },
"conflict": { "conflict": {
"symfony/console": "2.8.38", "symfony/console": "2.8.38"
"symfony/phpunit-bridge": "3.4.40"
}, },
"require-dev": { "require-dev": {
"phpspec/prophecy": "^1.10", "phpspec/prophecy": "^1.10",
"symfony/phpunit-bridge": "^3.4" "symfony/phpunit-bridge": "^4.2"
}, },
"suggest": { "suggest": {
"ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages", "ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages",
@ -511,20 +510,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-06-03T08:03:56+00:00" "time": "2020-06-24T19:23:30+00:00"
}, },
{ {
"name": "composer/package-versions-deprecated", "name": "composer/package-versions-deprecated",
"version": "1.8.0", "version": "1.8.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/composer/package-versions-deprecated.git", "url": "https://github.com/composer/package-versions-deprecated.git",
"reference": "98df7f1b293c0550bd5b1ce6b60b59bdda23aa47" "reference": "b9805885293f3957ee0dd42616ac6915c4ac9a4b"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/98df7f1b293c0550bd5b1ce6b60b59bdda23aa47", "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/b9805885293f3957ee0dd42616ac6915c4ac9a4b",
"reference": "98df7f1b293c0550bd5b1ce6b60b59bdda23aa47", "reference": "b9805885293f3957ee0dd42616ac6915c4ac9a4b",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -532,7 +531,7 @@
"php": "^7" "php": "^7"
}, },
"replace": { "replace": {
"ocramius/package-versions": "1.2 - 1.8.99" "ocramius/package-versions": "1.8.99"
}, },
"require-dev": { "require-dev": {
"composer/composer": "^1.9.3 || ^2.0@dev", "composer/composer": "^1.9.3 || ^2.0@dev",
@ -571,12 +570,16 @@
"url": "https://packagist.com", "url": "https://packagist.com",
"type": "custom" "type": "custom"
}, },
{
"url": "https://github.com/composer",
"type": "github"
},
{ {
"url": "https://tidelift.com/funding/github/packagist/composer/composer", "url": "https://tidelift.com/funding/github/packagist/composer/composer",
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-04-23T11:49:37+00:00" "time": "2020-06-19T07:59:31+00:00"
}, },
{ {
"name": "composer/semver", "name": "composer/semver",
@ -759,16 +762,16 @@
}, },
{ {
"name": "czproject/git-php", "name": "czproject/git-php",
"version": "v3.17.1", "version": "v3.18.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/czproject/git-php.git", "url": "https://github.com/czproject/git-php.git",
"reference": "b5e709f0e9c4e4e39b49d4e322f7fa73c1bb21dc" "reference": "ed442216a2f981f894ac6ddb1a2091a826f809e6"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/czproject/git-php/zipball/b5e709f0e9c4e4e39b49d4e322f7fa73c1bb21dc", "url": "https://api.github.com/repos/czproject/git-php/zipball/ed442216a2f981f894ac6ddb1a2091a826f809e6",
"reference": "b5e709f0e9c4e4e39b49d4e322f7fa73c1bb21dc", "reference": "ed442216a2f981f894ac6ddb1a2091a826f809e6",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -797,7 +800,7 @@
"keywords": [ "keywords": [
"git" "git"
], ],
"time": "2019-12-03T02:28:45+00:00" "time": "2020-06-30T14:58:07+00:00"
}, },
{ {
"name": "dacastro4/laravel-gmail", "name": "dacastro4/laravel-gmail",
@ -1514,16 +1517,16 @@
}, },
{ {
"name": "fideloper/proxy", "name": "fideloper/proxy",
"version": "4.3.0", "version": "4.4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/fideloper/TrustedProxy.git", "url": "https://github.com/fideloper/TrustedProxy.git",
"reference": "ec38ad69ee378a1eec04fb0e417a97cfaf7ed11a" "reference": "9beebf48a1c344ed67c1d36bb1b8709db7c3c1a8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/fideloper/TrustedProxy/zipball/ec38ad69ee378a1eec04fb0e417a97cfaf7ed11a", "url": "https://api.github.com/repos/fideloper/TrustedProxy/zipball/9beebf48a1c344ed67c1d36bb1b8709db7c3c1a8",
"reference": "ec38ad69ee378a1eec04fb0e417a97cfaf7ed11a", "reference": "9beebf48a1c344ed67c1d36bb1b8709db7c3c1a8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1564,7 +1567,7 @@
"proxy", "proxy",
"trusted proxy" "trusted proxy"
], ],
"time": "2020-02-22T01:51:47+00:00" "time": "2020-06-23T01:36:47+00:00"
}, },
{ {
"name": "firebase/php-jwt", "name": "firebase/php-jwt",
@ -2283,16 +2286,16 @@
}, },
{ {
"name": "jean85/pretty-package-versions", "name": "jean85/pretty-package-versions",
"version": "1.3.0", "version": "1.5.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Jean85/pretty-package-versions.git", "url": "https://github.com/Jean85/pretty-package-versions.git",
"reference": "e3517fb11b67e798239354fe8213927d012ad8f9" "reference": "e9f4324e88b8664be386d90cf60fbc202e1f7fc9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/e3517fb11b67e798239354fe8213927d012ad8f9", "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/e9f4324e88b8664be386d90cf60fbc202e1f7fc9",
"reference": "e3517fb11b67e798239354fe8213927d012ad8f9", "reference": "e9f4324e88b8664be386d90cf60fbc202e1f7fc9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2330,7 +2333,7 @@
"release", "release",
"versions" "versions"
], ],
"time": "2020-04-24T14:19:45+00:00" "time": "2020-06-23T06:23:06+00:00"
}, },
{ {
"name": "justinrainbow/json-schema", "name": "justinrainbow/json-schema",
@ -2446,16 +2449,16 @@
}, },
{ {
"name": "laravel/framework", "name": "laravel/framework",
"version": "v6.18.20", "version": "v6.18.23",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/framework.git", "url": "https://github.com/laravel/framework.git",
"reference": "2862a9857533853bb2851bac39d65e3bfb8ba6cd" "reference": "c914a3ec0706c6973a39183f8bc45f3d9a099d90"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/2862a9857533853bb2851bac39d65e3bfb8ba6cd", "url": "https://api.github.com/repos/laravel/framework/zipball/c914a3ec0706c6973a39183f8bc45f3d9a099d90",
"reference": "2862a9857533853bb2851bac39d65e3bfb8ba6cd", "reference": "c914a3ec0706c6973a39183f8bc45f3d9a099d90",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2590,24 +2593,24 @@
"framework", "framework",
"laravel" "laravel"
], ],
"time": "2020-06-16T13:21:33+00:00" "time": "2020-06-30T13:52:04+00:00"
}, },
{ {
"name": "laravel/slack-notification-channel", "name": "laravel/slack-notification-channel",
"version": "v2.0.2", "version": "v2.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/slack-notification-channel.git", "url": "https://github.com/laravel/slack-notification-channel.git",
"reference": "ecc90a70791195d6f5e20b2732a5eb1eb9619d10" "reference": "d0a7f53342a5daa74e43e1b08dc8a7e83db152d8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/slack-notification-channel/zipball/ecc90a70791195d6f5e20b2732a5eb1eb9619d10", "url": "https://api.github.com/repos/laravel/slack-notification-channel/zipball/d0a7f53342a5daa74e43e1b08dc8a7e83db152d8",
"reference": "ecc90a70791195d6f5e20b2732a5eb1eb9619d10", "reference": "d0a7f53342a5daa74e43e1b08dc8a7e83db152d8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"guzzlehttp/guzzle": "^6.0", "guzzlehttp/guzzle": "^6.0|^7.0",
"illuminate/notifications": "~5.8.0|^6.0|^7.0", "illuminate/notifications": "~5.8.0|^6.0|^7.0",
"php": "^7.1.3" "php": "^7.1.3"
}, },
@ -2618,7 +2621,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "2.0-dev" "dev-master": "2.x-dev"
}, },
"laravel": { "laravel": {
"providers": [ "providers": [
@ -2647,7 +2650,7 @@
"notifications", "notifications",
"slack" "slack"
], ],
"time": "2019-08-27T14:40:26+00:00" "time": "2020-06-30T20:34:53+00:00"
}, },
{ {
"name": "laravel/socialite", "name": "laravel/socialite",
@ -2779,21 +2782,21 @@
}, },
{ {
"name": "league/commonmark", "name": "league/commonmark",
"version": "1.4.3", "version": "1.5.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/thephpleague/commonmark.git", "url": "https://github.com/thephpleague/commonmark.git",
"reference": "412639f7cfbc0b31ad2455b2fe965095f66ae505" "reference": "6d74caf6abeed5fd85d6ec20da23d7269cd0b46f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/412639f7cfbc0b31ad2455b2fe965095f66ae505", "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/6d74caf6abeed5fd85d6ec20da23d7269cd0b46f",
"reference": "412639f7cfbc0b31ad2455b2fe965095f66ae505", "reference": "6d74caf6abeed5fd85d6ec20da23d7269cd0b46f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-mbstring": "*", "ext-mbstring": "*",
"php": "^7.1" "php": "^7.1 || ^8.0"
}, },
"conflict": { "conflict": {
"scrutinizer/ocular": "1.7.*" "scrutinizer/ocular": "1.7.*"
@ -2815,11 +2818,6 @@
"bin/commonmark" "bin/commonmark"
], ],
"type": "library", "type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.4-dev"
}
},
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"League\\CommonMark\\": "src" "League\\CommonMark\\": "src"
@ -2875,7 +2873,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-05-04T22:15:21+00:00" "time": "2020-06-27T12:50:08+00:00"
}, },
{ {
"name": "league/flysystem", "name": "league/flysystem",
@ -3703,16 +3701,16 @@
}, },
{ {
"name": "nesbot/carbon", "name": "nesbot/carbon",
"version": "2.35.0", "version": "2.36.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/briannesbitt/Carbon.git", "url": "https://github.com/briannesbitt/Carbon.git",
"reference": "4b9bd835261ef23d36397a46a76b496a458305e5" "reference": "d0b65958d9942fd1b501fdb0800c67e8323aa08d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/4b9bd835261ef23d36397a46a76b496a458305e5", "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/d0b65958d9942fd1b501fdb0800c67e8323aa08d",
"reference": "4b9bd835261ef23d36397a46a76b496a458305e5", "reference": "d0b65958d9942fd1b501fdb0800c67e8323aa08d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3724,9 +3722,10 @@
"require-dev": { "require-dev": {
"doctrine/orm": "^2.7", "doctrine/orm": "^2.7",
"friendsofphp/php-cs-fixer": "^2.14 || ^3.0", "friendsofphp/php-cs-fixer": "^2.14 || ^3.0",
"kylekatarnls/multi-tester": "^1.1", "kylekatarnls/multi-tester": "^2.0",
"phpmd/phpmd": "^2.8", "phpmd/phpmd": "^2.8",
"phpstan/phpstan": "^0.11", "phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12.30",
"phpunit/phpunit": "^7.5 || ^8.0", "phpunit/phpunit": "^7.5 || ^8.0",
"squizlabs/php_codesniffer": "^3.4" "squizlabs/php_codesniffer": "^3.4"
}, },
@ -3743,6 +3742,11 @@
"providers": [ "providers": [
"Carbon\\Laravel\\ServiceProvider" "Carbon\\Laravel\\ServiceProvider"
] ]
},
"phpstan": {
"includes": [
"extension.neon"
]
} }
}, },
"autoload": { "autoload": {
@ -3782,20 +3786,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-05-24T18:27:52+00:00" "time": "2020-06-25T20:20:01+00:00"
}, },
{ {
"name": "nikic/php-parser", "name": "nikic/php-parser",
"version": "v4.5.0", "version": "v4.6.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/nikic/PHP-Parser.git", "url": "https://github.com/nikic/PHP-Parser.git",
"reference": "53c2753d756f5adb586dca79c2ec0e2654dd9463" "reference": "c346bbfafe2ff60680258b631afb730d186ed864"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/53c2753d756f5adb586dca79c2ec0e2654dd9463", "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/c346bbfafe2ff60680258b631afb730d186ed864",
"reference": "53c2753d756f5adb586dca79c2ec0e2654dd9463", "reference": "c346bbfafe2ff60680258b631afb730d186ed864",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3834,7 +3838,7 @@
"parser", "parser",
"php" "php"
], ],
"time": "2020-06-03T07:24:19+00:00" "time": "2020-07-02T17:12:47+00:00"
}, },
{ {
"name": "nwidart/laravel-modules", "name": "nwidart/laravel-modules",
@ -4216,16 +4220,16 @@
}, },
{ {
"name": "php-http/client-common", "name": "php-http/client-common",
"version": "2.1.0", "version": "2.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/php-http/client-common.git", "url": "https://github.com/php-http/client-common.git",
"reference": "a8b29678d61556f45d6236b1667db16d998ceec5" "reference": "f3985360f3d054292605e9ec7c4bc24ebcf249bb"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/php-http/client-common/zipball/a8b29678d61556f45d6236b1667db16d998ceec5", "url": "https://api.github.com/repos/php-http/client-common/zipball/f3985360f3d054292605e9ec7c4bc24ebcf249bb",
"reference": "a8b29678d61556f45d6236b1667db16d998ceec5", "reference": "f3985360f3d054292605e9ec7c4bc24ebcf249bb",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4233,13 +4237,19 @@
"php-http/httplug": "^2.0", "php-http/httplug": "^2.0",
"php-http/message": "^1.6", "php-http/message": "^1.6",
"php-http/message-factory": "^1.0", "php-http/message-factory": "^1.0",
"symfony/options-resolver": " ^3.4.20 || ~4.0.15 || ~4.1.9 || ^4.2.1 || ^5.0" "psr/http-client": "^1.0",
"psr/http-factory": "^1.0",
"psr/http-message": "^1.0",
"symfony/options-resolver": "^2.6 || ^3.4.20 || ~4.0.15 || ~4.1.9 || ^4.2.1 || ^5.0",
"symfony/polyfill-php80": "^1.17"
}, },
"require-dev": { "require-dev": {
"doctrine/instantiator": "^1.1", "doctrine/instantiator": "^1.1",
"guzzlehttp/psr7": "^1.4", "guzzlehttp/psr7": "^1.4",
"phpspec/phpspec": "^5.1", "nyholm/psr7": "^1.2",
"phpspec/phpspec": "^5.1 || ^6.0",
"phpspec/prophecy": "^1.8", "phpspec/prophecy": "^1.8",
"phpunit/phpunit": "^7.5",
"sebastian/comparator": "^3.0" "sebastian/comparator": "^3.0"
}, },
"suggest": { "suggest": {
@ -4252,7 +4262,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "2.0.x-dev" "dev-master": "2.2.x-dev"
} }
}, },
"autoload": { "autoload": {
@ -4278,20 +4288,20 @@
"http", "http",
"httplug" "httplug"
], ],
"time": "2019-11-18T08:58:18+00:00" "time": "2020-07-02T06:51:04+00:00"
}, },
{ {
"name": "php-http/discovery", "name": "php-http/discovery",
"version": "1.8.0", "version": "1.9.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/php-http/discovery.git", "url": "https://github.com/php-http/discovery.git",
"reference": "10d9019f393773345aedc0dc79e7fd678da874ee" "reference": "9ab7668fee74a5ad61996095e50917bd50ee8bfe"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/php-http/discovery/zipball/10d9019f393773345aedc0dc79e7fd678da874ee", "url": "https://api.github.com/repos/php-http/discovery/zipball/9ab7668fee74a5ad61996095e50917bd50ee8bfe",
"reference": "10d9019f393773345aedc0dc79e7fd678da874ee", "reference": "9ab7668fee74a5ad61996095e50917bd50ee8bfe",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4314,7 +4324,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.7-dev" "dev-master": "1.9-dev"
} }
}, },
"autoload": { "autoload": {
@ -4343,7 +4353,7 @@
"message", "message",
"psr7" "psr7"
], ],
"time": "2020-06-14T10:44:12+00:00" "time": "2020-07-02T11:43:45+00:00"
}, },
{ {
"name": "php-http/guzzle6-adapter", "name": "php-http/guzzle6-adapter",
@ -4955,20 +4965,20 @@
}, },
{ {
"name": "psr/http-client", "name": "psr/http-client",
"version": "1.0.0", "version": "1.0.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/php-fig/http-client.git", "url": "https://github.com/php-fig/http-client.git",
"reference": "496a823ef742b632934724bf769560c2a5c7c44e" "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/php-fig/http-client/zipball/496a823ef742b632934724bf769560c2a5c7c44e", "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
"reference": "496a823ef742b632934724bf769560c2a5c7c44e", "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.0", "php": "^7.0 || ^8.0",
"psr/http-message": "^1.0" "psr/http-message": "^1.0"
}, },
"type": "library", "type": "library",
@ -5000,7 +5010,7 @@
"psr", "psr",
"psr-18" "psr-18"
], ],
"time": "2018-10-30T23:29:13+00:00" "time": "2020-06-29T06:28:15+00:00"
}, },
{ {
"name": "psr/http-factory", "name": "psr/http-factory",
@ -6083,16 +6093,16 @@
}, },
{ {
"name": "stripe/stripe-php", "name": "stripe/stripe-php",
"version": "v7.37.1", "version": "v7.39.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/stripe/stripe-php.git", "url": "https://github.com/stripe/stripe-php.git",
"reference": "e3e29131a131785c3d2f85556b0154e8170e9bba" "reference": "350e4f4db026bd0627925885b30c09d054777b68"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/stripe/stripe-php/zipball/e3e29131a131785c3d2f85556b0154e8170e9bba", "url": "https://api.github.com/repos/stripe/stripe-php/zipball/350e4f4db026bd0627925885b30c09d054777b68",
"reference": "e3e29131a131785c3d2f85556b0154e8170e9bba", "reference": "350e4f4db026bd0627925885b30c09d054777b68",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -6136,7 +6146,7 @@
"payment processing", "payment processing",
"stripe" "stripe"
], ],
"time": "2020-06-11T16:27:35+00:00" "time": "2020-06-25T23:56:19+00:00"
}, },
{ {
"name": "swiftmailer/swiftmailer", "name": "swiftmailer/swiftmailer",
@ -7152,16 +7162,16 @@
}, },
{ {
"name": "symfony/polyfill-ctype", "name": "symfony/polyfill-ctype",
"version": "v1.17.0", "version": "v1.17.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git", "url": "https://github.com/symfony/polyfill-ctype.git",
"reference": "e94c8b1bbe2bc77507a1056cdb06451c75b427f9" "reference": "2edd75b8b35d62fd3eeabba73b26b8f1f60ce13d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e94c8b1bbe2bc77507a1056cdb06451c75b427f9", "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/2edd75b8b35d62fd3eeabba73b26b8f1f60ce13d",
"reference": "e94c8b1bbe2bc77507a1056cdb06451c75b427f9", "reference": "2edd75b8b35d62fd3eeabba73b26b8f1f60ce13d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7174,6 +7184,10 @@
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.17-dev" "dev-master": "1.17-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -7220,20 +7234,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-05-12T16:14:59+00:00" "time": "2020-06-06T08:46:27+00:00"
}, },
{ {
"name": "symfony/polyfill-iconv", "name": "symfony/polyfill-iconv",
"version": "v1.17.0", "version": "v1.17.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-iconv.git", "url": "https://github.com/symfony/polyfill-iconv.git",
"reference": "c4de7601eefbf25f9d47190abe07f79fe0a27424" "reference": "ba6c9c18db36235b859cc29b8372d1c01298c035"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/c4de7601eefbf25f9d47190abe07f79fe0a27424", "url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/ba6c9c18db36235b859cc29b8372d1c01298c035",
"reference": "c4de7601eefbf25f9d47190abe07f79fe0a27424", "reference": "ba6c9c18db36235b859cc29b8372d1c01298c035",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7246,6 +7260,10 @@
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.17-dev" "dev-master": "1.17-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -7293,20 +7311,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-05-12T16:47:27+00:00" "time": "2020-06-06T08:46:27+00:00"
}, },
{ {
"name": "symfony/polyfill-intl-idn", "name": "symfony/polyfill-intl-idn",
"version": "v1.17.0", "version": "v1.17.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-intl-idn.git", "url": "https://github.com/symfony/polyfill-intl-idn.git",
"reference": "3bff59ea7047e925be6b7f2059d60af31bb46d6a" "reference": "a57f8161502549a742a63c09f0a604997bf47027"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/3bff59ea7047e925be6b7f2059d60af31bb46d6a", "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/a57f8161502549a742a63c09f0a604997bf47027",
"reference": "3bff59ea7047e925be6b7f2059d60af31bb46d6a", "reference": "a57f8161502549a742a63c09f0a604997bf47027",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7321,6 +7339,10 @@
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.17-dev" "dev-master": "1.17-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -7369,20 +7391,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-05-12T16:47:27+00:00" "time": "2020-06-06T08:46:27+00:00"
}, },
{ {
"name": "symfony/polyfill-mbstring", "name": "symfony/polyfill-mbstring",
"version": "v1.17.0", "version": "v1.17.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git", "url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "fa79b11539418b02fc5e1897267673ba2c19419c" "reference": "7110338d81ce1cbc3e273136e4574663627037a7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fa79b11539418b02fc5e1897267673ba2c19419c", "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/7110338d81ce1cbc3e273136e4574663627037a7",
"reference": "fa79b11539418b02fc5e1897267673ba2c19419c", "reference": "7110338d81ce1cbc3e273136e4574663627037a7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7395,6 +7417,10 @@
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.17-dev" "dev-master": "1.17-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -7442,7 +7468,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-05-12T16:47:27+00:00" "time": "2020-06-06T08:46:27+00:00"
}, },
{ {
"name": "symfony/polyfill-php72", "name": "symfony/polyfill-php72",
@ -7515,16 +7541,16 @@
}, },
{ {
"name": "symfony/polyfill-php73", "name": "symfony/polyfill-php73",
"version": "v1.17.0", "version": "v1.17.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-php73.git", "url": "https://github.com/symfony/polyfill-php73.git",
"reference": "a760d8964ff79ab9bf057613a5808284ec852ccc" "reference": "fa0837fe02d617d31fbb25f990655861bb27bd1a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/a760d8964ff79ab9bf057613a5808284ec852ccc", "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fa0837fe02d617d31fbb25f990655861bb27bd1a",
"reference": "a760d8964ff79ab9bf057613a5808284ec852ccc", "reference": "fa0837fe02d617d31fbb25f990655861bb27bd1a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7534,6 +7560,10 @@
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.17-dev" "dev-master": "1.17-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -7583,20 +7613,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-05-12T16:47:27+00:00" "time": "2020-06-06T08:46:27+00:00"
}, },
{ {
"name": "symfony/polyfill-php80", "name": "symfony/polyfill-php80",
"version": "v1.17.0", "version": "v1.17.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-php80.git", "url": "https://github.com/symfony/polyfill-php80.git",
"reference": "5e30b2799bc1ad68f7feb62b60a73743589438dd" "reference": "4a5b6bba3259902e386eb80dd1956181ee90b5b2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/5e30b2799bc1ad68f7feb62b60a73743589438dd", "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/4a5b6bba3259902e386eb80dd1956181ee90b5b2",
"reference": "5e30b2799bc1ad68f7feb62b60a73743589438dd", "reference": "4a5b6bba3259902e386eb80dd1956181ee90b5b2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7606,6 +7636,10 @@
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.17-dev" "dev-master": "1.17-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -7659,20 +7693,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-05-12T16:47:27+00:00" "time": "2020-06-06T08:46:27+00:00"
}, },
{ {
"name": "symfony/polyfill-uuid", "name": "symfony/polyfill-uuid",
"version": "v1.17.0", "version": "v1.17.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-uuid.git", "url": "https://github.com/symfony/polyfill-uuid.git",
"reference": "6dbf0269e8aeab8253a5059c51c1760fb4034e87" "reference": "5db3e66818f1f768b585220438436ea6c1e0b874"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/6dbf0269e8aeab8253a5059c51c1760fb4034e87", "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/5db3e66818f1f768b585220438436ea6c1e0b874",
"reference": "6dbf0269e8aeab8253a5059c51c1760fb4034e87", "reference": "5db3e66818f1f768b585220438436ea6c1e0b874",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7686,6 +7720,10 @@
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.17-dev" "dev-master": "1.17-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -7732,7 +7770,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-05-12T16:47:27+00:00" "time": "2020-06-06T08:46:27+00:00"
}, },
{ {
"name": "symfony/process", "name": "symfony/process",
@ -9289,20 +9327,20 @@
}, },
{ {
"name": "myclabs/deep-copy", "name": "myclabs/deep-copy",
"version": "1.9.5", "version": "1.10.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/myclabs/DeepCopy.git", "url": "https://github.com/myclabs/DeepCopy.git",
"reference": "b2c28789e80a97badd14145fda39b545d83ca3ef" "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/b2c28789e80a97badd14145fda39b545d83ca3ef", "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/969b211f9a51aa1f6c01d1d2aef56d3bd91598e5",
"reference": "b2c28789e80a97badd14145fda39b545d83ca3ef", "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.1" "php": "^7.1 || ^8.0"
}, },
"replace": { "replace": {
"myclabs/deep-copy": "self.version" "myclabs/deep-copy": "self.version"
@ -9333,7 +9371,13 @@
"object", "object",
"object graph" "object graph"
], ],
"time": "2020-01-17T21:11:47+00:00" "funding": [
{
"url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
"type": "tidelift"
}
],
"time": "2020-06-29T13:22:24+00:00"
}, },
{ {
"name": "nunomaduro/collision", "name": "nunomaduro/collision",
@ -9568,25 +9612,25 @@
}, },
{ {
"name": "phpdocumentor/reflection-common", "name": "phpdocumentor/reflection-common",
"version": "2.1.0", "version": "2.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpDocumentor/ReflectionCommon.git", "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
"reference": "6568f4687e5b41b054365f9ae03fcb1ed5f2069b" "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/6568f4687e5b41b054365f9ae03fcb1ed5f2069b", "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b",
"reference": "6568f4687e5b41b054365f9ae03fcb1ed5f2069b", "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.1" "php": "^7.2 || ^8.0"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "2.x-dev" "dev-2.x": "2.x-dev"
} }
}, },
"autoload": { "autoload": {
@ -9613,7 +9657,7 @@
"reflection", "reflection",
"static analysis" "static analysis"
], ],
"time": "2020-04-27T09:25:28+00:00" "time": "2020-06-27T09:03:43+00:00"
}, },
{ {
"name": "phpdocumentor/reflection-docblock", "name": "phpdocumentor/reflection-docblock",
@ -9670,30 +9714,29 @@
}, },
{ {
"name": "phpdocumentor/type-resolver", "name": "phpdocumentor/type-resolver",
"version": "1.1.0", "version": "1.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpDocumentor/TypeResolver.git", "url": "https://github.com/phpDocumentor/TypeResolver.git",
"reference": "7462d5f123dfc080dfdf26897032a6513644fc95" "reference": "e878a14a65245fbe78f8080eba03b47c3b705651"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/7462d5f123dfc080dfdf26897032a6513644fc95", "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/e878a14a65245fbe78f8080eba03b47c3b705651",
"reference": "7462d5f123dfc080dfdf26897032a6513644fc95", "reference": "e878a14a65245fbe78f8080eba03b47c3b705651",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.2", "php": "^7.2 || ^8.0",
"phpdocumentor/reflection-common": "^2.0" "phpdocumentor/reflection-common": "^2.0"
}, },
"require-dev": { "require-dev": {
"ext-tokenizer": "^7.2", "ext-tokenizer": "*"
"mockery/mockery": "~1"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.x-dev" "dev-1.x": "1.x-dev"
} }
}, },
"autoload": { "autoload": {
@ -9712,7 +9755,7 @@
} }
], ],
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
"time": "2020-02-18T18:59:58+00:00" "time": "2020-06-27T10:12:23+00:00"
}, },
{ {
"name": "phpspec/prophecy", "name": "phpspec/prophecy",
@ -10681,16 +10724,16 @@
}, },
{ {
"name": "swagger-api/swagger-ui", "name": "swagger-api/swagger-ui",
"version": "v3.26.2", "version": "v3.28.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/swagger-api/swagger-ui.git", "url": "https://github.com/swagger-api/swagger-ui.git",
"reference": "ae33deeaab47129844b89192d35762abf5cf80fb" "reference": "3cef22736827b933b0f116e33847a47f7724bd16"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/swagger-api/swagger-ui/zipball/ae33deeaab47129844b89192d35762abf5cf80fb", "url": "https://api.github.com/repos/swagger-api/swagger-ui/zipball/3cef22736827b933b0f116e33847a47f7724bd16",
"reference": "ae33deeaab47129844b89192d35762abf5cf80fb", "reference": "3cef22736827b933b0f116e33847a47f7724bd16",
"shasum": "" "shasum": ""
}, },
"type": "library", "type": "library",
@ -10734,7 +10777,7 @@
"swagger", "swagger",
"ui" "ui"
], ],
"time": "2020-06-12T13:09:03+00:00" "time": "2020-06-29T12:43:36+00:00"
}, },
{ {
"name": "symfony/yaml", "name": "symfony/yaml",

View File

@ -319,44 +319,44 @@ class RandomDataSeeder extends Seeder
$cg->save(); $cg->save();
} }
// if (config('ninja.testvars.paypal')) { if (config('ninja.testvars.paypal')) {
// $cg = new CompanyGateway; $cg = new CompanyGateway;
// $cg->company_id = $company->id; $cg->company_id = $company->id;
// $cg->user_id = $user->id; $cg->user_id = $user->id;
// $cg->gateway_key = '38f2c48af60c7dd69e04248cbb24c36e'; $cg->gateway_key = '38f2c48af60c7dd69e04248cbb24c36e';
// $cg->require_cvv = true; $cg->require_cvv = true;
// $cg->show_billing_address = true; $cg->show_billing_address = true;
// $cg->show_shipping_address = true; $cg->show_shipping_address = true;
// $cg->update_details = true; $cg->update_details = true;
// $cg->config = encrypt(config('ninja.testvars.paypal')); $cg->config = encrypt(config('ninja.testvars.paypal'));
// $cg->save(); $cg->save();
// } }
// if(config('ninja.testvars.checkout')) { if(config('ninja.testvars.checkout')) {
// $cg = new CompanyGateway; $cg = new CompanyGateway;
// $cg->company_id = $company->id; $cg->company_id = $company->id;
// $cg->user_id = $user->id; $cg->user_id = $user->id;
// $cg->gateway_key = '3758e7f7c6f4cecf0f4f348b9a00f456'; $cg->gateway_key = '3758e7f7c6f4cecf0f4f348b9a00f456';
// $cg->require_cvv = true; $cg->require_cvv = true;
// $cg->show_billing_address = true; $cg->show_billing_address = true;
// $cg->show_shipping_address = true; $cg->show_shipping_address = true;
// $cg->update_details = true; $cg->update_details = true;
// $cg->config = encrypt(config('ninja.testvars.checkout')); $cg->config = encrypt(config('ninja.testvars.checkout'));
// $cg->save(); $cg->save();
// } }
// if(config('ninja.testvars.authorize')) { if(config('ninja.testvars.authorize')) {
// $cg = new CompanyGateway; $cg = new CompanyGateway;
// $cg->company_id = $company->id; $cg->company_id = $company->id;
// $cg->user_id = $user->id; $cg->user_id = $user->id;
// $cg->gateway_key = '3b6621f970ab18887c4f6dca78d3f8bb'; $cg->gateway_key = '3b6621f970ab18887c4f6dca78d3f8bb';
// $cg->require_cvv = true; $cg->require_cvv = true;
// $cg->show_billing_address = true; $cg->show_billing_address = true;
// $cg->show_shipping_address = true; $cg->show_shipping_address = true;
// $cg->update_details = true; $cg->update_details = true;
// $cg->config = encrypt(config('ninja.testvars.authorize')); $cg->config = encrypt(config('ninja.testvars.authorize'));
// $cg->save(); $cg->save();
// } }
} }
} }