Changeset 3347564
- Timestamp:
- 08/20/2025 01:42:21 PM (8 months ago)
- Location:
- simpler-checkout
- Files:
-
- 2 added
- 24 edited
- 1 copied
-
tags/1.1.13 (copied) (copied from simpler-checkout/trunk)
-
tags/1.1.13/README.txt (modified) (2 diffs)
-
tags/1.1.13/includes/Compatibility/tax.php (added)
-
tags/1.1.13/includes/Http/Controllers/OrderController.php (modified) (1 diff)
-
tags/1.1.13/includes/Http/Controllers/ProductController.php (modified) (1 diff)
-
tags/1.1.13/includes/Http/Controllers/QuotationController.php (modified) (1 diff)
-
tags/1.1.13/includes/Services/QuotationService.php (modified) (2 diffs)
-
tags/1.1.13/includes/compat.php (modified) (1 diff)
-
tags/1.1.13/includes/constants.php (modified) (1 diff)
-
tags/1.1.13/simpler.php (modified) (1 diff)
-
tags/1.1.13/vendor/autoload.php (modified) (1 diff)
-
tags/1.1.13/vendor/composer/autoload_real.php (modified) (3 diffs)
-
tags/1.1.13/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.1.13/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/includes/Compatibility/tax.php (added)
-
trunk/includes/Http/Controllers/OrderController.php (modified) (1 diff)
-
trunk/includes/Http/Controllers/ProductController.php (modified) (1 diff)
-
trunk/includes/Http/Controllers/QuotationController.php (modified) (1 diff)
-
trunk/includes/Services/QuotationService.php (modified) (2 diffs)
-
trunk/includes/compat.php (modified) (1 diff)
-
trunk/includes/constants.php (modified) (1 diff)
-
trunk/simpler.php (modified) (1 diff)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simpler-checkout/tags/1.1.13/README.txt
r3344053 r3347564 5 5 Tested up to: 6.5 6 6 Requires PHP: 7.0 7 Stable tag: 1.1.1 27 Stable tag: 1.1.13 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 35 35 36 36 == Changelog == 37 38 == 1.1.13 39 Compat: [EU VAT Compliance Premium](https://wordpress.org/plugins/woocommerce-eu-vat-compliance/) 37 40 38 41 == 1.1.12 -
simpler-checkout/tags/1.1.13/includes/Http/Controllers/OrderController.php
r3318023 r3347564 50 50 return new WP_REST_Response(json_encode($validation), 422); 51 51 } 52 $GLOBALS['simpler_api_request']=['type'=>'submit','data'=>$body]; 52 53 $order_request = new OrderRequest( 53 54 User::from_json($body['user']), -
simpler-checkout/tags/1.1.13/includes/Http/Controllers/ProductController.php
r3343605 r3347564 61 61 ); 62 62 } 63 64 63 $ids = $params['product_ids']; 64 $GLOBALS['simpler_api_request']=['type'=>'product','data'=>['product_ids'=>$ids]]; 65 65 66 66 if (!is_array($ids) || (sizeof($ids) == 0)) { -
simpler-checkout/tags/1.1.13/includes/Http/Controllers/QuotationController.php
r3318023 r3347564 45 45 { 46 46 $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); 48 48 if (\is_wp_error($validation)) { 49 49 return new WP_REST_Response(json_encode($validation), 422); 50 50 } 51 51 $GLOBALS['simpler_api_request']=['type'=>'quote','data'=>$body]; 52 52 try { 53 53 $quotations = $this->quote(); -
simpler-checkout/tags/1.1.13/includes/Services/QuotationService.php
r3318023 r3347564 122 122 private function calculate_quotations_total(array $quotations, int $discount_cents) 123 123 { 124 $products = $this->create_quoted_products();125 $cartSubtotal = WC()->cart->get_cart_contents_total() + WC()->cart->get_cart_contents_tax();126 127 124 foreach ($quotations as $quotation) { 128 $quotation->set_products($products);129 130 125 $shippingCost = 0.0; 131 126 $shippingTax = 0.0; … … 137 132 WC()->session->set('chosen_shipping_methods', [$rate->get_id()]); 138 133 WC()->cart->calculate_shipping(); 134 WC()->cart->calculate_totals(); 139 135 } 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); 140 140 141 141 $this->add_payment_methods($quotation); -
simpler-checkout/tags/1.1.13/includes/compat.php
r3318023 r3347564 8 8 include_once ('Compatibility/multi-currency.php'); 9 9 include_once ('Compatibility/pickup.php'); 10 include_once ('Compatibility/tax.php'); -
simpler-checkout/tags/1.1.13/includes/constants.php
r3344053 r3347564 1 1 <?php 2 2 3 const SIMPLERWC_VERSION = '1.1.1 2';3 const SIMPLERWC_VERSION = '1.1.13'; 4 4 5 5 function simplerwc_get_sdk_uri() -
simpler-checkout/tags/1.1.13/simpler.php
r3344053 r3347564 8 8 * 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. 9 9 * Tags: woocommerce, checkout, payments, conversion rate 10 * Version: 1.1.1 210 * Version: 1.1.13 11 11 * Requires at least: 5.1 12 12 * Tested up to: 6.8.1 -
simpler-checkout/tags/1.1.13/vendor/autoload.php
r3344053 r3347564 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 3425fda29cfc6e5ebe77b4057b28f491::getLoader();7 return ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515::getLoader(); -
simpler-checkout/tags/1.1.13/vendor/composer/autoload_real.php
r3344053 r3347564 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 3425fda29cfc6e5ebe77b4057b28f4915 class ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515', 'loadClassLoader')); 30 30 31 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 33 33 require __DIR__ . '/autoload_static.php'; 34 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit 3425fda29cfc6e5ebe77b4057b28f491::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; -
simpler-checkout/tags/1.1.13/vendor/composer/autoload_static.php
r3344053 r3347564 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 3425fda29cfc6e5ebe77b4057b28f4917 class ComposerStaticInitbf3d6285dae52f0af15a5b7768407515 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 89 89 { 90 90 return \Closure::bind(function () use ($loader) { 91 $loader->prefixLengthsPsr4 = ComposerStaticInit 3425fda29cfc6e5ebe77b4057b28f491::$prefixLengthsPsr4;92 $loader->prefixDirsPsr4 = ComposerStaticInit 3425fda29cfc6e5ebe77b4057b28f491::$prefixDirsPsr4;93 $loader->classMap = ComposerStaticInit 3425fda29cfc6e5ebe77b4057b28f491::$classMap;91 $loader->prefixLengthsPsr4 = ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::$prefixLengthsPsr4; 92 $loader->prefixDirsPsr4 = ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::$prefixDirsPsr4; 93 $loader->classMap = ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::$classMap; 94 94 95 95 }, null, ClassLoader::class); -
simpler-checkout/tags/1.1.13/vendor/composer/installed.php
r3344053 r3347564 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => '1.1.1 2',4 'version' => '1.1.1 2.0',3 'pretty_version' => '1.1.13', 4 'version' => '1.1.13.0', 5 5 'type' => 'wordpress-plugin', 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' 85e82ca1b65e34f381ea89d7c5f96af156532655',8 'reference' => '9c9a58f86fb00156cde929e6b9da0560279eecea', 9 9 'name' => 'simpler-checkout/woo', 10 10 'dev' => false, … … 12 12 'versions' => array( 13 13 'simpler-checkout/woo' => array( 14 'pretty_version' => '1.1.1 2',15 'version' => '1.1.1 2.0',14 'pretty_version' => '1.1.13', 15 'version' => '1.1.13.0', 16 16 'type' => 'wordpress-plugin', 17 17 'install_path' => __DIR__ . '/../../', 18 18 'aliases' => array(), 19 'reference' => ' 85e82ca1b65e34f381ea89d7c5f96af156532655',19 'reference' => '9c9a58f86fb00156cde929e6b9da0560279eecea', 20 20 'dev_requirement' => false, 21 21 ), -
simpler-checkout/trunk/README.txt
r3344053 r3347564 5 5 Tested up to: 6.5 6 6 Requires PHP: 7.0 7 Stable tag: 1.1.1 27 Stable tag: 1.1.13 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 35 35 36 36 == Changelog == 37 38 == 1.1.13 39 Compat: [EU VAT Compliance Premium](https://wordpress.org/plugins/woocommerce-eu-vat-compliance/) 37 40 38 41 == 1.1.12 -
simpler-checkout/trunk/includes/Http/Controllers/OrderController.php
r3318023 r3347564 50 50 return new WP_REST_Response(json_encode($validation), 422); 51 51 } 52 $GLOBALS['simpler_api_request']=['type'=>'submit','data'=>$body]; 52 53 $order_request = new OrderRequest( 53 54 User::from_json($body['user']), -
simpler-checkout/trunk/includes/Http/Controllers/ProductController.php
r3343605 r3347564 61 61 ); 62 62 } 63 64 63 $ids = $params['product_ids']; 64 $GLOBALS['simpler_api_request']=['type'=>'product','data'=>['product_ids'=>$ids]]; 65 65 66 66 if (!is_array($ids) || (sizeof($ids) == 0)) { -
simpler-checkout/trunk/includes/Http/Controllers/QuotationController.php
r3318023 r3347564 45 45 { 46 46 $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); 48 48 if (\is_wp_error($validation)) { 49 49 return new WP_REST_Response(json_encode($validation), 422); 50 50 } 51 51 $GLOBALS['simpler_api_request']=['type'=>'quote','data'=>$body]; 52 52 try { 53 53 $quotations = $this->quote(); -
simpler-checkout/trunk/includes/Services/QuotationService.php
r3318023 r3347564 122 122 private function calculate_quotations_total(array $quotations, int $discount_cents) 123 123 { 124 $products = $this->create_quoted_products();125 $cartSubtotal = WC()->cart->get_cart_contents_total() + WC()->cart->get_cart_contents_tax();126 127 124 foreach ($quotations as $quotation) { 128 $quotation->set_products($products);129 130 125 $shippingCost = 0.0; 131 126 $shippingTax = 0.0; … … 137 132 WC()->session->set('chosen_shipping_methods', [$rate->get_id()]); 138 133 WC()->cart->calculate_shipping(); 134 WC()->cart->calculate_totals(); 139 135 } 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); 140 140 141 141 $this->add_payment_methods($quotation); -
simpler-checkout/trunk/includes/compat.php
r3318023 r3347564 8 8 include_once ('Compatibility/multi-currency.php'); 9 9 include_once ('Compatibility/pickup.php'); 10 include_once ('Compatibility/tax.php'); -
simpler-checkout/trunk/includes/constants.php
r3344053 r3347564 1 1 <?php 2 2 3 const SIMPLERWC_VERSION = '1.1.1 2';3 const SIMPLERWC_VERSION = '1.1.13'; 4 4 5 5 function simplerwc_get_sdk_uri() -
simpler-checkout/trunk/simpler.php
r3344053 r3347564 8 8 * 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. 9 9 * Tags: woocommerce, checkout, payments, conversion rate 10 * Version: 1.1.1 210 * Version: 1.1.13 11 11 * Requires at least: 5.1 12 12 * Tested up to: 6.8.1 -
simpler-checkout/trunk/vendor/autoload.php
r3344053 r3347564 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 3425fda29cfc6e5ebe77b4057b28f491::getLoader();7 return ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515::getLoader(); -
simpler-checkout/trunk/vendor/composer/autoload_real.php
r3344053 r3347564 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 3425fda29cfc6e5ebe77b4057b28f4915 class ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitbf3d6285dae52f0af15a5b7768407515', 'loadClassLoader')); 30 30 31 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 33 33 require __DIR__ . '/autoload_static.php'; 34 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit 3425fda29cfc6e5ebe77b4057b28f491::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; -
simpler-checkout/trunk/vendor/composer/autoload_static.php
r3344053 r3347564 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 3425fda29cfc6e5ebe77b4057b28f4917 class ComposerStaticInitbf3d6285dae52f0af15a5b7768407515 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 89 89 { 90 90 return \Closure::bind(function () use ($loader) { 91 $loader->prefixLengthsPsr4 = ComposerStaticInit 3425fda29cfc6e5ebe77b4057b28f491::$prefixLengthsPsr4;92 $loader->prefixDirsPsr4 = ComposerStaticInit 3425fda29cfc6e5ebe77b4057b28f491::$prefixDirsPsr4;93 $loader->classMap = ComposerStaticInit 3425fda29cfc6e5ebe77b4057b28f491::$classMap;91 $loader->prefixLengthsPsr4 = ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::$prefixLengthsPsr4; 92 $loader->prefixDirsPsr4 = ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::$prefixDirsPsr4; 93 $loader->classMap = ComposerStaticInitbf3d6285dae52f0af15a5b7768407515::$classMap; 94 94 95 95 }, null, ClassLoader::class); -
simpler-checkout/trunk/vendor/composer/installed.php
r3344053 r3347564 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => '1.1.1 2',4 'version' => '1.1.1 2.0',3 'pretty_version' => '1.1.13', 4 'version' => '1.1.13.0', 5 5 'type' => 'wordpress-plugin', 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' 85e82ca1b65e34f381ea89d7c5f96af156532655',8 'reference' => '9c9a58f86fb00156cde929e6b9da0560279eecea', 9 9 'name' => 'simpler-checkout/woo', 10 10 'dev' => false, … … 12 12 'versions' => array( 13 13 'simpler-checkout/woo' => array( 14 'pretty_version' => '1.1.1 2',15 'version' => '1.1.1 2.0',14 'pretty_version' => '1.1.13', 15 'version' => '1.1.13.0', 16 16 'type' => 'wordpress-plugin', 17 17 'install_path' => __DIR__ . '/../../', 18 18 'aliases' => array(), 19 'reference' => ' 85e82ca1b65e34f381ea89d7c5f96af156532655',19 'reference' => '9c9a58f86fb00156cde929e6b9da0560279eecea', 20 20 'dev_requirement' => false, 21 21 ),
Note: See TracChangeset
for help on using the changeset viewer.