Skip to content

Commit

Permalink
Merge branch 'master' into new-paypal-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
SanketChodavadiya committed Mar 15, 2024
2 parents 47f1c65 + 6b0c9ef commit 3d6c7f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions includes/api/class-wc-checkoutcom-api-request.php
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ public static function capture_payment( $order_id ) {

if ( 'Voided' === $details['status'] || 'Captured' === $details['status'] ) {
$error_message = sprintf(
/* translators: 1: Order ID. */
/* translators: 1: Order ID. */
esc_html__( 'Payment has already been voided or captured on Checkout.com hub for order Id : %s', 'checkout-com-unified-payments-api' ),
$order_id
);
Expand All @@ -724,7 +724,7 @@ public static function capture_payment( $order_id ) {

if ( ! WC_Checkoutcom_Utility::is_successful( $response ) ) {
$error_message = sprintf(
/* translators: 1: Order ID. */
/* translators: 1: Order ID. */
esc_html__( 'An error has occurred while processing your capture payment on Checkout.com hub. Order Id : %s', 'checkout-com-unified-payments-api' ),
$order_id
);
Expand Down Expand Up @@ -783,7 +783,7 @@ public static function void_payment( $order_id ) {

if ( 'Voided' === $details['status'] || 'Captured' === $details['status'] ) {
$error_message = sprintf(
/* translators: 1: Order ID. */
/* translators: 1: Order ID. */
esc_html__( 'Payment has already been voided or captured on Checkout.com hub for order Id : %s', 'checkout-com-unified-payments-api' ),
$order_id
);
Expand All @@ -800,7 +800,7 @@ public static function void_payment( $order_id ) {

if ( ! WC_Checkoutcom_Utility::is_successful( $response ) ) {
$error_message = sprintf(
/* translators: 1: Order ID. */
/* translators: 1: Order ID. */
esc_html__( 'An error has occurred while processing your void payment on Checkout.com hub. Order Id : %s', 'checkout-com-unified-payments-api' ),
$order_id
);
Expand Down Expand Up @@ -1545,4 +1545,4 @@ public static function is_url_response_ok( $url ) {

return ! is_wp_error( $response ) && 200 === wp_remote_retrieve_response_code( $response );
}
}
}
2 changes: 1 addition & 1 deletion lib/class-checkout-sdk.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ public function get_capture_request() {
return new Checkout\Payments\Previous\CaptureRequest();
}
}
}
}

0 comments on commit 3d6c7f8

Please sign in to comment.