Skip to content

Commit

Permalink
updated api endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
0xBeycan committed Sep 17, 2024
1 parent 6119c6a commit e1e147a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/Pages/Integrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Integrations extends Page
/**
* @var string
*/
private string $categories = '?categories=88,167,306,87';
private string $categories = '?categories=88,167,87';

/**
* @var string
Expand Down Expand Up @@ -103,7 +103,7 @@ public function page(): void
update_option('cryptopay_lite_new_product_notification_new_count', 0);
$oldProducts = json_decode(get_option('cryptopay_lite_products_json', '{}'));
if ($this->count || empty((array) $oldProducts)) {
$res = $this->client->get('get-plugins-by-category' . $this->categories);
$res = $this->client->get('get-cryptopay-plugins');
$pluginsPure = isset($res->success) && $res->success ? $res->data->plugins : [];

foreach ($pluginsPure as $key => $pluginPure) {
Expand Down
6 changes: 1 addition & 5 deletions app/PluginHero/Helpers/General.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,7 @@ public static function cache(callable $function, string $file, int $time = 600):

$content = $function();

if ($wp_filesystem->exists($file)) {
$wp_filesystem->put_contents($file, $content, FS_CHMOD_FILE);
} else {
$wp_filesystem->put_contents($file, $content, FS_CHMOD_FILE);
}
$wp_filesystem->put_contents($file, $content, FS_CHMOD_FILE);
}

return (object) compact('file', 'content');
Expand Down
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.3.4
* Version: 2.3.5
* Plugin URI: https://beycanpress.com/cryptopay/
* Description: All In One Cryptocurrency Payments for WordPress
* Author: BeycanPress LLC
Expand Down
7 changes: 5 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.6.2
Requires PHP: 8.1
Stable Tag: 2.3.4
Version: 2.3.4
Stable Tag: 2.3.5
Version: 2.3.5
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -137,6 +137,9 @@ Yes, our plugin comes with WooCommerce crypto payment gateway support by default

== Changelog ==

= 2.3.5 =
* Updated: API Endpoints

= 2.3.4 =
* Added: Failed reason message for transactions if is failed
* Fixed: Not showing "open in explorer" button for mobile devices
Expand Down

0 comments on commit e1e147a

Please sign in to comment.