Plugin Directory

Changeset 3495714


Ignore:
Timestamp:
03/31/2026 02:43:43 PM (5 days ago)
Author:
estogroup
Message:

Deploy version 3.0.20 to trunk

Location:
esto-payment-methods/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • esto-payment-methods/trunk/Readme.txt

    r3495635 r3495714  
    11=== ESTO payment methods ===
    22Contributors: estogroup
    3 Stable tag: 3.0.19
     3Stable tag: 3.0.20
    44Requires at least: 4.2
    55Tested up to: 6.9
     
    8181
    8282== Changelog ==
     83= 3.0.20 =
     84* Fixed: unit_price in ESTO API request now includes VAT when taxes are enabled
     85
    8386= 3.0.19 =
    8487* Added: Russian (ru_RU) language support — translations, locale-based logos, checkout captions aligned with official ESTO documentation
  • esto-payment-methods/trunk/esto-payment-methods.php

    r3495635 r3495714  
    44 * Plugin URI: https://www.esto.ee
    55 * Description: Adds ESTO payment methods to webshop
    6  * Version: 3.0.19
     6 * Version: 3.0.20
    77 * Author: ESTO AS
    88 * Author URI: https://www.esto.eu
  • esto-payment-methods/trunk/includes/class-esto-request.php

    r3443987 r3495714  
    476476                $items[] = array(
    477477                    'name'       => strlen( $cart_item['data']->get_title() ) > 0 ? $cart_item['data']->get_title() : 'No title',
    478                     'unit_price' => ! empty( $cart_item['line_total'] ) ? ( $cart_item['line_total'] / $cart_item['quantity'] ) : $cart_item['data']->get_price(),
     478                    'unit_price' => ! empty( $cart_item['line_total'] ) ? ( ( $cart_item['line_total'] + $cart_item['line_tax'] ) / $cart_item['quantity'] ) : wc_get_price_including_tax( $cart_item['data'] ),
    479479                    'quantity'   => $cart_item['quantity'],
    480480                );
     
    485485                $items[] = array(
    486486                    'name'       => strlen( $product->get_name() ) > 0 ? $product->get_name() : 'No title',
    487                     'unit_price' => $product->get_price(),
     487                    'unit_price' => ( $order_item->get_total() + $order_item->get_total_tax() ) / $order_item->get_quantity(),
    488488                    'quantity'   => $order_item->get_quantity(),
    489489                );
Note: See TracChangeset for help on using the changeset viewer.