Skip to content

Commit

Permalink
Fix Tokenization for Woo v2
Browse files Browse the repository at this point in the history
  • Loading branch information
wajihkm committed Oct 13, 2021
1 parent d5369fc commit 6f41a62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions includes/paytabs_payment_methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,9 @@ private function prepareOrder2($order)

// $order->add_order_note();

$is_subscription = $this->has_subscription($order->get_id());
$tokenise = $this->is_tokenise() || $is_subscription;

$total = $order->get_total();
// $discount = $order->get_total_discount();
// $shipping = $order->get_total_shipping();
Expand Down Expand Up @@ -936,6 +939,7 @@ private function prepareOrder2($order)
$callback_url
)
->set08Lang($lang)
->set10Tokenise($tokenise)
->set99PluginInfo('WooCommerce', $woocommerce->version, PAYTABS_PAYPAGE_VERSION);

if ($this->_code == 'valu') {
Expand Down
6 changes: 3 additions & 3 deletions paytabs-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
* 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.6.2
* Version: 4.6.3
* Requires PHP: 7.0
* Author: PayTabs
* Author URI: [email protected]
* Revision Date: 05/October/2021
* Revision Date: 13/October/2021
*/

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


define('PAYTABS_PAYPAGE_VERSION', '4.6.2');
define('PAYTABS_PAYPAGE_VERSION', '4.6.3');
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");
Expand Down

0 comments on commit 6f41a62

Please sign in to comment.