Skip to content

Commit

Permalink
Version 2.9.2 released
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihtoprak committed Feb 15, 2022
1 parent 4487e6e commit c7fafb7
Show file tree
Hide file tree
Showing 313 changed files with 27,439 additions and 158 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"require": {
"php": ">=7.1",
"rappasoft/laravel-helpers": "^2.0",
"tightenco/collect": "^8.68"
"tightenco/collect": "^8.68",
"spatie/ray": "^1.33"
},
"autoload": {
"files": [
Expand Down
2 changes: 1 addition & 1 deletion core/library/Moka_Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exit;
}

define('OPTIMISTHUB_MOKA_PAY_VERSION', '2.9.1');
define('OPTIMISTHUB_MOKA_PAY_VERSION', '2.9.2');

global $mokaVersion;
$mokaVersion = OPTIMISTHUB_MOKA_PAY_VERSION;
Expand Down
8 changes: 6 additions & 2 deletions core/library/Optimisthub_Ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,12 @@ private function fetchInstallment()
*/
private function renderedHtml( $params )
{
global $woocommerce;
$total = data_get($woocommerce, 'cart.total');
global $woocommerce;

$orderId = $woocommerce->session->order_awaiting_payment;
$order = new WC_Order($orderId);

$total = $order->get_total();
$maxInstallment = data_get($params, 'card.MaxInstallmentNumber');
$installmentRates = data_get($params, 'installments.rates');
$orderTotal = $total;
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Moka Payment Gateway for WooCommerce
* Plugin URI: https://github.com/optimisthub/moka-woocommerce
* Description: Moka Payment gateway for woocommerce
* Version: 2.9.1
* Version: 2.9.2
* Author: Optimist Hub
* Author URI: https://optimisthub.com?ref=mokaPayment
* Domain Path: /languages/
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ Moka Pos, Moka Pay plugin;

### Changelog

#### Version 2.9.2
- Issue : Installment issues.
- Feature : Added, ray package for remote debugging.

#### Version 2.9.1
- Issue : Amount Issues Fixed.

Expand Down
Loading

0 comments on commit c7fafb7

Please sign in to comment.