Skip to content

Commit

Permalink
Change strings void into cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
inpsyde-maticluznar committed Dec 20, 2023
1 parent c5f8cfd commit 6677c49
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/MerchantCapture/Capture/Action/VoidPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __invoke()
$this->logger->error($exception->getMessage());
$this->order->add_order_note(
__(
'Payment Void Failed. We encountered an issue while canceling the pre-authorized payment.',
'Payment cancelation failed. We encountered an issue while canceling the pre-authorized payment.',
'mollie-payments-for-woocommerce'
)
);
Expand Down
6 changes: 3 additions & 3 deletions src/MerchantCapture/MollieCaptureSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ public function settings(array $advancedSettings, string $pluginName): array
'default' => 'immediate_capture',
'desc' => sprintf(
__(
'Authorized payment can be captured or voided by changing the order status instead of doing it manually.',
'Authorized payment can be captured or canceled by changing the order status instead of doing it manually.',
'mollie-payments-for-woocommerce'
)
),
],
[
'id' => $pluginName . '_capture_or_void',
'title' => __(
'Capture or void on status change',
'Capture or cancel on status change',
'mollie-payments-for-woocommerce'
),
'type' => 'checkbox',
'default' => 'no',
'desc' => __(
'Capture authorized payments automatically when setting the order status to Processing or Completed. Void the payment by setting the order status Canceled.',
'Capture authorized payments automatically when setting the order status to Processing or Completed. Cancel the payment by setting the order status Canceled.',
'mollie-payments-for-woocommerce'
),
],
Expand Down
2 changes: 1 addition & 1 deletion src/MerchantCapture/UI/StatusRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __invoke(string $molliePaymentStatus)
);
} elseif ($molliePaymentStatus === ManualCaptureStatus::STATUS_VOIDED) {
(new StatusButton())(
__('Payment voided', 'mollie-payments-for-woocommerce'),
__('Payment canceled', 'mollie-payments-for-woocommerce'),
SharedDataDictionary::STATUS_CANCELLED
);
} elseif ($molliePaymentStatus === ManualCaptureStatus::STATUS_CAPTURED) {
Expand Down

0 comments on commit 6677c49

Please sign in to comment.