Plugin Directory

Changeset 3140085


Ignore:
Timestamp:
08/23/2024 03:10:09 AM (19 months ago)
Author:
breadintegrations
Message:

Version 3.5.6 changes

Location:
bread-finance/trunk
Files:
1 added
1 deleted
12 edited

Legend:

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

    r3129146 r3140085  
    44Requires at least: 4.9
    55Tested up to: 6.1.1
    6 Stable tag: 3.5.5
     6Stable tag: 3.5.6
    77Requires PHP: 5.6
    88WC requires at least: 3.0
     
    7373== Changelog ==
    7474
     75= 3.5.6
     76* Current release
     77* Rename source field so it doesn't interfere with other plugins
     78* Update Bread placeholder
     79* Fix sandbox urls
     80
    7581= 3.5.5
    76 * Current release
    7782* Fix admin cart
    7883
  • bread-finance/trunk/assets/css/bread.css

    r2984696 r3140085  
    99 */
    1010div#bread-placeholder {
    11   border: 2px solid #999;
    12   border-radius: 8px;
     11  border: 1px solid #D0D3D4;
     12  border-radius: 4px;
    1313  color: #999;
    1414  display: inline-block;
     
    4848  margin-left: -50px;
    4949  margin-right: 50px;
    50   background-color: #999;
     50  background-color: #D0D3D4;
    5151  background-repeat: no-repeat;
    52   background-image: url(../image/coind.svg);
     52  background-image: url(../image/placeholder.png);
    5353  background-position: center;
    5454  background-size: auto 30px;
  • bread-finance/trunk/assets/css/main.scss

    r2984696 r3140085  
    1111
    1212 div##{$tenant}-placeholder {
    13     border: 2px solid #999;
    14     border-radius: 8px;
     13    border: 1px solid #D0D3D4;
     14    border-radius: 4px;
    1515    color: #999;
    1616    display: inline-block;
     
    5050    margin-left: -50px;
    5151    margin-right: 50px;
    52     background-color: #999;
     52    background-color: #D0D3D4;
    5353    background-repeat: no-repeat;
    54     background-image: url(../image/coind.svg);
     54    background-image: url(../image/placeholder.png);
    5555    background-position: center;
    5656    background-size: auto 30px;
  • bread-finance/trunk/assets/js/v2/checkout-blocks.js

    r3118819 r3140085  
    1717    let data = {
    1818        'action': 'bread_get_options',
    19         'source': 'checkout',
     19        'page_type': 'checkout',
    2020        'billing_first_name': billing_address.first_name,
    2121        'billing_last_name': billing_address.last_name,
  • bread-finance/trunk/assets/js/v2/main.js

    r3129146 r3140085  
    11/**
    2  * Bread v3.5.5
     2 * Bread v3.5.6
    33 *
    44 * @author Maritim, Kiprotich
     
    180180        let request = {
    181181            action: 'bread_get_options',
    182             source: breadController.local.page_type,
     182            page_type: breadController.local.page_type,
    183183            configs: Object.values(configs)
    184184        };
     
    432432            action: 'bread_get_options',
    433433            config: config,
    434             source: 'product'
     434            page_type: 'product'
    435435        }).done(function(response) {
    436436            if (response.success) {
     
    505505        data['action'] = breadAction;
    506506        data['config'] = this.config;
    507         data['source'] = breadController.local.page_type;
     507        data['page_type'] = breadController.local.page_type;
    508508
    509509        if (shippingContact !== null) {
     
    602602            request = {
    603603                action: 'bread_get_options',
    604                 source: 'cart_summary',
     604                page_type: 'cart_summary',
    605605                config: config,
    606606                form: form.serializeArray()
     
    831831            let data = {
    832832                action: 'bread_get_options',
    833                 source: 'checkout'
     833                page_type: 'checkout'
    834834            };
    835835
  • bread-finance/trunk/bread-finance.php

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

    r3047587 r3140085  
    126126
    127127        try {
    128             if ($_REQUEST['source'] === 'cart_summary') {
     128            if ($_REQUEST['page_type'] === 'cart_summary') {
    129129                $button_helper->update_cart_contact($_REQUEST['shipping_contact']);
    130130            } else {
     
    148148            $billing_contact = ( array_key_exists('billing_contact', $_REQUEST) ) ? $_REQUEST['billing_contact'] : null;
    149149
    150             if ($_REQUEST['source'] === 'cart_summary') {
     150            if ($_REQUEST['page_type'] === 'cart_summary') {
    151151                $button_helper->update_cart_contact($shipping_contact, $billing_contact);
    152152            } else {
  • bread-finance/trunk/classes/class-bread-finance-button-helper.php

    r2984693 r3140085  
    5858   
    5959    public function get_bread_options() {
    60         $pageType = $_REQUEST['source'];
     60        $pageType = $_REQUEST['page_type'];
    6161
    6262        switch ($pageType) {
  • bread-finance/trunk/classes/class-bread-finance-gateway.php

    r3088054 r3140085  
    17511751            // @formatter:on
    17521752            // We want to use the main cart session when the user is on the "view cart" page.
    1753             if (isset($_REQUEST['source']) && $_REQUEST['source'] === 'cart_summary') {
     1753            if (isset($_REQUEST['page_type']) && $_REQUEST['page_type'] === 'cart_summary') {
    17541754                return;
    17551755            }
  • bread-finance/trunk/classes/class-bread-finance-logger.php

    r2984693 r3140085  
    5252            $logEntry .= '==== Start Log ====' . "\n" . $message . "\n" . '==== End Log ====' . "\n\n";
    5353
    54             self::$logger->debug( $logEntry, [ 'source' => self::WC_LOG_FILENAME ], $context );
     54            self::$logger->debug( $logEntry, [ 'page_type' => self::WC_LOG_FILENAME ], $context );
    5555        }
    5656    }
  • bread-finance/trunk/classes/class-bread-finance-options-checkout.php

    r3065172 r3140085  
    3737        $gateway = $this->bread_finance_plugin->get_bread_gateway();
    3838        $bread_version = $gateway->get_configuration_setting('env_bread_api');
    39         $source = isset($_REQUEST['source']) ? $_REQUEST['source'] : '';
     39        $page_type = isset($_REQUEST['page_type']) ? $_REQUEST['page_type'] : '';
    4040        if($bread_version === 'bread_2') {
    4141            $options = array(
    4242                'allowCheckout' => true,
    4343                'setEmbedded' => $this->bread_finance_utilities->toBool($gateway->get_configuration_setting('set_embedded')),
    44                 'buttonLocation' => $source
     44                'buttonLocation' => $page_type
    4545            );
    4646
     
    9696                'asLowAs' => $this->bread_finance_utilities->toBool($gateway->get_configuration_setting('button_as_low_as_checkout')),
    9797                'actAsLabel' => false,
    98                 'buttonLocation' => $source,
     98                'buttonLocation' => $page_type,
    9999                'showInWindow' => $gateway->default_show_in_window(),
    100100                'disableEditShipping' => true,
  • bread-finance/trunk/classes/config/config.yml

    r3129149 r3140085  
    1212bread_host_sandbox: https://api-sandbox.getbread.com
    1313sdk_core: https://connect.breadpayments.com/sdk.js
    14 platform_domain_api: https://api.platform.breadpayments.com/api
    1514sdk_core_sandbox: https://connect-preview.breadpayments.com/sdk.js
    1615platform_domain_api_sandbox: https://api-preview.platform.breadpayments.com/api
     16platform_domain_api: https://api.platform.breadpayments.com/api
    1717sentry_sdk: https://browser.sentry-cdn.com/5.9.1/bundle.min.js
    1818default_sdk_version: classic
Note: See TracChangeset for help on using the changeset viewer.