-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge origin/master into Mollie/main
- Loading branch information
Showing
73 changed files
with
1,590 additions
and
308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...bm_mollie/cartridge/templates/default/preferences/descriptions/mollieBearerTestToken.isml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
You can find your API key in your <a href='https://www.mollie.com/dashboard/org_9306261/developers/api-keys'>Mollie Profile</a>, it starts with test or live. |
Empty file.
1 change: 1 addition & 0 deletions
1
..._mollie/cartridge/templates/default/preferences/descriptions/mollieComponentsEnabled.isml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Read more about <a href='https://www.mollie.com/en/news/post/better-checkout-flows-with-mollie-components'>Mollie Components</a> and how it improves your conversion. |
1 change: 1 addition & 0 deletions
1
...tridge/templates/default/preferences/descriptions/mollieDefaultEnabledTransactionAPI.isml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Click <a href='https://docs.mollie.com/orders/why-use-orders'>here</a> to read more about the differences between the Payment and Orders API |
1 change: 1 addition & 0 deletions
1
...ie/cartridge/templates/default/preferences/descriptions/mollieDefaultOrderExpiryDays.isml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Default expiry days for orders created with the Orders API |
1 change: 1 addition & 0 deletions
1
...es/bm_mollie/cartridge/templates/default/preferences/descriptions/mollieEnableQrCode.isml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Read more about <a href='https://docs.mollie.com/payments/qr-codes'>QR Codes</a>. |
1 change: 1 addition & 0 deletions
1
...cartridge/templates/default/preferences/descriptions/mollieEnableSingleClickPayments.isml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Read more about <a href='https://help.mollie.com/hc/en-us/articles/115000671249-What-are-single-click-payments-and-how-does-it-work-'>Single Click Payments</a> and how it improves your conversion. |
Empty file.
1 change: 1 addition & 0 deletions
1
...ges/bm_mollie/cartridge/templates/default/preferences/descriptions/mollieLogCategory.isml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Log category used by SFCC. The log category can be selected under: Administration -> Operations -> Custom Log Settings. |
1 change: 1 addition & 0 deletions
1
...idges/bm_mollie/cartridge/templates/default/preferences/descriptions/mollieProfileId.isml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
You can find your Profile ID in your <a href='https://www.mollie.com/dashboard/org_9306261/developers/api-keys'>Mollie Profile</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
cartridges/bm_mollie/cartridge/templates/default/preferences/input/select.isml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<select class="form-control custom-select selectpicker" name="${preference.ID}" ${preference.mandotory ? 'required' : ''}> | ||
<select class="form-control custom-select selectpicker" name="${preference.ID}" ${preference.mandatory ? 'required' : ''}> | ||
<isloop items=${preference.values} var="preferenceOption"> | ||
<option value="${preferenceOption.value}" ${preferenceOption.value === preference.selectedValue.value ? 'selected' : ''}> | ||
${preferenceOption.displayValue} | ||
</option> | ||
</isloop> | ||
</select> | ||
</select> |
11 changes: 8 additions & 3 deletions
11
cartridges/bm_mollie/cartridge/templates/default/preferences/input/toggle.isml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
<input class="checkbox" type="checkbox" data-toggle="toggle" value="checked" name="${preference.ID}" | ||
${preference.selectedValue ? 'checked' : ''} /> | ||
<input type="hidden" name="${preference.ID}" value="unchecked" /> | ||
<input | ||
class="checkbox" | ||
type="checkbox" | ||
data-toggle="toggle" | ||
name="${preference.ID}" | ||
value="checked" | ||
${preference.selectedValue ? 'checked' : ''} | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
'use strict'; | ||
|
||
var orderHelper = require('*/cartridge/scripts/order/orderHelper'); | ||
|
||
var base = module.superModule; | ||
|
||
/** | ||
* Order class that represents the current order | ||
* @param {dw.order.LineItemCtnr} lineItemContainer - Current users's basket/order | ||
* @param {Object} options - The current order's line items | ||
* @param {Object} options.config - Object to help configure the orderModel | ||
* @param {string} options.config.numberOfLineItems - helps determine the number of lineitems needed | ||
* @param {string} options.countryCode - the current request country code | ||
* @constructor | ||
*/ | ||
function OrderModel(lineItemContainer, options) { | ||
base.apply(this, [lineItemContainer, options]); | ||
|
||
// Contains info like payment reference | ||
this.paymentDetails = orderHelper.getPaymentDetails(lineItemContainer); | ||
} | ||
|
||
module.exports = OrderModel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.