Skip to content

Commit 516118a

Browse files
authored
Merge pull request #213 from getbread/asi-3787-mageplaza-compat
ASI-3787 Do not update billing address if Mageplaza OSC is enabled
2 parents 38fa5ee + 70cc870 commit 516118a

File tree

6 files changed

+18
-5
lines changed

6 files changed

+18
-5
lines changed

changelog.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
== Changelog ==
22

3-
= 2.3.7
3+
= 2.3.8
44
* Current release
5+
* Add compatibility with Mageplaza OSC
6+
7+
= 2.3.7
58
* Fixed issue with configurable products
69

710
= 2.3.6

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Offers Bread Pay financing and checkout tools for your Magento store",
44
"license": "MIT",
55
"minimum-stability": "stable",
6-
"version": "2.3.7",
6+
"version": "2.3.8",
77
"require": {
88
"php": "~7.0.13||~7.1.0||~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.0.0||~8.1.0||~8.2.0"
99
},

etc/adminhtml/system.ca.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<![CDATA[
1111
<div>
1212
<span class="rbc-logo"></span>
13-
Payplan by RBC (v2.3.7) <a href="https://www.rbcpayplan.com/" target="_blank">www.rbcpayplan.com</a> - <b>Jump start your eCommerce business with PayPlan Powered by RBC</b>.
13+
Payplan by RBC (v2.3.8) <a href="https://www.rbcpayplan.com/" target="_blank">www.rbcpayplan.com</a> - <b>Jump start your eCommerce business with PayPlan Powered by RBC</b>.
1414
<br/> Developer API reference: <a href="https://rbcpayplan.readme.io/rbc-onboarding/docs/magento-2-integration-steps/" target="_blank">Payplan by RBC API Reference</a>
1515
</div>
1616
]]>

etc/adminhtml/system.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<![CDATA[
1111
<div>
1212
<span class="bread-logo"></span>
13-
Bread Pay (v2.3.7) by <a href="https://payments.breadfinancial.com/" target="_blank">payments.breadfinancial.com</a> - <b>Onsite Consumer Financing</b>.
13+
Bread Pay (v2.3.8) by <a href="https://payments.breadfinancial.com/" target="_blank">payments.breadfinancial.com</a> - <b>Onsite Consumer Financing</b>.
1414
<br/> Developers API reference: <a href="https://docs.breadpayments.com/bread-classic/docs/magento-2/" target="_blank">Bread Developer API Reference</a>
1515
</div>
1616
]]>

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3-
<module name="Bread_BreadCheckout" setup_version="2.3.7">
3+
<module name="Bread_BreadCheckout" setup_version="2.3.8">
44
<sequence>
55
<module name="Magento_Checkout"/>
66
<module name="Magento_Sales"/>

view/frontend/web/js/view/payment/method-renderer/breadcheckout.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,12 @@ define(
281281
*/
282282
updateAddress: function (data, errorInfo) {
283283
var self = this;
284+
285+
// Bypass update address if using Mageplaza OSC
286+
if (self.isOscMagePlaza()) {
287+
return;
288+
}
289+
284290
/**
285291
* Billing address
286292
*/
@@ -310,6 +316,10 @@ define(
310316
return defaultProcessorSavedShipping;
311317
},
312318

319+
isOscMagePlaza: function() {
320+
return window.checkoutConfig && window.checkoutConfig.oscConfig;
321+
},
322+
313323
/**
314324
* Validate order totals
315325
*

0 commit comments

Comments
 (0)