Plugin Directory

Changeset 3118819


Ignore:
Timestamp:
07/16/2024 03:38:32 AM (21 months ago)
Author:
breadintegrations
Message:

Version 3.5.4 changes

Location:
bread-finance/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • bread-finance/trunk/README.md

    r3102551 r3118819  
    44Requires at least: 4.9
    55Tested up to: 6.1.1
    6 Stable tag: 3.5.3
     6Stable tag: 3.5.4
    77Requires PHP: 5.6
    88WC requires at least: 3.0
     
    7373== Changelog ==
    7474
     75= 3.5.4
     76* Current release
     77* Fix issue when using multiple coupons
     78
    7579= 3.5.3
    76 * Current release
    7780* Check shipping method on page load
    7881
  • bread-finance/trunk/assets/js/v2/checkout-blocks.js

    r3065172 r3118819  
    119119        let wasSetup = false;
    120120        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);
    121123        let setup = {
    122124            integrationKey: plugin_settings.integration_key,
     
    187189                totalDiscounts: {
    188190                    currency: opts.currency,
    189                     value: (typeof(opts.discounts) !== 'undefined' && opts.discounts.length > 0) ? opts.discounts[0].amount : 0
     191                    value: totalDiscountAmount
    190192                },
    191193                totalShipping: {
  • bread-finance/trunk/assets/js/v2/main.js

    r3102551 r3118819  
    11/**
    2  * Bread v3.5.3
     2 * Bread v3.5.4
    33 *
    44 * @author Maritim, Kiprotich
     
    882882        let self = this;
    883883        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);
    884886
    885887        let setup = {
     
    952954                totalDiscounts: {
    953955                    currency: opts.currency,
    954                     value: (typeof(opts.discounts) !== 'undefined' && opts.discounts.length > 0) ? opts.discounts[0].amount : 0
     956                    value: totalDiscountAmount
    955957                },
    956958                totalShipping: {
  • bread-finance/trunk/bread-finance.php

    r3102551 r3118819  
    66 * Author: Bread Financial
    77 * Author URI: https://payments.breadfinancial.com/
    8  * Version: 3.5.3
     8 * Version: 3.5.4
    99 * Text Domain: bread_finance
    1010 * Domain Path: /i18n/languages/
     
    206206           
    207207            //Require minimums and constants
    208             define('WC_' . $tenant . '_VERSION', '3.5.3');
     208            define('WC_' . $tenant . '_VERSION', '3.5.4');
    209209            define('WC_' . $tenant . '_MIN_PHP_VER', '5.6.0');
    210210            define('WC_' . $tenant . '_MIN_WC_VER', '3.4.0');
  • bread-finance/trunk/classes/config/config.yml

    r3065172 r3118819  
    1111bread_host: https://api.getbread.com
    1212bread_host_sandbox: https://api-sandbox.getbread.com
    13 sdk_core_sandbox: https://connect-preview.breadpayments.com/sdk.js
     13sdk_core_sandbox: https://checkout.npp-qa-ads.ue2.breadgateway.net/sdk.js
    1414sdk_core: https://connect.breadpayments.com/sdk.js
    15 platform_domain_api_sandbox: https://api-preview.platform.breadpayments.com/api
     15platform_domain_api_sandbox: https://api.npp-qa-ads.ue2.breadgateway.net
    1616platform_domain_api: https://api.platform.breadpayments.com/api
    1717sentry_sdk: https://browser.sentry-cdn.com/5.9.1/bundle.min.js
Note: See TracChangeset for help on using the changeset viewer.