Changeset 3041307
- Timestamp:
- 02/26/2024 01:33:21 PM (2 years ago)
- Location:
- simpler-checkout
- Files:
-
- 2 added
- 22 edited
- 1 copied
-
tags/0.7.9 (copied) (copied from simpler-checkout/trunk)
-
tags/0.7.9/README.txt (modified) (2 diffs)
-
tags/0.7.9/includes/Http/Controllers/OrderController.php (modified) (1 diff)
-
tags/0.7.9/includes/compat.php (modified) (2 diffs)
-
tags/0.7.9/includes/constants.php (modified) (1 diff)
-
tags/0.7.9/includes/gateway.php (added)
-
tags/0.7.9/simpler.php (modified) (2 diffs)
-
tags/0.7.9/vendor/autoload.php (modified) (1 diff)
-
tags/0.7.9/vendor/composer/ClassLoader.php (modified) (1 diff)
-
tags/0.7.9/vendor/composer/InstalledVersions.php (modified) (2 diffs)
-
tags/0.7.9/vendor/composer/autoload_real.php (modified) (3 diffs)
-
tags/0.7.9/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/0.7.9/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/includes/Http/Controllers/OrderController.php (modified) (1 diff)
-
trunk/includes/compat.php (modified) (2 diffs)
-
trunk/includes/constants.php (modified) (1 diff)
-
trunk/includes/gateway.php (added)
-
trunk/simpler.php (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (2 diffs)
-
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/0.7.9/README.txt
r3017013 r3041307 5 5 Tested up to: 6.1 6 6 Requires PHP: 7.0 7 Stable tag: 0.7. 87 Stable tag: 0.7.9 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 35 35 36 36 == Changelog == 37 38 == 0.7.9 39 Compat: [Pay for Payment for WooCommerce](https://wordpress.org/plugins/woocommerce-pay-for-payment/) 37 40 38 41 == 0.7.8 -
simpler-checkout/tags/0.7.9/includes/Http/Controllers/OrderController.php
r2972503 r3041307 83 83 $response = [ 84 84 'user_id' => strval($user_id), 85 'order_id' => strval( $order->get_id())85 'order_id' => strval(apply_filters('simplerwc_order_id', $order->get_id(), $order)) 86 86 ]; 87 87 -
simpler-checkout/tags/0.7.9/includes/compat.php
r3009471 r3041307 64 64 return $paymentMethods; 65 65 } 66 67 $cod = $availablePaymentMethods['cod']; 68 66 69 // COD is disabled 67 70 if ($availablePaymentMethods['cod']->enabled != 'yes') { 68 71 return $paymentMethods; 69 72 } 70 // COD isn't enabled for any shipping method71 if ( !($cod = $availablePaymentMethods['cod'])->enable_for_methods) {73 // COD isn't enabled for quote's shipping method (e.g. local pickup or BoxNow) 74 if (count($cod->enable_for_methods) > 0 && !in_array($quotation->get_shipping_rate()->get_method_id(), $cod->enable_for_methods)) { 72 75 return $paymentMethods; 73 76 } 74 // COD isn't enabled for quote's shipping method (e.g. local pickup or BoxNow) 75 if (!in_array($quotation->get_shipping_rate()->get_method_id(), $cod->enable_for_methods)) { 76 return $paymentMethods; 77 78 $codCost = 0; 79 if (class_exists('Wc_Smart_Cod_Admin')) { 80 $codCost = $cod->settings['extra_fee']; 81 } else if (class_exists('Pay4Pay')) { 82 $codCost = $cod->settings['pay4pay_charges_fixed']; 77 83 } 84 85 $codCost = apply_filters('simplerwc_cod_cost_cents', $codCost); 78 86 79 87 $paymentMethods[] = new PaymentMethod( … … 81 89 $cod->title, 82 90 PaymentMethod::COD, 83 Money::to_cents( class_exists('Wc_Smart_Cod_Admin') ? $cod->settings['extra_fee'] : 0),91 Money::to_cents($codCost), 84 92 null, 85 93 null -
simpler-checkout/tags/0.7.9/includes/constants.php
r3017013 r3041307 1 1 <?php 2 2 3 const SIMPLERWC_VERSION = '0.7. 8';3 const SIMPLERWC_VERSION = '0.7.9'; 4 4 5 5 function simplerwc_get_sdk_uri() -
simpler-checkout/tags/0.7.9/simpler.php
r3017013 r3041307 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: 0.7. 810 * Version: 0.7.9 11 11 * Requires at least: 5.1 12 12 * Tested up to: 6.3.1 … … 48 48 require_once SIMPLERWC_PATH . 'includes/button.php'; 49 49 require_once SIMPLERWC_PATH . 'includes/routes.php'; 50 require_once SIMPLERWC_PATH . 'includes/gateway.php'; 50 51 require_once SIMPLERWC_PATH . 'includes/compat.php'; 51 52 } else { -
simpler-checkout/tags/0.7.9/vendor/autoload.php
r3017013 r3041307 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit d401820ac76f35dd6dcc878560fa08dd::getLoader();7 return ComposerAutoloaderInite536ee5e74ebd4bf5dfec3d9d7bf6f05::getLoader(); -
simpler-checkout/tags/0.7.9/vendor/composer/ClassLoader.php
r2627368 r3041307 150 150 /** 151 151 * @return string[] Array of classname => path 152 * @psalm- vararray<string, string>152 * @psalm-return array<string, string> 153 153 */ 154 154 public function getClassMap() -
simpler-checkout/tags/0.7.9/vendor/composer/InstalledVersions.php
r2627368 r3041307 327 327 $installed[] = self::$installedByVendor[$vendorDir]; 328 328 } elseif (is_file($vendorDir.'/composer/installed.php')) { 329 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 329 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 330 $required = require $vendorDir.'/composer/installed.php'; 331 $installed[] = self::$installedByVendor[$vendorDir] = $required; 330 332 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 331 333 self::$installed = $installed[count($installed) - 1]; … … 339 341 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 340 342 if (substr(__DIR__, -8, 1) !== 'C') { 341 self::$installed = require __DIR__ . '/installed.php'; 343 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 344 $required = require __DIR__ . '/installed.php'; 345 self::$installed = $required; 342 346 } else { 343 347 self::$installed = array(); 344 348 } 345 349 } 346 $installed[] = self::$installed; 350 351 if (self::$installed !== array()) { 352 $installed[] = self::$installed; 353 } 347 354 348 355 return $installed; -
simpler-checkout/tags/0.7.9/vendor/composer/autoload_real.php
r3017013 r3041307 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit d401820ac76f35dd6dcc878560fa08dd5 class ComposerAutoloaderInite536ee5e74ebd4bf5dfec3d9d7bf6f05 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit d401820ac76f35dd6dcc878560fa08dd', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInite536ee5e74ebd4bf5dfec3d9d7bf6f05', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit d401820ac76f35dd6dcc878560fa08dd', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInite536ee5e74ebd4bf5dfec3d9d7bf6f05', '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 d401820ac76f35dd6dcc878560fa08dd::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInite536ee5e74ebd4bf5dfec3d9d7bf6f05::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; -
simpler-checkout/tags/0.7.9/vendor/composer/autoload_static.php
r3017013 r3041307 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit d401820ac76f35dd6dcc878560fa08dd7 class ComposerStaticInite536ee5e74ebd4bf5dfec3d9d7bf6f05 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 84 84 { 85 85 return \Closure::bind(function () use ($loader) { 86 $loader->prefixLengthsPsr4 = ComposerStaticInit d401820ac76f35dd6dcc878560fa08dd::$prefixLengthsPsr4;87 $loader->prefixDirsPsr4 = ComposerStaticInit d401820ac76f35dd6dcc878560fa08dd::$prefixDirsPsr4;88 $loader->classMap = ComposerStaticInit d401820ac76f35dd6dcc878560fa08dd::$classMap;86 $loader->prefixLengthsPsr4 = ComposerStaticInite536ee5e74ebd4bf5dfec3d9d7bf6f05::$prefixLengthsPsr4; 87 $loader->prefixDirsPsr4 = ComposerStaticInite536ee5e74ebd4bf5dfec3d9d7bf6f05::$prefixDirsPsr4; 88 $loader->classMap = ComposerStaticInite536ee5e74ebd4bf5dfec3d9d7bf6f05::$classMap; 89 89 90 90 }, null, ClassLoader::class); -
simpler-checkout/tags/0.7.9/vendor/composer/installed.php
r3017013 r3041307 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => '0.7. 8',4 'version' => '0.7. 8.0',3 'pretty_version' => '0.7.9', 4 'version' => '0.7.9.0', 5 5 'type' => 'wordpress-plugin', 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' 775181b0f019363fc21e09d3b1455efabd1b83b9',8 'reference' => '90ecb79f3bb224afe6a15ba7ea09220d70265277', 9 9 'name' => 'simpler-checkout/woo', 10 10 'dev' => false, … … 12 12 'versions' => array( 13 13 'simpler-checkout/woo' => array( 14 'pretty_version' => '0.7. 8',15 'version' => '0.7. 8.0',14 'pretty_version' => '0.7.9', 15 'version' => '0.7.9.0', 16 16 'type' => 'wordpress-plugin', 17 17 'install_path' => __DIR__ . '/../../', 18 18 'aliases' => array(), 19 'reference' => ' 775181b0f019363fc21e09d3b1455efabd1b83b9',19 'reference' => '90ecb79f3bb224afe6a15ba7ea09220d70265277', 20 20 'dev_requirement' => false, 21 21 ), -
simpler-checkout/trunk/README.txt
r3017013 r3041307 5 5 Tested up to: 6.1 6 6 Requires PHP: 7.0 7 Stable tag: 0.7. 87 Stable tag: 0.7.9 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 35 35 36 36 == Changelog == 37 38 == 0.7.9 39 Compat: [Pay for Payment for WooCommerce](https://wordpress.org/plugins/woocommerce-pay-for-payment/) 37 40 38 41 == 0.7.8 -
simpler-checkout/trunk/includes/Http/Controllers/OrderController.php
r2972503 r3041307 83 83 $response = [ 84 84 'user_id' => strval($user_id), 85 'order_id' => strval( $order->get_id())85 'order_id' => strval(apply_filters('simplerwc_order_id', $order->get_id(), $order)) 86 86 ]; 87 87 -
simpler-checkout/trunk/includes/compat.php
r3009471 r3041307 64 64 return $paymentMethods; 65 65 } 66 67 $cod = $availablePaymentMethods['cod']; 68 66 69 // COD is disabled 67 70 if ($availablePaymentMethods['cod']->enabled != 'yes') { 68 71 return $paymentMethods; 69 72 } 70 // COD isn't enabled for any shipping method71 if ( !($cod = $availablePaymentMethods['cod'])->enable_for_methods) {73 // COD isn't enabled for quote's shipping method (e.g. local pickup or BoxNow) 74 if (count($cod->enable_for_methods) > 0 && !in_array($quotation->get_shipping_rate()->get_method_id(), $cod->enable_for_methods)) { 72 75 return $paymentMethods; 73 76 } 74 // COD isn't enabled for quote's shipping method (e.g. local pickup or BoxNow) 75 if (!in_array($quotation->get_shipping_rate()->get_method_id(), $cod->enable_for_methods)) { 76 return $paymentMethods; 77 78 $codCost = 0; 79 if (class_exists('Wc_Smart_Cod_Admin')) { 80 $codCost = $cod->settings['extra_fee']; 81 } else if (class_exists('Pay4Pay')) { 82 $codCost = $cod->settings['pay4pay_charges_fixed']; 77 83 } 84 85 $codCost = apply_filters('simplerwc_cod_cost_cents', $codCost); 78 86 79 87 $paymentMethods[] = new PaymentMethod( … … 81 89 $cod->title, 82 90 PaymentMethod::COD, 83 Money::to_cents( class_exists('Wc_Smart_Cod_Admin') ? $cod->settings['extra_fee'] : 0),91 Money::to_cents($codCost), 84 92 null, 85 93 null -
simpler-checkout/trunk/includes/constants.php
r3017013 r3041307 1 1 <?php 2 2 3 const SIMPLERWC_VERSION = '0.7. 8';3 const SIMPLERWC_VERSION = '0.7.9'; 4 4 5 5 function simplerwc_get_sdk_uri() -
simpler-checkout/trunk/simpler.php
r3017013 r3041307 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: 0.7. 810 * Version: 0.7.9 11 11 * Requires at least: 5.1 12 12 * Tested up to: 6.3.1 … … 48 48 require_once SIMPLERWC_PATH . 'includes/button.php'; 49 49 require_once SIMPLERWC_PATH . 'includes/routes.php'; 50 require_once SIMPLERWC_PATH . 'includes/gateway.php'; 50 51 require_once SIMPLERWC_PATH . 'includes/compat.php'; 51 52 } else { -
simpler-checkout/trunk/vendor/autoload.php
r3017013 r3041307 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit d401820ac76f35dd6dcc878560fa08dd::getLoader();7 return ComposerAutoloaderInite536ee5e74ebd4bf5dfec3d9d7bf6f05::getLoader(); -
simpler-checkout/trunk/vendor/composer/ClassLoader.php
r2627368 r3041307 150 150 /** 151 151 * @return string[] Array of classname => path 152 * @psalm- vararray<string, string>152 * @psalm-return array<string, string> 153 153 */ 154 154 public function getClassMap() -
simpler-checkout/trunk/vendor/composer/InstalledVersions.php
r2627368 r3041307 327 327 $installed[] = self::$installedByVendor[$vendorDir]; 328 328 } elseif (is_file($vendorDir.'/composer/installed.php')) { 329 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 329 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 330 $required = require $vendorDir.'/composer/installed.php'; 331 $installed[] = self::$installedByVendor[$vendorDir] = $required; 330 332 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 331 333 self::$installed = $installed[count($installed) - 1]; … … 339 341 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 340 342 if (substr(__DIR__, -8, 1) !== 'C') { 341 self::$installed = require __DIR__ . '/installed.php'; 343 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 344 $required = require __DIR__ . '/installed.php'; 345 self::$installed = $required; 342 346 } else { 343 347 self::$installed = array(); 344 348 } 345 349 } 346 $installed[] = self::$installed; 350 351 if (self::$installed !== array()) { 352 $installed[] = self::$installed; 353 } 347 354 348 355 return $installed; -
simpler-checkout/trunk/vendor/composer/autoload_real.php
r3017013 r3041307 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit d401820ac76f35dd6dcc878560fa08dd5 class ComposerAutoloaderInite536ee5e74ebd4bf5dfec3d9d7bf6f05 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit d401820ac76f35dd6dcc878560fa08dd', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInite536ee5e74ebd4bf5dfec3d9d7bf6f05', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit d401820ac76f35dd6dcc878560fa08dd', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInite536ee5e74ebd4bf5dfec3d9d7bf6f05', '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 d401820ac76f35dd6dcc878560fa08dd::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInite536ee5e74ebd4bf5dfec3d9d7bf6f05::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; -
simpler-checkout/trunk/vendor/composer/autoload_static.php
r3017013 r3041307 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit d401820ac76f35dd6dcc878560fa08dd7 class ComposerStaticInite536ee5e74ebd4bf5dfec3d9d7bf6f05 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 84 84 { 85 85 return \Closure::bind(function () use ($loader) { 86 $loader->prefixLengthsPsr4 = ComposerStaticInit d401820ac76f35dd6dcc878560fa08dd::$prefixLengthsPsr4;87 $loader->prefixDirsPsr4 = ComposerStaticInit d401820ac76f35dd6dcc878560fa08dd::$prefixDirsPsr4;88 $loader->classMap = ComposerStaticInit d401820ac76f35dd6dcc878560fa08dd::$classMap;86 $loader->prefixLengthsPsr4 = ComposerStaticInite536ee5e74ebd4bf5dfec3d9d7bf6f05::$prefixLengthsPsr4; 87 $loader->prefixDirsPsr4 = ComposerStaticInite536ee5e74ebd4bf5dfec3d9d7bf6f05::$prefixDirsPsr4; 88 $loader->classMap = ComposerStaticInite536ee5e74ebd4bf5dfec3d9d7bf6f05::$classMap; 89 89 90 90 }, null, ClassLoader::class); -
simpler-checkout/trunk/vendor/composer/installed.php
r3017013 r3041307 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => '0.7. 8',4 'version' => '0.7. 8.0',3 'pretty_version' => '0.7.9', 4 'version' => '0.7.9.0', 5 5 'type' => 'wordpress-plugin', 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' 775181b0f019363fc21e09d3b1455efabd1b83b9',8 'reference' => '90ecb79f3bb224afe6a15ba7ea09220d70265277', 9 9 'name' => 'simpler-checkout/woo', 10 10 'dev' => false, … … 12 12 'versions' => array( 13 13 'simpler-checkout/woo' => array( 14 'pretty_version' => '0.7. 8',15 'version' => '0.7. 8.0',14 'pretty_version' => '0.7.9', 15 'version' => '0.7.9.0', 16 16 'type' => 'wordpress-plugin', 17 17 'install_path' => __DIR__ . '/../../', 18 18 'aliases' => array(), 19 'reference' => ' 775181b0f019363fc21e09d3b1455efabd1b83b9',19 'reference' => '90ecb79f3bb224afe6a15ba7ea09220d70265277', 20 20 'dev_requirement' => false, 21 21 ),
Note: See TracChangeset
for help on using the changeset viewer.