Plugin Directory

Changeset 2767968


Ignore:
Timestamp:
08/08/2022 04:59:02 PM (4 years ago)
Author:
smallpay
Message:

Amount calculation update

Location:
apppago/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • apppago/trunk/apppago.php

    r2766441 r2767968  
    55 * Plugin URI:
    66 * Description: Official APPpago plugin.
    7  * Version: 1.0.1
     7 * Version: 1.0.2
    88 * Author: SmallPay Srl
    99 * Author URI: https://www.smallpay.it
     
    2222}
    2323
    24 define('APWC_PLUGIN_VERSION', '1.0.1');
     24define('APWC_PLUGIN_VERSION', '1.0.2');
    2525
    2626class WC_APPpago
  • apppago/trunk/assets/css/apppago.css

    r2766441 r2767968  
    33 * Plugin URI:
    44 * Description: Official APPpago plugin.
    5  * Version: 1.0.1
     5 * Version: 1.0.2
    66 * Author: SmallPay Srl
    77 * Author URI: SmallPay Srl
  • apppago/trunk/includes/class-wc-gateway-apppago.php

    r2766441 r2767968  
    2121        $this->method_description = __('Allow the customer to pay by installments.', 'apppago');
    2222
    23         $this->module_version = '1.0.1';
     23        $this->module_version = '1.0.2';
    2424
    2525        $this->has_fields = true;
     
    548548        $installmentsInfo = $this->oConfig->get_installments_number(WC()->cart);
    549549
    550         $amount = WC()->cart->get_cart_contents_total();
     550        $amount = preg_replace('#[^\d' . wc_get_price_decimal_separator() . ']#', '', strip_tags(WC()->cart->get_total()));
    551551        $amount = absint(round(wc_format_decimal(((float) $amount * 100), wc_get_price_decimals())));
     552
    552553        $serviceID = $this->oConfig->ap_service;
    553554        $uniqueID = $this->oConfig->ap_secret;
  • apppago/trunk/readme.txt

    r2766441 r2767968  
    88WC Requires at least: 3.0.0
    99WC Tested up to: 6.5.1
    10 Stable tag: 1.0.1
     10Stable tag: 1.0.2
    1111License: GNU General Public License v3.0
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    6666= 1.0.1 =
    6767 * Updated environment variables for developmente and other generic fix
     68
     69= 1.0.2 =
     70 * Amount calculation update
Note: See TracChangeset for help on using the changeset viewer.