Skip to content

Commit

Permalink
Merge pull request #17 from BeycanPress/alpha
Browse files Browse the repository at this point in the history
fixed undefined constant problem
  • Loading branch information
BeycanDeveloper authored May 31, 2024
2 parents 1e5bf80 + 00e5f7a commit 5148e0a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/Pages/TransactionPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@ public function page(): void
$receiver = esc_html__('Receiver: ', 'cryptopay_lite') . esc_html__('Not found!', 'cryptopay_lite');
}

$addresses = $sender . CP_BR2 . $receiver;
$addresses = $sender . CPL_BR2 . $receiver;

if (
$tx->status == Status::FAILED->getValue() &&
strtolower(strval($tx->addresses?->sender)) == strtolower(strval($tx->addresses?->receiver))
) {
$addresses .= CP_BR2 . esc_html__('Warning: Sender and receiver addresses are the same! Transaction can be failed by this!', 'cryptopay'); // @phpcs:ignore
$addresses .= CPL_BR2 . esc_html__('Warning: Sender and receiver addresses are the same! Transaction can be failed by this!', 'cryptopay'); // @phpcs:ignore
}

return $addresses;
Expand Down
2 changes: 1 addition & 1 deletion app/Settings/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function __construct()
'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 .
. CPL_BR2 .
Helpers::view('components/link', [
'text' => esc_html__('WalletConnect Cloud', 'cryptopay'),
'url' => 'https://cloud.walletconnect.com/sign-in'
Expand Down
2 changes: 1 addition & 1 deletion assets/js/app.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 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.2.0
* Version: 2.2.1
* Plugin URI: https://beycanpress.com/cryptopay/
* Description: All In One Cryptocurrency Payments for WordPress
* Author: BeycanPress LLC
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Tags: WooCommerce, Cryptocurrency, Payment, Gateway, Bitcoin
Requires at least: 5.0
Tested up to: 6.5.3
Requires PHP: 8.1
Stable Tag: 2.2.0
Version: 2.2.0
Stable Tag: 2.2.1
Version: 2.2.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -163,6 +163,10 @@ See: **<a href="https://beycanpress.gitbook.io/cryptopay-docs/installation" targ
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.1 =
* Fixed: Undefined constant problem

= 2.2.0 =
* Added: WalletConnect support for mobile devices
* Fixed: MetaMask connection problem with last update
Expand Down

0 comments on commit 5148e0a

Please sign in to comment.