Skip to content

Commit

Permalink
surcharge works with blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Jan 25, 2022
1 parent 36dc8dc commit 0e098c1
Show file tree
Hide file tree
Showing 72 changed files with 6,838 additions and 894 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@
/public/css/
/tools/
/build/
/tests/e2e/config/default.json

.env
cypress.json
6 changes: 2 additions & 4 deletions inc/settings/mollie_advanced_settings.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php

use Mollie\WooCommerce\Gateway\AbstractGateway;
use Mollie\WooCommerce\Payment\PaymentService;
use Mollie\WooCommerce\Plugin;
use Mollie\WooCommerce\Settings\Settings;

$pluginName = 'mollie-payments-for-woocommerce';
Expand Down Expand Up @@ -99,7 +97,7 @@
),
],
'default' => PaymentService::PAYMENT_METHOD_TYPE_ORDER,
/* translators: Placeholder 1: Default order status, placeholder 2: Link to 'Hold Stock' setting */
/* translators: Placeholder 1: opening link tag, placeholder 2: closing link tag */
'desc' => sprintf(
__(
'Click %1$shere%2$s to read more about the differences between the Payments and Orders API',
Expand All @@ -124,7 +122,7 @@
'{customer.company}' => '{customer.company}',
],
'default' => '{orderNumber}',
/* translators: Placeholder 1: Default order status, placeholder 2: Link to 'Hold Stock' setting */
/* translators: Placeholder 1: Opening paragraph tag, placeholder 2: Closing paragraph tag */
'desc' => sprintf(
__(
'Select among the available variables the description to be used for this transaction.%1$s(Note: this only works when the method is set to Payments API)%2$s',
Expand Down
9 changes: 4 additions & 5 deletions inc/settings/mollie_applepay_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[
'id' => 'enabled',
'title' => __('Enable/Disable', 'mollie-payments-for-woocommerce'),
/* translators: Placeholder 1: enabled or disabled */
/* translators: Placeholder 1: Gateway title */
'desc' => sprintf(__('Enable %s', 'mollie-payments-for-woocommerce'), $title),
'type' => 'checkbox',
'default' => 'yes',
Expand All @@ -27,7 +27,7 @@
[
'id' => 'title',
'title' => __('Title', 'mollie-payments-for-woocommerce'),
/* translators: Placeholder 1: enabled or disabled */
/* translators: Placeholder 1: Gateway title */
'desc' => sprintf(
__(
'This controls the title which the user sees during checkout. Default <code>%s</code>',
Expand All @@ -44,7 +44,6 @@
[
'id' => 'display_logo',
'title' => __('Display logo', 'mollie-payments-for-woocommerce'),
/* translators: Placeholder 1: enabled or disabled */
'desc' => sprintf(
__(
'Display logo',
Expand All @@ -60,13 +59,13 @@
[
'id' => 'description',
'title' => __('Description', 'mollie-payments-for-woocommerce'),
/* translators: Placeholder 1: enabled or disabled */
/* translators: Placeholder 1: Gateway description */
'desc' => sprintf(
__(
'Payment method description that the customer will see on your checkout. Default <code>%s</code>',
'mollie-payments-for-woocommerce'
),
$title
$description
),
'desc_tip' => true,
'type' => 'text',
Expand Down
Loading

0 comments on commit 0e098c1

Please sign in to comment.