Skip to content

Commit

Permalink
Halan (#81)
Browse files Browse the repository at this point in the history
* Halan payment method
  • Loading branch information
Walaa-Elsaeed-93 authored Aug 19, 2024
1 parent dc0a559 commit 762066d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
9 changes: 9 additions & 0 deletions icons/halan.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions includes/paytabs_core.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

/**
* PayTabs v2 PHP SDK
* Version: 2.22.0
* Version: 2.23.0
* PHP >= 7.0.0
*/

define('PAYTABS_SDK_VERSION', '2.22.0');
define('PAYTABS_SDK_VERSION', '2.23.0');

define('PAYTABS_DEBUG_FILE_NAME', 'debug_paytabs.log');
define('PAYTABS_DEBUG_SEVERITY', ['Info', 'Warning', 'Error']);
Expand Down Expand Up @@ -1431,6 +1431,8 @@ class PaytabsApi
'25' => ['name' => 'souhoola', 'title' => 'PayTabs - Souhoola', 'currencies' => ['EGP'], 'groups' => [PaytabsApi::GROUP_IFRAME, PaytabsApi::GROUP_REFUND]],
'26' => ['name' => 'amaninstallments', 'title' => 'PayTabs - Aman installments', 'currencies' => ['EGP'], 'groups' => [PaytabsApi::GROUP_IFRAME, PaytabsApi::GROUP_REFUND]],
'27' => ['name' => 'tamara', 'title' => 'PayTabs - Tamara', 'currencies' => ['AED', 'SAR'], 'groups' => [PaytabsApi::GROUP_IFRAME, PaytabsApi::GROUP_REFUND]],
'28' => ['name' => 'halan', 'title' => 'PayTabs - Halan', 'currencies' => ['EGP'], 'groups' => [PaytabsApi::GROUP_IFRAME]],


];

Expand Down
9 changes: 9 additions & 0 deletions includes/paytabs_gateways.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,12 @@ class WC_Gateway_Paytabs_Tamara extends WC_Gateway_Paytabs

protected $_icon = "tamara.svg";
}

class WC_Gateway_Paytabs_Halan extends WC_Gateway_Paytabs
{
protected $_code = 'halan';
protected $_title = 'PayTabs - Halan ';
protected $_description = 'PayTabs - Halan payment method';

protected $_icon = "halan.svg";
}
5 changes: 3 additions & 2 deletions paytabs-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Plugin URI: https://paytabs.com/
* Description: PayTabs is a <strong>3rd party payment gateway</strong>. Ideal payment solutions for your internet business.
* Version: 5.2.0
* Version: 5.3.0
* Requires PHP: 7.0
* Author: PayTabs
* Author URI: [email protected]
Expand All @@ -20,7 +20,7 @@
}


define('PAYTABS_PAYPAGE_VERSION', '5.2.0');
define('PAYTABS_PAYPAGE_VERSION', '5.3.0');
define('PAYTABS_PAYPAGE_DIR', plugin_dir_path(__FILE__));
define('PAYTABS_PAYPAGE_URL', plugins_url("/", __FILE__));
define('PAYTABS_PAYPAGE_ICONS_URL', plugins_url("icons/", __FILE__));
Expand Down Expand Up @@ -56,6 +56,7 @@
'souhoola' => 'WC_Gateway_Paytabs_Souhoola',
'amaninstallments' => 'WC_Gateway_Paytabs_AmanInstallments',
'tamara' => 'WC_Gateway_Paytabs_Tamara',
'halan' => 'WC_Gateway_Paytabs_Halan',
]);

require_once PAYTABS_PAYPAGE_DIR . 'includes/paytabs_core.php';
Expand Down

0 comments on commit 762066d

Please sign in to comment.