From bbf6f92408d9737beb4465415a18d7c1a12d7c08 Mon Sep 17 00:00:00 2001 From: Halil Beycan <50718965+BeycanDeveloper@users.noreply.github.com> Date: Fri, 22 Mar 2024 21:29:38 +0800 Subject: [PATCH] updated integrator --- composer.json | 2 +- composer.lock | 14 ++++---- memberdash-cryptopay-gateway.php | 16 ++------- vendor/autoload.php | 2 +- .../cryptopay-integrator/composer.json | 2 +- .../cryptopay-integrator/phpcs.xml | 4 +++ .../cryptopay-integrator/src/Helpers.php | 35 +++++++++++++++++++ .../cryptopay-integrator/src/Session.php | 4 ++- .../cryptopay-integrator/views/message-1.php | 19 ++++++++++ .../cryptopay-integrator/views/message-2.php | 16 +++++++++ .../cryptopay-integrator/views/pay.php | 23 ++++++++++++ vendor/composer/autoload_real.php | 8 ++--- vendor/composer/autoload_static.php | 8 ++--- vendor/composer/installed.json | 14 ++++---- vendor/composer/installed.php | 10 +++--- .../MS_Gateway_CryptoPay_Lite_View_Button.php | 3 +- views/MS_Gateway_CryptoPay_View_Button.php | 3 +- 17 files changed, 134 insertions(+), 49 deletions(-) create mode 100644 vendor/beycanpress/cryptopay-integrator/views/message-1.php create mode 100644 vendor/beycanpress/cryptopay-integrator/views/message-2.php diff --git a/composer.json b/composer.json index 887f041..b3a9aa3 100644 --- a/composer.json +++ b/composer.json @@ -10,6 +10,6 @@ } }, "require": { - "beycanpress/cryptopay-integrator": "^0.1.8" + "beycanpress/cryptopay-integrator": "^0.1.10" } } diff --git a/composer.lock b/composer.lock index 6965f1c..9a21c57 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0b588e2e3118b6a111006bb6d905d6b6", + "content-hash": "d790c17a0fbe6d9c27793420cf646a1f", "packages": [ { "name": "beycanpress/cryptopay-integrator", - "version": "0.1.8", + "version": "0.1.10", "source": { "type": "git", "url": "https://github.com/BeycanPress/cryptopay-integrator.git", - "reference": "c28bbee3ca84fd1e4ca02f4867f6dadbee0c117d" + "reference": "6ac799ad5b3c9b952ee77d4d974162f525ff0f2a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/BeycanPress/cryptopay-integrator/zipball/c28bbee3ca84fd1e4ca02f4867f6dadbee0c117d", - "reference": "c28bbee3ca84fd1e4ca02f4867f6dadbee0c117d", + "url": "https://api.github.com/repos/BeycanPress/cryptopay-integrator/zipball/6ac799ad5b3c9b952ee77d4d974162f525ff0f2a", + "reference": "6ac799ad5b3c9b952ee77d4d974162f525ff0f2a", "shasum": "" }, "require": { @@ -37,9 +37,9 @@ "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.8" + "source": "https://github.com/BeycanPress/cryptopay-integrator/tree/0.1.10" }, - "time": "2024-03-11T06:09:27+00:00" + "time": "2024-03-22T11:55:55+00:00" } ], "packages-dev": [], diff --git a/memberdash-cryptopay-gateway.php b/memberdash-cryptopay-gateway.php index 6eb001c..3326485 100644 --- a/memberdash-cryptopay-gateway.php +++ b/memberdash-cryptopay-gateway.php @@ -53,25 +53,13 @@ function memberdash_cryptopay_addModels(): void load_plugin_textdomain('md-cryptopay', false, basename(__DIR__) . '/languages'); if (!defined('MEMBERDASH_VERSION')) { - add_action('admin_notices', function (): void { - ?> -
' . esc_html__('clicking here', 'md-cryptopay') . ''); ?>
-' . esc_html__('clicking here', 'md-cryptopay') . ''); ?>
-+ ' . esc_html__('clicking here', 'cryptopay') . '', + $pluginLink + ) + ) + ), + ['a' => ['href' => [], 'target' => []]] + ); ?> +
++ ' . esc_html__('clicking here', 'cryptopay') . '', + esc_html($currentPlugin) + ) + ), + ['a' => ['href' => [], 'target' => []]] + ); ?> +
+