Changeset 3118819
- Timestamp:
- 07/16/2024 03:38:32 AM (21 months ago)
- Location:
- bread-finance/trunk
- Files:
-
- 5 edited
-
README.md (modified) (2 diffs)
-
assets/js/v2/checkout-blocks.js (modified) (2 diffs)
-
assets/js/v2/main.js (modified) (3 diffs)
-
bread-finance.php (modified) (2 diffs)
-
classes/config/config.yml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bread-finance/trunk/README.md
r3102551 r3118819 4 4 Requires at least: 4.9 5 5 Tested up to: 6.1.1 6 Stable tag: 3.5. 36 Stable tag: 3.5.4 7 7 Requires PHP: 5.6 8 8 WC requires at least: 3.0 … … 73 73 == Changelog == 74 74 75 = 3.5.4 76 * Current release 77 * Fix issue when using multiple coupons 78 75 79 = 3.5.3 76 * Current release77 80 * Check shipping method on page load 78 81 -
bread-finance/trunk/assets/js/v2/checkout-blocks.js
r3065172 r3118819 119 119 let wasSetup = false; 120 120 let bopisPayload = BreadUtil.createBopisPayload(opts); 121 const discounts = (opts.discounts && Array.isArray(opts.discounts)) ? opts.discounts : []; 122 const totalDiscountAmount = discounts.reduce((sum, discount) => sum + discount.amount, 0); 121 123 let setup = { 122 124 integrationKey: plugin_settings.integration_key, … … 187 189 totalDiscounts: { 188 190 currency: opts.currency, 189 value: (typeof(opts.discounts) !== 'undefined' && opts.discounts.length > 0) ? opts.discounts[0].amount : 0191 value: totalDiscountAmount 190 192 }, 191 193 totalShipping: { -
bread-finance/trunk/assets/js/v2/main.js
r3102551 r3118819 1 1 /** 2 * Bread v3.5. 32 * Bread v3.5.4 3 3 * 4 4 * @author Maritim, Kiprotich … … 882 882 let self = this; 883 883 let bopisPayload = BreadUtil.createBopisPayload(opts); 884 const discounts = (opts.discounts && Array.isArray(opts.discounts)) ? opts.discounts : []; 885 const totalDiscountAmount = discounts.reduce((sum, discount) => sum + discount.amount, 0); 884 886 885 887 let setup = { … … 952 954 totalDiscounts: { 953 955 currency: opts.currency, 954 value: (typeof(opts.discounts) !== 'undefined' && opts.discounts.length > 0) ? opts.discounts[0].amount : 0956 value: totalDiscountAmount 955 957 }, 956 958 totalShipping: { -
bread-finance/trunk/bread-finance.php
r3102551 r3118819 6 6 * Author: Bread Financial 7 7 * Author URI: https://payments.breadfinancial.com/ 8 * Version: 3.5. 38 * Version: 3.5.4 9 9 * Text Domain: bread_finance 10 10 * Domain Path: /i18n/languages/ … … 206 206 207 207 //Require minimums and constants 208 define('WC_' . $tenant . '_VERSION', '3.5. 3');208 define('WC_' . $tenant . '_VERSION', '3.5.4'); 209 209 define('WC_' . $tenant . '_MIN_PHP_VER', '5.6.0'); 210 210 define('WC_' . $tenant . '_MIN_WC_VER', '3.4.0'); -
bread-finance/trunk/classes/config/config.yml
r3065172 r3118819 11 11 bread_host: https://api.getbread.com 12 12 bread_host_sandbox: https://api-sandbox.getbread.com 13 sdk_core_sandbox: https://c onnect-preview.breadpayments.com/sdk.js13 sdk_core_sandbox: https://checkout.npp-qa-ads.ue2.breadgateway.net/sdk.js 14 14 sdk_core: https://connect.breadpayments.com/sdk.js 15 platform_domain_api_sandbox: https://api -preview.platform.breadpayments.com/api15 platform_domain_api_sandbox: https://api.npp-qa-ads.ue2.breadgateway.net 16 16 platform_domain_api: https://api.platform.breadpayments.com/api 17 17 sentry_sdk: https://browser.sentry-cdn.com/5.9.1/bundle.min.js
Note: See TracChangeset
for help on using the changeset viewer.