From 20aaa54bbd13f5dd8da66c0a3654a909d469fbf6 Mon Sep 17 00:00:00 2001 From: leonardo lopes de albuquerque Date: Tue, 31 Oct 2023 14:51:13 -0300 Subject: [PATCH] Fix cancellation spelling (#7354) --- changelog/fix-cancellation-spelling | 4 ++++ client/disputes/strings.ts | 2 +- includes/admin/class-wc-rest-payments-orders-controller.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 changelog/fix-cancellation-spelling diff --git a/changelog/fix-cancellation-spelling b/changelog/fix-cancellation-spelling new file mode 100644 index 00000000000..293c77f333c --- /dev/null +++ b/changelog/fix-cancellation-spelling @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fix spelling of cancellation diff --git a/client/disputes/strings.ts b/client/disputes/strings.ts index 319e086e005..3c4a03f41ea 100644 --- a/client/disputes/strings.ts +++ b/client/disputes/strings.ts @@ -322,7 +322,7 @@ export const reasons: Record< 'woocommerce-payments' ), __( - 'If you can not prove the customer’s subscription was canceled, and or they did not follow your cancelation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.', + 'If you can not prove the customer’s subscription was canceled, and or they did not follow your cancellation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.', 'woocommerce-payments' ), ], diff --git a/includes/admin/class-wc-rest-payments-orders-controller.php b/includes/admin/class-wc-rest-payments-orders-controller.php index 34f7aa7e686..4040196c01e 100644 --- a/includes/admin/class-wc-rest-payments-orders-controller.php +++ b/includes/admin/class-wc-rest-payments-orders-controller.php @@ -507,7 +507,7 @@ public function cancel_authorization( WP_REST_Request $request ) { $intent_meta_order_id_raw = $intent_metadata['order_id'] ?? ''; $intent_meta_order_id = is_numeric( $intent_meta_order_id_raw ) ? intval( $intent_meta_order_id_raw ) : 0; if ( $intent_meta_order_id !== $order->get_id() ) { - Logger::error( 'Payment cancelation rejected due to failed validation: order id on intent is incorrect or missing.' ); + Logger::error( 'Payment cancellation rejected due to failed validation: order id on intent is incorrect or missing.' ); return new WP_Error( 'wcpay_intent_order_mismatch', __( 'The payment cannot be canceled', 'woocommerce-payments' ), [ 'status' => 409 ] ); } if ( ! in_array( $intent->get_status(), [ Intent_Status::REQUIRES_CAPTURE ], true ) ) {