Skip to content

Commit

Permalink
Merge branch 'fix/PIWOO-272-banktransfer-mail' into release/7.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Oct 24, 2023
2 parents b544faf + 257ce09 commit a3a1aff
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/Gateway/MolliePaymentGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,17 +274,17 @@ public function isValidForUse(): bool
$test_mode = $this->dataService->isTestModeEnabled();

$this->errors[] = ($test_mode ? __(
'Test mode enabled.',
'mollie-payments-for-woocommerce'
) . ' ' : '') . sprintf(
'Test mode enabled.',
'mollie-payments-for-woocommerce'
) . ' ' : '') . sprintf(
/* translators: The surrounding %s's Will be replaced by a link to the global setting page */
__(
'No API key provided. Please %1$sset you Mollie API key%2$s first.',
'mollie-payments-for-woocommerce'
),
'<a href="' . $this->dataService->getGlobalSettingsUrl() . '">',
'</a>'
);
__(
'No API key provided. Please %1$sset you Mollie API key%2$s first.',
'mollie-payments-for-woocommerce'
),
'<a href="' . $this->dataService->getGlobalSettingsUrl() . '">',
'</a>'
);

return false;
}
Expand Down Expand Up @@ -813,7 +813,9 @@ public function displayInstructions(
$admin_instructions = false,
$plain_text = false
) {
if (($admin_instructions && !$this::$alreadyDisplayedAdminInstructions)

if (
($admin_instructions && !$this::$alreadyDisplayedAdminInstructions)
|| (!$admin_instructions && !$this::$alreadyDisplayedCustomerInstructions)
) {
$order_payment_method = $order->get_payment_method();
Expand Down

0 comments on commit a3a1aff

Please sign in to comment.