Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.2.0 #15

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion app/Settings/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ public function __construct()
],
'default' => 'network',
'desc' => esc_html__('You can choose the mode you want to use in the payment process. If you choose the network mode, the user will first choose the network and then the currency and then the wallet. If you choose the currency mode, the user will first choose the currency and then the wallet.', 'cryptopay_lite')
],
[
'id' => 'wcProjectId',
'title' => esc_html__('WalletConnect Project ID', 'cryptopay'),
'type' => 'text',
'desc' => esc_html__('WalletConnect Project ID is required for WalletConnect, which are used to connect to mobile wallets on many networks. If you do not have a WalletConnect Project ID, WalletConnect will not work. You can get your project ID by registering for WalletConnect Cloud at the link below.', 'cryptopay')
. CP_BR2 .
Helpers::view('components/link', [
'text' => esc_html__('WalletConnect Cloud', 'cryptopay'),
'url' => 'https://cloud.walletconnect.com/sign-in'
])
,
]
]
]);
Expand Down Expand Up @@ -201,7 +213,7 @@ public function __construct()
'type' => 'content',
'title' => esc_html__('Converter API', 'cryptopay_lite'),
'content' => $proMsg . esc_html__('You can choose the API you want to use for the currency converter.', 'cryptopay_lite'),
],
]
]
]);

Expand Down
9 changes: 8 additions & 1 deletion app/Types/Data/ConfigDataType.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ class ConfigDataType extends AbstractType
*/
private string $version;

/**
* CryptoPay version code
* @var string
*/
private string $wcProjectId;

#String types

#Class types
Expand Down Expand Up @@ -145,6 +151,7 @@ public function __construct(string $addon)
$this->lang = Constants::getLangParams();
$this->imagesUrl = Constants::getImagesUrl();
$this->version = Helpers::getProp('pluginVersion');
$this->wcProjectId = Helpers::getSetting('wcProjectId');
$this->createTransaction = boolval(Helpers::getModelByAddon($addon));

$this->testnet = Helpers::getTestnetStatus();
Expand Down Expand Up @@ -180,7 +187,7 @@ private function getWalletImages(): object

array_map(function ($wallet) use (&$walletImages, $pluginUrl): void {
$walletImages[$wallet] = $pluginUrl . 'assets/images/wallets/' . $wallet . '.png';
}, ["metamask","trustwallet","bitget","okx","xdefi", "binancewallet"]);
}, ["metamask","trustwallet","bitget","okx","xdefi", "walletconnect"]);

return (object) $walletImages;
}
Expand Down
57 changes: 29 additions & 28 deletions assets/js/app.min.js

Large diffs are not rendered by default.

336 changes: 168 additions & 168 deletions assets/js/evm-chains-provider.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions cryptopay-wc-lite.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

/**
* Plugin Name: CryptoPay Lite
* Version: 2.1.6
* Version: 2.2.0
* Plugin URI: https://beycanpress.com/cryptopay/
* Description: All In One Cryptocurrency Payments for WordPress
* Author: BeycanPress LLC
Expand All @@ -22,7 +22,7 @@
* Domain Path: /languages
* Tags: Cryptopay, Cryptocurrency, WooCommerce, WordPress, MetaMask, Trust, Binance, Wallet, Ethereum, Bitcoin, Binance smart chain, Payment, Plugin, Gateway
* Requires at least: 5.0
* Tested up to: 6.5.2
* Tested up to: 6.5.3
* Requires PHP: 8.1
*/

Expand Down
12 changes: 9 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
Contributors: BeycanPress
Tags: WooCommerce, Cryptocurrency, Payment, Gateway, Bitcoin
Requires at least: 5.0
Tested up to: 6.5.2
Tested up to: 6.5.3
Requires PHP: 8.1
Stable Tag: 2.1.6
Version: 2.1.6
Stable Tag: 2.2.0
Version: 2.2.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -162,6 +162,12 @@ See: **<a href="https://beycanpress.gitbook.io/cryptopay-docs/installation" targ
=Can I use cryptocurrency payments for WooCommerce?=
Yes, our plugin comes with WooCommerce crypto payment gateway support by default. In this way, you can easily accept crypto payments in WooCommerce.

== Changelog ==
= 2.2.0 =
* Added: WalletConnect support for mobile devices
* Fixed: MetaMask connection problem with last update
* Removed: BNB Chain Wallet (merged with TrustWallet)

== Changelog ==
= 2.1.6 =
* Added: Block confirmation count setting
Expand Down
Loading