Skip to content

Commit

Permalink
updated integrator
Browse files Browse the repository at this point in the history
  • Loading branch information
BeycanDeveloper committed Mar 11, 2024
1 parent a64fd22 commit 3781f0d
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 27 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
}
},
"require": {
"beycanpress/cryptopay-integrator": "^0.1.7"
"beycanpress/cryptopay-integrator": "^0.1.8"
}
}
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/beycanpress/cryptopay-integrator/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "beycanpress/cryptopay-integrator",
"version": "0.1.7",
"version": "0.1.8",
"description": "CryptoPay and CryptoPay Lite integration wrapper",
"type": "library",
"license": "MIT",
Expand Down
24 changes: 18 additions & 6 deletions vendor/beycanpress/cryptopay-integrator/src/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,26 @@ public static function listenSPP(): void

if ($token && Session::has($token)) {
extract(Session::get($token));

if (!isset($params)) {
$params = [];
}

$args = [
$addon,
(array) $order,
array_merge(
(array) $params,
[
'token' => $token
]
)
];

if (Type::PRO === $type) {
$cryptopay = self::createProPayment($addon, (array) $order, [
'token' => $token
]);
$cryptopay = self::createProPayment(...$args);
} else {
$cryptopay = self::createLitePayment($addon, (array) $order, [
'token' => $token
]);
$cryptopay = self::createLitePayment(...$args);
}
require dirname(__DIR__) . '/views/pay.php';
exit;
Expand Down
14 changes: 7 additions & 7 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
"packages": [
{
"name": "beycanpress/cryptopay-integrator",
"version": "0.1.7",
"version_normalized": "0.1.7.0",
"version": "0.1.8",
"version_normalized": "0.1.8.0",
"source": {
"type": "git",
"url": "https://github.com/BeycanPress/cryptopay-integrator.git",
"reference": "94c4b4a91b304bfbb8a2c430cc5f0c141143a30e"
"reference": "c28bbee3ca84fd1e4ca02f4867f6dadbee0c117d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/BeycanPress/cryptopay-integrator/zipball/94c4b4a91b304bfbb8a2c430cc5f0c141143a30e",
"reference": "94c4b4a91b304bfbb8a2c430cc5f0c141143a30e",
"url": "https://api.github.com/repos/BeycanPress/cryptopay-integrator/zipball/c28bbee3ca84fd1e4ca02f4867f6dadbee0c117d",
"reference": "c28bbee3ca84fd1e4ca02f4867f6dadbee0c117d",
"shasum": ""
},
"require": {
"php": ">=8.1"
},
"time": "2024-03-08T03:17:38+00:00",
"time": "2024-03-11T06:09:27+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand All @@ -34,7 +34,7 @@
"homepage": "https://github.com/BeycanPress/cryptopay-integrator",
"support": {
"issues": "https://github.com/BeycanPress/cryptopay-integrator/issues",
"source": "https://github.com/BeycanPress/cryptopay-integrator/tree/0.1.7"
"source": "https://github.com/BeycanPress/cryptopay-integrator/tree/0.1.8"
},
"install-path": "../beycanpress/cryptopay-integrator"
}
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '93a4ea7cc1832425fe876066fdccc7599cc3ae32',
'reference' => 'a64fd22b962c5b524bb9bb2fe80f7857e3aba1a8',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,16 +13,16 @@
'__root__' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '93a4ea7cc1832425fe876066fdccc7599cc3ae32',
'reference' => 'a64fd22b962c5b524bb9bb2fe80f7857e3aba1a8',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'dev_requirement' => false,
),
'beycanpress/cryptopay-integrator' => array(
'pretty_version' => '0.1.7',
'version' => '0.1.7.0',
'reference' => '94c4b4a91b304bfbb8a2c430cc5f0c141143a30e',
'pretty_version' => '0.1.8',
'version' => '0.1.8.0',
'reference' => 'c28bbee3ca84fd1e4ca02f4867f6dadbee0c117d',
'type' => 'library',
'install_path' => __DIR__ . '/../beycanpress/cryptopay-integrator',
'aliases' => array(),
Expand Down

0 comments on commit 3781f0d

Please sign in to comment.