Skip to content

Commit

Permalink
Hotfix/subscription-mada (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
wajihkm authored Sep 23, 2021
1 parent 07e2cac commit e0e2858
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion includes/paytabs_payment_methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function payment_fields()
$this->tokenization_script();
$this->saved_payment_methods();

$has_subscription = WC_Subscriptions_Cart::cart_contains_subscription();
$has_subscription = class_exists('WC_Subscriptions_Cart') && WC_Subscriptions_Cart::cart_contains_subscription();
if ($has_subscription) {
echo wpautop('Will Save to Account');
} else {
Expand Down
8 changes: 4 additions & 4 deletions paytabs-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@
* Plugin Name: PayTabs - WooCommerce Payment Gateway
* Plugin URI: https://paytabs.com/
* Description: PayTabs is a <strong>3rd party payment gateway</strong>. Ideal payment solutions for your internet business.
* Version: 4.5.4
* Version: 4.5.5
* Requires PHP: 7.0
* Author: PayTabs
* Author URI: [email protected]
* Revision Date: 22/September/2021
* Revision Date: 23/September/2021
*/

if (!function_exists('add_action')) {
exit;
}


define('PAYTABS_PAYPAGE_VERSION', '4.5.4');
define('PAYTABS_PAYPAGE_VERSION', '4.5.5');
define('PAYTABS_PAYPAGE_DIR', plugin_dir_path(__FILE__));
define('PAYTABS_PAYPAGE_ICONS_URL', plugins_url("icons/", __FILE__));
define('PAYTABS_DEBUG_FILE', WP_CONTENT_DIR . "/debug_paytabs.log");
define('PAYTABS_PAYPAGE_METHODS', [
'mada' => 'WC_Gateway_Paytabs_Mada',
'all' => 'WC_Gateway_Paytabs_All',
'creditcard' => 'WC_Gateway_Paytabs_Creditcard',
'mada' => 'WC_Gateway_Paytabs_Mada',
'stcpay' => 'WC_Gateway_Paytabs_Stcpay',
// 'stcpayqr' => 'WC_Gateway_Paytabs_Stcpayqr',
'applepay' => 'WC_Gateway_Paytabs_Applepay',
Expand Down

0 comments on commit e0e2858

Please sign in to comment.