Changeset 3140085
- Timestamp:
- 08/23/2024 03:10:09 AM (19 months ago)
- Location:
- bread-finance/trunk
- Files:
-
- 1 added
- 1 deleted
- 12 edited
-
README.md (modified) (2 diffs)
-
assets/css/bread.css (modified) (2 diffs)
-
assets/css/main.scss (modified) (2 diffs)
-
assets/image/coind.svg (deleted)
-
assets/image/placeholder.png (added)
-
assets/js/v2/checkout-blocks.js (modified) (1 diff)
-
assets/js/v2/main.js (modified) (6 diffs)
-
bread-finance.php (modified) (2 diffs)
-
classes/class-bread-finance-ajax.php (modified) (2 diffs)
-
classes/class-bread-finance-button-helper.php (modified) (1 diff)
-
classes/class-bread-finance-gateway.php (modified) (1 diff)
-
classes/class-bread-finance-logger.php (modified) (1 diff)
-
classes/class-bread-finance-options-checkout.php (modified) (2 diffs)
-
classes/config/config.yml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bread-finance/trunk/README.md
r3129146 r3140085 4 4 Requires at least: 4.9 5 5 Tested up to: 6.1.1 6 Stable tag: 3.5. 56 Stable tag: 3.5.6 7 7 Requires PHP: 5.6 8 8 WC requires at least: 3.0 … … 73 73 == Changelog == 74 74 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 75 81 = 3.5.5 76 * Current release77 82 * Fix admin cart 78 83 -
bread-finance/trunk/assets/css/bread.css
r2984696 r3140085 9 9 */ 10 10 div#bread-placeholder { 11 border: 2px solid #999;12 border-radius: 8px;11 border: 1px solid #D0D3D4; 12 border-radius: 4px; 13 13 color: #999; 14 14 display: inline-block; … … 48 48 margin-left: -50px; 49 49 margin-right: 50px; 50 background-color: # 999;50 background-color: #D0D3D4; 51 51 background-repeat: no-repeat; 52 background-image: url(../image/ coind.svg);52 background-image: url(../image/placeholder.png); 53 53 background-position: center; 54 54 background-size: auto 30px; -
bread-finance/trunk/assets/css/main.scss
r2984696 r3140085 11 11 12 12 div##{$tenant}-placeholder { 13 border: 2px solid #999;14 border-radius: 8px;13 border: 1px solid #D0D3D4; 14 border-radius: 4px; 15 15 color: #999; 16 16 display: inline-block; … … 50 50 margin-left: -50px; 51 51 margin-right: 50px; 52 background-color: # 999;52 background-color: #D0D3D4; 53 53 background-repeat: no-repeat; 54 background-image: url(../image/ coind.svg);54 background-image: url(../image/placeholder.png); 55 55 background-position: center; 56 56 background-size: auto 30px; -
bread-finance/trunk/assets/js/v2/checkout-blocks.js
r3118819 r3140085 17 17 let data = { 18 18 'action': 'bread_get_options', 19 ' source': 'checkout',19 'page_type': 'checkout', 20 20 'billing_first_name': billing_address.first_name, 21 21 'billing_last_name': billing_address.last_name, -
bread-finance/trunk/assets/js/v2/main.js
r3129146 r3140085 1 1 /** 2 * Bread v3.5. 52 * Bread v3.5.6 3 3 * 4 4 * @author Maritim, Kiprotich … … 180 180 let request = { 181 181 action: 'bread_get_options', 182 source: breadController.local.page_type,182 page_type: breadController.local.page_type, 183 183 configs: Object.values(configs) 184 184 }; … … 432 432 action: 'bread_get_options', 433 433 config: config, 434 source: 'product'434 page_type: 'product' 435 435 }).done(function(response) { 436 436 if (response.success) { … … 505 505 data['action'] = breadAction; 506 506 data['config'] = this.config; 507 data[' source'] = breadController.local.page_type;507 data['page_type'] = breadController.local.page_type; 508 508 509 509 if (shippingContact !== null) { … … 602 602 request = { 603 603 action: 'bread_get_options', 604 source: 'cart_summary',604 page_type: 'cart_summary', 605 605 config: config, 606 606 form: form.serializeArray() … … 831 831 let data = { 832 832 action: 'bread_get_options', 833 source: 'checkout'833 page_type: 'checkout' 834 834 }; 835 835 -
bread-finance/trunk/bread-finance.php
r3129146 r3140085 6 6 * Author: Bread Financial 7 7 * Author URI: https://payments.breadfinancial.com/ 8 * Version: 3.5. 58 * Version: 3.5.6 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. 5');208 define('WC_' . $tenant . '_VERSION', '3.5.6'); 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/class-bread-finance-ajax.php
r3047587 r3140085 126 126 127 127 try { 128 if ($_REQUEST[' source'] === 'cart_summary') {128 if ($_REQUEST['page_type'] === 'cart_summary') { 129 129 $button_helper->update_cart_contact($_REQUEST['shipping_contact']); 130 130 } else { … … 148 148 $billing_contact = ( array_key_exists('billing_contact', $_REQUEST) ) ? $_REQUEST['billing_contact'] : null; 149 149 150 if ($_REQUEST[' source'] === 'cart_summary') {150 if ($_REQUEST['page_type'] === 'cart_summary') { 151 151 $button_helper->update_cart_contact($shipping_contact, $billing_contact); 152 152 } else { -
bread-finance/trunk/classes/class-bread-finance-button-helper.php
r2984693 r3140085 58 58 59 59 public function get_bread_options() { 60 $pageType = $_REQUEST[' source'];60 $pageType = $_REQUEST['page_type']; 61 61 62 62 switch ($pageType) { -
bread-finance/trunk/classes/class-bread-finance-gateway.php
r3088054 r3140085 1751 1751 // @formatter:on 1752 1752 // 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') { 1754 1754 return; 1755 1755 } -
bread-finance/trunk/classes/class-bread-finance-logger.php
r2984693 r3140085 52 52 $logEntry .= '==== Start Log ====' . "\n" . $message . "\n" . '==== End Log ====' . "\n\n"; 53 53 54 self::$logger->debug( $logEntry, [ ' source' => self::WC_LOG_FILENAME ], $context );54 self::$logger->debug( $logEntry, [ 'page_type' => self::WC_LOG_FILENAME ], $context ); 55 55 } 56 56 } -
bread-finance/trunk/classes/class-bread-finance-options-checkout.php
r3065172 r3140085 37 37 $gateway = $this->bread_finance_plugin->get_bread_gateway(); 38 38 $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'] : ''; 40 40 if($bread_version === 'bread_2') { 41 41 $options = array( 42 42 'allowCheckout' => true, 43 43 'setEmbedded' => $this->bread_finance_utilities->toBool($gateway->get_configuration_setting('set_embedded')), 44 'buttonLocation' => $ source44 'buttonLocation' => $page_type 45 45 ); 46 46 … … 96 96 'asLowAs' => $this->bread_finance_utilities->toBool($gateway->get_configuration_setting('button_as_low_as_checkout')), 97 97 'actAsLabel' => false, 98 'buttonLocation' => $ source,98 'buttonLocation' => $page_type, 99 99 'showInWindow' => $gateway->default_show_in_window(), 100 100 'disableEditShipping' => true, -
bread-finance/trunk/classes/config/config.yml
r3129149 r3140085 12 12 bread_host_sandbox: https://api-sandbox.getbread.com 13 13 sdk_core: https://connect.breadpayments.com/sdk.js 14 platform_domain_api: https://api.platform.breadpayments.com/api15 14 sdk_core_sandbox: https://connect-preview.breadpayments.com/sdk.js 16 15 platform_domain_api_sandbox: https://api-preview.platform.breadpayments.com/api 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 18 18 default_sdk_version: classic
Note: See TracChangeset
for help on using the changeset viewer.