Plugin Directory

Changeset 3347564


Ignore:
Timestamp:
08/20/2025 01:42:21 PM (8 months ago)
Author:
simplercheckout
Message:

Version 1.1.13

Location:
simpler-checkout
Files:
2 added
24 edited
1 copied

Legend:

Unmodified
Added
Removed
  • simpler-checkout/tags/1.1.13/README.txt

    r3344053 r3347564  
    55Tested up to: 6.5
    66Requires PHP: 7.0
    7 Stable tag: 1.1.12
     7Stable tag: 1.1.13
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3535
    3636== Changelog ==
     37
     38== 1.1.13
     39Compat: [EU VAT Compliance Premium](https://wordpress.org/plugins/woocommerce-eu-vat-compliance/)
    3740
    3841== 1.1.12
  • simpler-checkout/tags/1.1.13/includes/Http/Controllers/OrderController.php

    r3318023 r3347564  
    5050            return new WP_REST_Response(json_encode($validation), 422);
    5151        }
     52        $GLOBALS['simpler_api_request']=['type'=>'submit','data'=>$body];
    5253        $order_request = new OrderRequest(
    5354            User::from_json($body['user']),
  • simpler-checkout/tags/1.1.13/includes/Http/Controllers/ProductController.php

    r3343605 r3347564  
    6161            );
    6262        }
    63 
    6463        $ids = $params['product_ids'];
     64        $GLOBALS['simpler_api_request']=['type'=>'product','data'=>['product_ids'=>$ids]];
    6565
    6666        if (!is_array($ids) || (sizeof($ids) == 0)) {
  • simpler-checkout/tags/1.1.13/includes/Http/Controllers/QuotationController.php

    r3318023 r3347564  
    4545    {
    4646        $this->request = $request;
    47         $validation = \rest_validate_value_from_schema($this->request->get_json_params(), QuotationSchema::SCHEMA);
     47        $validation = \rest_validate_value_from_schema($body = $this->request->get_json_params(), QuotationSchema::SCHEMA);
    4848        if (\is_wp_error($validation)) {
    4949            return new WP_REST_Response(json_encode($validation), 422);
    5050        }
    51 
     51        $GLOBALS['simpler_api_request']=['type'=>'quote','data'=>$body];
    5252        try {
    5353            $quotations = $this->quote();
  • simpler-checkout/tags/1.1.13/includes/Services/QuotationService.php

    r3318023 r3347564  
    122122    private function calculate_quotations_total(array $quotations, int $discount_cents)
    123123    {
    124         $products = $this->create_quoted_products();
    125         $cartSubtotal = WC()->cart->get_cart_contents_total() + WC()->cart->get_cart_contents_tax();
    126 
    127124        foreach ($quotations as $quotation) {
    128             $quotation->set_products($products);
    129 
    130125            $shippingCost = 0.0;
    131126            $shippingTax = 0.0;
     
    137132                WC()->session->set('chosen_shipping_methods', [$rate->get_id()]);
    138133                WC()->cart->calculate_shipping();
     134                WC()->cart->calculate_totals();
    139135            }
     136           
     137            $products = $this->create_quoted_products();
     138            $cartSubtotal = WC()->cart->get_cart_contents_total() + WC()->cart->get_cart_contents_tax();
     139            $quotation->set_products($products);
    140140
    141141            $this->add_payment_methods($quotation);
  • simpler-checkout/tags/1.1.13/includes/compat.php

    r3318023 r3347564  
    88include_once ('Compatibility/multi-currency.php');
    99include_once ('Compatibility/pickup.php');
     10include_once ('Compatibility/tax.php');
  • simpler-checkout/tags/1.1.13/includes/constants.php

    r3344053 r3347564  
    11<?php
    22
    3 const SIMPLERWC_VERSION = '1.1.12';
     3const SIMPLERWC_VERSION = '1.1.13';
    44
    55function simplerwc_get_sdk_uri()
  • simpler-checkout/tags/1.1.13/simpler.php

    r3344053 r3347564  
    88 * Description: Simpler Checkout lets your customers complete their purchases in seconds, with any payment method they want, in any device or browser and without a password.
    99 * Tags: woocommerce, checkout, payments, conversion rate
    10  * Version: 1.1.12
     10 * Version: 1.1.13
    1111 * Requires at least: 5.1
    1212 * Tested up to: 6.8.1
  • simpler-checkout/tags/1.1.13/vendor/autoload.php

    r3344053 r3347564  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491::getLoader();
     7return ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515::getLoader();
  • simpler-checkout/tags/1.1.13/vendor/composer/autoload_real.php

    r3344053 r3347564  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491
     5class ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
  • simpler-checkout/tags/1.1.13/vendor/composer/autoload_static.php

    r3344053 r3347564  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491
     7class ComposerStaticInitbf3d6285dae52f0af15a5b7768407515
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    8989    {
    9090        return \Closure::bind(function () use ($loader) {
    91             $loader->prefixLengthsPsr4 = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$prefixLengthsPsr4;
    92             $loader->prefixDirsPsr4 = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$prefixDirsPsr4;
    93             $loader->classMap = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$classMap;
     91            $loader->prefixLengthsPsr4 = ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::$prefixLengthsPsr4;
     92            $loader->prefixDirsPsr4 = ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::$prefixDirsPsr4;
     93            $loader->classMap = ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::$classMap;
    9494
    9595        }, null, ClassLoader::class);
  • simpler-checkout/tags/1.1.13/vendor/composer/installed.php

    r3344053 r3347564  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => '1.1.12',
    4         'version' => '1.1.12.0',
     3        'pretty_version' => '1.1.13',
     4        'version' => '1.1.13.0',
    55        'type' => 'wordpress-plugin',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => '85e82ca1b65e34f381ea89d7c5f96af156532655',
     8        'reference' => '9c9a58f86fb00156cde929e6b9da0560279eecea',
    99        'name' => 'simpler-checkout/woo',
    1010        'dev' => false,
     
    1212    'versions' => array(
    1313        'simpler-checkout/woo' => array(
    14             'pretty_version' => '1.1.12',
    15             'version' => '1.1.12.0',
     14            'pretty_version' => '1.1.13',
     15            'version' => '1.1.13.0',
    1616            'type' => 'wordpress-plugin',
    1717            'install_path' => __DIR__ . '/../../',
    1818            'aliases' => array(),
    19             'reference' => '85e82ca1b65e34f381ea89d7c5f96af156532655',
     19            'reference' => '9c9a58f86fb00156cde929e6b9da0560279eecea',
    2020            'dev_requirement' => false,
    2121        ),
  • simpler-checkout/trunk/README.txt

    r3344053 r3347564  
    55Tested up to: 6.5
    66Requires PHP: 7.0
    7 Stable tag: 1.1.12
     7Stable tag: 1.1.13
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3535
    3636== Changelog ==
     37
     38== 1.1.13
     39Compat: [EU VAT Compliance Premium](https://wordpress.org/plugins/woocommerce-eu-vat-compliance/)
    3740
    3841== 1.1.12
  • simpler-checkout/trunk/includes/Http/Controllers/OrderController.php

    r3318023 r3347564  
    5050            return new WP_REST_Response(json_encode($validation), 422);
    5151        }
     52        $GLOBALS['simpler_api_request']=['type'=>'submit','data'=>$body];
    5253        $order_request = new OrderRequest(
    5354            User::from_json($body['user']),
  • simpler-checkout/trunk/includes/Http/Controllers/ProductController.php

    r3343605 r3347564  
    6161            );
    6262        }
    63 
    6463        $ids = $params['product_ids'];
     64        $GLOBALS['simpler_api_request']=['type'=>'product','data'=>['product_ids'=>$ids]];
    6565
    6666        if (!is_array($ids) || (sizeof($ids) == 0)) {
  • simpler-checkout/trunk/includes/Http/Controllers/QuotationController.php

    r3318023 r3347564  
    4545    {
    4646        $this->request = $request;
    47         $validation = \rest_validate_value_from_schema($this->request->get_json_params(), QuotationSchema::SCHEMA);
     47        $validation = \rest_validate_value_from_schema($body = $this->request->get_json_params(), QuotationSchema::SCHEMA);
    4848        if (\is_wp_error($validation)) {
    4949            return new WP_REST_Response(json_encode($validation), 422);
    5050        }
    51 
     51        $GLOBALS['simpler_api_request']=['type'=>'quote','data'=>$body];
    5252        try {
    5353            $quotations = $this->quote();
  • simpler-checkout/trunk/includes/Services/QuotationService.php

    r3318023 r3347564  
    122122    private function calculate_quotations_total(array $quotations, int $discount_cents)
    123123    {
    124         $products = $this->create_quoted_products();
    125         $cartSubtotal = WC()->cart->get_cart_contents_total() + WC()->cart->get_cart_contents_tax();
    126 
    127124        foreach ($quotations as $quotation) {
    128             $quotation->set_products($products);
    129 
    130125            $shippingCost = 0.0;
    131126            $shippingTax = 0.0;
     
    137132                WC()->session->set('chosen_shipping_methods', [$rate->get_id()]);
    138133                WC()->cart->calculate_shipping();
     134                WC()->cart->calculate_totals();
    139135            }
     136           
     137            $products = $this->create_quoted_products();
     138            $cartSubtotal = WC()->cart->get_cart_contents_total() + WC()->cart->get_cart_contents_tax();
     139            $quotation->set_products($products);
    140140
    141141            $this->add_payment_methods($quotation);
  • simpler-checkout/trunk/includes/compat.php

    r3318023 r3347564  
    88include_once ('Compatibility/multi-currency.php');
    99include_once ('Compatibility/pickup.php');
     10include_once ('Compatibility/tax.php');
  • simpler-checkout/trunk/includes/constants.php

    r3344053 r3347564  
    11<?php
    22
    3 const SIMPLERWC_VERSION = '1.1.12';
     3const SIMPLERWC_VERSION = '1.1.13';
    44
    55function simplerwc_get_sdk_uri()
  • simpler-checkout/trunk/simpler.php

    r3344053 r3347564  
    88 * Description: Simpler Checkout lets your customers complete their purchases in seconds, with any payment method they want, in any device or browser and without a password.
    99 * Tags: woocommerce, checkout, payments, conversion rate
    10  * Version: 1.1.12
     10 * Version: 1.1.13
    1111 * Requires at least: 5.1
    1212 * Tested up to: 6.8.1
  • simpler-checkout/trunk/vendor/autoload.php

    r3344053 r3347564  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491::getLoader();
     7return ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515::getLoader();
  • simpler-checkout/trunk/vendor/composer/autoload_real.php

    r3344053 r3347564  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491
     5class ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
  • simpler-checkout/trunk/vendor/composer/autoload_static.php

    r3344053 r3347564  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491
     7class ComposerStaticInitbf3d6285dae52f0af15a5b7768407515
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    8989    {
    9090        return \Closure::bind(function () use ($loader) {
    91             $loader->prefixLengthsPsr4 = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$prefixLengthsPsr4;
    92             $loader->prefixDirsPsr4 = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$prefixDirsPsr4;
    93             $loader->classMap = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$classMap;
     91            $loader->prefixLengthsPsr4 = ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::$prefixLengthsPsr4;
     92            $loader->prefixDirsPsr4 = ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::$prefixDirsPsr4;
     93            $loader->classMap = ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::$classMap;
    9494
    9595        }, null, ClassLoader::class);
  • simpler-checkout/trunk/vendor/composer/installed.php

    r3344053 r3347564  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => '1.1.12',
    4         'version' => '1.1.12.0',
     3        'pretty_version' => '1.1.13',
     4        'version' => '1.1.13.0',
    55        'type' => 'wordpress-plugin',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => '85e82ca1b65e34f381ea89d7c5f96af156532655',
     8        'reference' => '9c9a58f86fb00156cde929e6b9da0560279eecea',
    99        'name' => 'simpler-checkout/woo',
    1010        'dev' => false,
     
    1212    'versions' => array(
    1313        'simpler-checkout/woo' => array(
    14             'pretty_version' => '1.1.12',
    15             'version' => '1.1.12.0',
     14            'pretty_version' => '1.1.13',
     15            'version' => '1.1.13.0',
    1616            'type' => 'wordpress-plugin',
    1717            'install_path' => __DIR__ . '/../../',
    1818            'aliases' => array(),
    19             'reference' => '85e82ca1b65e34f381ea89d7c5f96af156532655',
     19            'reference' => '9c9a58f86fb00156cde929e6b9da0560279eecea',
    2020            'dev_requirement' => false,
    2121        ),
Note: See TracChangeset for help on using the changeset viewer.