From cba3f9f1bcf39ce0c59b0a410fee0800e96dd923 Mon Sep 17 00:00:00 2001
From: AviGawande <2041024@gcoej.ac.in>
Date: Sun, 6 Oct 2024 13:26:47 +0530
Subject: [PATCH 1/3] add-locale-support
---
hyperswitch-checkout.php | 644 ++++++++++--------
i18n-setup.php | 68 ++
includes/hyperswitch-webhook.php | 147 ++--
locale/hyperswitch-checkout.pot | 268 ++++++++
locale/hyperswitch.pot | 83 +++
.../en_US/hyperswitch-checkout-en_US.mo | Bin 0 -> 6592 bytes
.../en_US/hyperswitch-checkout-en_US.po | 300 ++++++++
locale/languages/en_US/hyperswitch-en_US.mo | Bin 0 -> 1749 bytes
locale/languages/en_US/hyperswitch-en_US.po | 95 +++
.../es_ES/hyperswitch-checkout-es_ES.mo | Bin 0 -> 7010 bytes
.../es_ES/hyperswitch-checkout-es_ES.po | 192 ++++++
locale/languages/es_ES/hyperswitch-es_ES.mo | Bin 0 -> 1815 bytes
locale/languages/es_ES/hyperswitch-es_ES.po | 96 +++
13 files changed, 1551 insertions(+), 342 deletions(-)
create mode 100644 i18n-setup.php
create mode 100644 locale/hyperswitch-checkout.pot
create mode 100644 locale/hyperswitch.pot
create mode 100644 locale/languages/en_US/hyperswitch-checkout-en_US.mo
create mode 100644 locale/languages/en_US/hyperswitch-checkout-en_US.po
create mode 100644 locale/languages/en_US/hyperswitch-en_US.mo
create mode 100644 locale/languages/en_US/hyperswitch-en_US.po
create mode 100644 locale/languages/es_ES/hyperswitch-checkout-es_ES.mo
create mode 100644 locale/languages/es_ES/hyperswitch-checkout-es_ES.po
create mode 100644 locale/languages/es_ES/hyperswitch-es_ES.mo
create mode 100644 locale/languages/es_ES/hyperswitch-es_ES.po
diff --git a/hyperswitch-checkout.php b/hyperswitch-checkout.php
index 8bfdcc7..f2214b3 100644
--- a/hyperswitch-checkout.php
+++ b/hyperswitch-checkout.php
@@ -7,6 +7,8 @@
* Author URI: https://hyperswitch.io/
* Version: 1.6.2
* License: GPLv2 or later
+ * Text Domain: hyperswitch-checkout
+ * Domain Path: /languages
*
* WC requires at least: 4.0.0
* WC tested up to: 8.6.1
@@ -123,6 +125,7 @@ public function __construct() {
add_action( 'woocommerce_order_action_wc_manual_sync_action', array( $this, 'hyperswitch_process_manual_sync_action' ) );
add_filter( 'woocommerce_order_button_html', array( $this, 'place_order_custom_button' ) );
add_filter( 'woocommerce_thankyou_order_received_text', array( $this, 'hyperswitch_thankyou' ) );
+ add_action('init', array($this, 'load_plugin_textdomain'));
}
}
@@ -134,46 +137,44 @@ function plugin_action_links( $links ) {
}
function hyperswitch_thankyou( $esc_html__ ) {
- $order_id = wc_get_order_id_by_order_key( $_GET['key'] );
- $order = wc_get_order( $order_id );
- if ( $order ) {
- $payment_method = $order->get_payment_method();
- if ( $payment_method == 'hyperswitch_checkout' ) {
- $payment_id = $order->get_transaction_id();
- $paymentResponse = $this->retrieve_payment_intent( $payment_id );
- $status = $paymentResponse['status'];
- $pm = $paymentResponse['payment_method'];
- $pmt = $paymentResponse['payment_method_type'];
- $intermediate_status = array( "processing", "requires_merchant_action", "requires_customer_action", "requires_confirmation", "requires_capture" );
- $msg = $esc_html__;
-
- global $woocommerce;
- if ( $status == 'succeeded' ) {
- $woocommerce->cart->empty_cart();
- } else if ( in_array( $status, $intermediate_status ) ) {
- if ( $status == 'requires_capture' ) {
- $msg = "Thank you for shopping with us. Please note that your payment has been authorized and can now be captured by the merchant. Kindly check the status of your order after some time.";
- } else {
- $msg = "Thank you for shopping with us. Please note that your payment is currently being processed. Kindly check the status of your order after some time.";
- }
- $woocommerce->cart->empty_cart();
- } else {
- $msg = "Thank you for shopping with us. However, the payment has failed. Please retry the payment.";
- }
- $this->post_log(
- "WC_THANK_YOU_MESSAGE",
- array(
- "payment_method" => $pm,
- "payment_method_type" => $pmt,
- "order_id" => $order_id,
- "payment_id" => $payment_id,
- "message" => $msg
- )
- );
- return esc_html( $msg );
- }
- }
- return $esc_html__;
+ $order_id = wc_get_order_id_by_order_key( $_GET['key'] );
+ $order = wc_get_order( $order_id );
+ if ( $order ) {
+ $payment_method = $order->get_payment_method();
+ if ( $payment_method == 'hyperswitch_checkout' ) {
+ $payment_id = $order->get_transaction_id();
+ $paymentResponse = $this->retrieve_payment_intent( $payment_id );
+ $status = $paymentResponse['status'];
+ $pm = $paymentResponse['payment_method'];
+ $pmt = $paymentResponse['payment_method_type'];
+ $intermediate_status = array( "processing", "requires_merchant_action", "requires_customer_action", "requires_confirmation", "requires_capture" );
+ $msg = $esc_html__;
+
+ global $woocommerce;
+ if ( $status == 'succeeded' ) {
+ $woocommerce->cart->empty_cart();
+ } else if ( in_array( $status, $intermediate_status ) ) {
+ if ( $status == 'requires_capture' ) {
+ $msg = __('Thank you for shopping with us. Please note that your payment has been authorized and can now be captured by the merchant. Kindly check the status of your order after some time.', 'hyperswitch');
+ } else {
+ $msg = __('Thank you for shopping with us. Please note that your payment is currently being processed. Kindly check the status of your order after some time.', 'hyperswitch');
+ }
+ $woocommerce->cart->empty_cart();
+ } else {
+ $msg = __('Thank you for shopping with us. However, the payment has failed. Please retry the payment.', 'hyperswitch');
+ }
+ return esc_html( $msg );
+ }
+ }
+ return $esc_html__;
+ }
+
+ public function load_plugin_textdomain() {
+ load_plugin_textdomain(
+ 'hyperswitch',
+ false,
+ dirname(plugin_basename(__FILE__)) . '/locale/'
+ );
}
function place_order_custom_button( $button_html ) {
@@ -190,30 +191,41 @@ function place_order_custom_button( $button_html ) {
}
- function process_refund( $order_id, $amount = NULL, $reason = '' ) {
- $refund = new WC_Order_Refund;
- $order = wc_get_order( $order_id );
- $payment_id = $order->get_transaction_id();
- $refund_num = $refund->id;
- $responseObj = $this->create_refund( $payment_id, $amount, $reason, $refund_num, $order_id );
- $status = $responseObj['status'];
- $refund_id = $responseObj['refund_id'];
- $intermediate_status = array( "pending" );
- if ( $status == 'succeeded' ) {
- $refund->set_refunded_payment( true );
- $order->add_order_note( 'Refund Successful (Hyperswitch Refund ID: ' . $refund_id . ')' );
- } else if ( in_array( $status, $intermediate_status ) ) {
- $order->add_order_note( 'Refund processing (Hyperswitch Refund ID: ' . $refund_id . ')' );
- $refund->set_refunded_payment( true );
- $refund->set_status( "processing" );
- } else {
- $refund->set_refunded_payment( false );
- $order->add_order_note( 'Refund failed with error message: ' . $responseObj['error']['message'] );
- return false;
- }
- $this->post_log( "WC_MANUAL_REFUND", $status, $payment_id );
- return true;
- }
+ public function process_refund( $order_id, $amount = NULL, $reason = '' ) {
+ $refund = new WC_Order_Refund;
+ $order = wc_get_order( $order_id );
+ $payment_id = $order->get_transaction_id();
+ $refund_num = $refund->id;
+ $responseObj = $this->create_refund( $payment_id, $amount, $reason, $refund_num, $order_id );
+ $status = $responseObj['status'];
+ $refund_id = $responseObj['refund_id'];
+ $intermediate_status = array( "pending" );
+ if ( $status == 'succeeded' ) {
+ $refund->set_refunded_payment( true );
+ $order->add_order_note( sprintf(
+ /* translators: %s: refund ID */
+ __('Refund Successful (Hyperswitch Refund ID: %s)', 'hyperswitch'),
+ $refund_id
+ ));
+ } else if ( in_array( $status, $intermediate_status ) ) {
+ $order->add_order_note( sprintf(
+ /* translators: %s: refund ID */
+ __('Refund processing (Hyperswitch Refund ID: %s)', 'hyperswitch'),
+ $refund_id
+ ));
+ $refund->set_refunded_payment( true );
+ $refund->set_status( "processing" );
+ } else {
+ $refund->set_refunded_payment( false );
+ $order->add_order_note( sprintf(
+ /* translators: %s: error message */
+ __('Refund failed with error message: %s', 'hyperswitch'),
+ $responseObj['error']['message']
+ ));
+ return false;
+ }
+ return true;
+ }
function hyperswitch_add_manual_actions( $actions ) {
global $theorder;
@@ -240,9 +252,15 @@ function hyperswitch_process_manual_capture_action( $order ) {
if ( $status == 'succeeded' ) {
if ( $order->status !== 'processing' && $order->status !== 'refunded' ) {
$order->payment_complete( $payment_id );
- $order->add_order_note( 'Manual Capture successful (Hyperswitch Payment ID: ' . $payment_id . ')' );
- $order->add_order_note( 'Payment successful via ' . $payment_method . ' (Hyperswitch Payment ID: ' . $payment_id . ')' );
- $order->update_meta_data( 'payment_captured', 'yes' );
+ $order->add_order_note( sprintf(
+ /* translators: %s: payment ID */
+ __('Manual Capture successful (Hyperswitch Payment ID: %s)', 'hyperswitch'),$payment_id ) );
+ $order->add_order_note( sprintf(
+ /* translators: %1$s: payment method, %2$s: payment ID */
+ __('Payment successful via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch'),
+ $payment_method,
+ $payment_id
+ ) ); $order->update_meta_data( 'payment_captured', 'yes' );
$this->post_log( "WC_ORDER_PLACED", null, $payment_id );
}
} else if ( in_array( $status, $intermediate_status ) ) {
@@ -257,134 +275,158 @@ function hyperswitch_process_manual_capture_action( $order ) {
}
function hyperswitch_process_manual_sync_action( $order ) {
- $payment_id = $order->get_transaction_id();
- $responseObj = $this->retrieve_payment_intent( $payment_id );
- $status = $responseObj['status'];
- $payment_method = $responseObj['payment_method'];
- $intermediate_status = array( "processing", "requires_merchant_action", "requires_customer_action", "requires_confirmation", "requires_capture" );
- $order->add_order_note( 'Synced Payment Status (Hyperswitch Payment ID: ' . $payment_id . ')' );
- if ( $status == 'succeeded' ) {
- if ( $order->status !== 'processing' && $order->status !== 'refunded' ) {
- $this->post_log( "WC_ORDER_PLACED", null, $payment_id );
- }
- if ( $order->status !== 'refunded' ) {
- $order->add_order_note( 'Payment successful via ' . $payment_method . ' (Hyperswitch Payment ID: ' . $payment_id . ')' );
- $order->payment_complete( $payment_id );
- }
- } else if ( in_array( $status, $intermediate_status ) ) {
- $order->add_order_note( 'Payment processing via ' . $payment_method . ' (Hyperswitch Payment ID: ' . $payment_id . ')' );
- } else {
- $order->add_order_note( 'Payment failed via ' . $payment_method . ' (Hyperswitch Payment ID: ' . $payment_id . ')' );
- }
- $this->post_log( "WC_MANUAL_SYNC", $status, $payment_id );
- }
+ $payment_id = $order->get_transaction_id();
+ $responseObj = $this->retrieve_payment_intent( $payment_id );
+ $status = $responseObj['status'];
+ $payment_method = $responseObj['payment_method'];
+ $intermediate_status = array( "processing", "requires_merchant_action", "requires_customer_action", "requires_confirmation", "requires_capture" );
+
+ $order->add_order_note( sprintf(
+ /* translators: %s: payment ID */
+ __('Synced Payment Status (Hyperswitch Payment ID: %s)', 'hyperswitch-checkout'),
+ $payment_id
+ ));
+
+ if ( $status == 'succeeded' ) {
+ if ( $order->status !== 'processing' && $order->status !== 'refunded' ) {
+ $this->post_log( "WC_ORDER_PLACED", null, $payment_id );
+ }
+ if ( $order->status !== 'refunded' ) {
+ $order->add_order_note( sprintf(
+ /* translators: %1$s: payment method, %2$s: payment ID */
+ __('Payment successful via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch-checkout'),
+ $payment_method,
+ $payment_id
+ ));
+ $order->payment_complete( $payment_id );
+ }
+ } else if ( in_array( $status, $intermediate_status ) ) {
+ $order->add_order_note( sprintf(
+ /* translators: %1$s: payment method, %2$s: payment ID */
+ __('Payment processing via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch-checkout'),
+ $payment_method,
+ $payment_id
+ ));
+ } else {
+ $order->add_order_note( sprintf(
+ /* translators: %1$s: payment method, %2$s: payment ID */
+ __('Payment failed via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch-checkout'),
+ $payment_method,
+ $payment_id
+ ));
+ }
+ $this->post_log( "WC_MANUAL_SYNC", $status, $payment_id );
+}
- public function init_form_fields() {
-
- $webhookUrl = esc_url( admin_url( 'admin-post.php' ) ) . '?action=hyperswitch_wc_webhook';
-
- $this->form_fields = array(
- 'enabled' => array(
- 'title' => __( 'Enable/Disable', 'hyperswitch-checkout' ),
- 'label' => __( 'Enable Hyperswitch', 'hyperswitch-checkout' ),
- 'type' => 'checkbox',
- 'description' => '',
- 'default' => 'yes'
- ),
- 'method_title' => array(
- 'title' => __( 'Title', 'hyperswitch-checkout' ),
- 'type' => 'textarea',
- 'description' => __( 'The title to be displayed for Hyperswitch Payment Method (in case of multiple WooCommerce Payment Gateways/ Methods)', 'hyperswitch-checkout' ),
- 'default' => __( 'Credit, Debit Card and Wallet Payments (powered by Hyperswitch)', 'hyperswitch-checkout' )
- ),
- 'environment' => array(
- 'title' => __( 'Environment' ),
- 'label' => __( 'Select Environment' ),
- 'type' => 'select',
- 'options' => array(
- 'production' => __( 'Production', 'hyperswitch-checkout' ),
- 'sandbox' => __( 'Sandbox', 'hyperswitch-checkout' ),
- ),
- 'default' => 'sandbox',
- ),
- 'api_key' => array(
- 'title' => 'Api Key',
- 'type' => 'password',
- 'description' => __( 'Find this on Developers > API Keys section of Hyperswitch Dashboard', 'hyperswitch-checkout' )
- ),
- 'publishable_key' => array(
- 'title' => 'Publishable key',
- 'type' => 'text',
- 'description' => __( 'Find this on Developers > API Keys section of Hyperswitch Dashboard', 'hyperswitch-checkout' )
- ),
- 'webhook_secret_key' => array(
- 'title' => 'Payment Response Hash Key',
- 'type' => 'password',
- 'description' => __( 'Find this on Developers > API Keys section of Hyperswitch Dashboard', 'hyperswitch-checkout' )
- ),
- 'profile_id' => array(
- 'title' => 'Business Profile ID',
- 'type' => 'text',
- 'description' => __( 'Find this on Settings > Business profiles section of Hyperswitch Dashboard', 'hyperswitch-checkout' )
- ),
- 'enable_webhook' => array(
- 'title' => __( 'Enable Webhook', 'hyperswitch-checkout' ),
- 'type' => 'checkbox',
- 'description' => "Allow webhooks from Hyperswitch to receive real time updates of payments to update orders.
$webhookUrl
Use this URL to be entered as Webhook URL on Hyperswitch dashboard",
- 'label' => __( 'Enable Hyperswitch Webhook', 'hyperswitch-checkout' ),
- 'default' => 'yes'
- ),
- 'capture_method' => array(
- 'title' => __( 'Capture Method', 'hyperswitch-checkout' ),
- 'label' => __( 'Select Capture Method', 'hyperswitch-checkout' ),
- 'type' => 'select',
- 'description' => __( "Specify whether you want to capture payments manually or automatically", 'hyperswitch-checkout' ),
- 'options' => array(
- 'automatic' => __( 'Automatic', 'hyperswitch-checkout' ),
- 'manual' => __( 'Manual', 'hyperswitch-checkout' ),
- ),
- 'default' => 'automatic',
- ),
- 'enable_saved_payment_methods' => array(
- 'title' => __( 'Enable Saved Payment Methods', 'hyperswitch-checkout' ),
- 'type' => 'checkbox',
- 'description' => __( 'Allow registered customers to pay via saved payment methods', 'hyperswitch-checkout' ),
- 'label' => __( 'Enable Saved Payment Methods', 'hyperswitch-checkout' ),
- 'default' => 'yes'
- ),
- 'show_card_from_by_default' => array(
- 'title' => __( 'Show Card Form Always', 'hyperswitch-checkout' ),
- 'type' => 'checkbox',
- 'label' => __( 'Show Card Form before Payment Methods List has loaded', 'hyperswitch-checkout' ),
- 'default' => 'yes'
- ),
- 'appearance' => array(
- 'title' => 'Appearance',
- 'type' => 'textarea',
- 'default' => '{}',
- 'description' => __( 'Use the above parameter to pass appearance config (in json format) to the checkout.', 'hyperswitch-checkout' ),
- ),
- 'layout' => array(
- 'title' => 'Layout',
- 'label' => 'Select Layout',
- 'type' => 'select',
- 'description' => __( "Choose a layout that fits well with your UI pattern.", 'hyperswitch-checkout' ),
- 'options' => array(
- 'tabs' => __( 'Tabs', 'hyperswitch-checkout' ),
- 'accordion' => __( 'Accordion', 'hyperswitch-checkout' ),
- 'spaced' => __( 'Spaced Accordion', 'hyperswitch-checkout' ),
- ),
- 'default' => 'tabs',
- ),
- 'hold_order' => array(
- 'title' => __( 'Hold Order on Processing Payments', 'hyperswitch-checkout' ),
- 'type' => 'checkbox',
- 'description' => __( "Disable this only if you do not want to reduce stock levels until the payment is successful.", 'hyperswitch-checkout' ),
- 'label' => __( 'Whether to hold order, reduce stock if a payment goes into processing status.', 'hyperswitch-checkout' ),
- 'default' => 'yes'
- ),
- );
- }
+public function init_form_fields() {
+ $webhookUrl = esc_url( admin_url( 'admin-post.php' ) ) . '?action=hyperswitch_wc_webhook';
+
+ $this->form_fields = array(
+ 'enabled' => array(
+ 'title' => __('Enable/Disable', 'hyperswitch-checkout'),
+ 'label' => __('Enable Hyperswitch', 'hyperswitch-checkout'),
+ 'type' => 'checkbox',
+ 'description' => '',
+ 'default' => 'yes'
+ ),
+ 'method_title' => array(
+ 'title' => __('Title', 'hyperswitch-checkout'),
+ 'type' => 'textarea',
+ 'description' => __('The title to be displayed for Hyperswitch Payment Method (in case of multiple WooCommerce Payment Gateways/ Methods)', 'hyperswitch-checkout'),
+ 'default' => __('Credit, Debit Card and Wallet Payments (powered by Hyperswitch)', 'hyperswitch-checkout')
+ ),
+ 'environment' => array(
+ 'title' => __('Environment', 'hyperswitch-checkout'),
+ 'label' => __('Select Environment', 'hyperswitch-checkout'),
+ 'type' => 'select',
+ 'options' => array(
+ 'production' => __('Production', 'hyperswitch-checkout'),
+ 'sandbox' => __('Sandbox', 'hyperswitch-checkout'),
+ ),
+ 'default' => 'sandbox',
+ ),
+ 'api_key' => array(
+ 'title' => __('Api Key', 'hyperswitch-checkout'),
+ 'type' => 'password',
+ 'description' => __('Find this on Developers > API Keys section of Hyperswitch Dashboard', 'hyperswitch-checkout')
+ ),
+ 'publishable_key' => array(
+ 'title' => __('Publishable key', 'hyperswitch-checkout'),
+ 'type' => 'text',
+ 'description' => __('Find this on Developers > API Keys section of Hyperswitch Dashboard', 'hyperswitch-checkout')
+ ),
+ 'webhook_secret_key' => array(
+ 'title' => __('Payment Response Hash Key', 'hyperswitch-checkout'),
+ 'type' => 'password',
+ 'description' => __('Find this on Developers > API Keys section of Hyperswitch Dashboard', 'hyperswitch-checkout')
+ ),
+ 'profile_id' => array(
+ 'title' => __('Business Profile ID', 'hyperswitch-checkout'),
+ 'type' => 'text',
+ 'description' => __('Find this on Settings > Business profiles section of Hyperswitch Dashboard', 'hyperswitch-checkout')
+ ),
+ 'enable_webhook' => array(
+ 'title' => __('Enable Webhook', 'hyperswitch-checkout'),
+ 'type' => 'checkbox',
+ 'description' => sprintf(
+ /* translators: %s: webhook URL */
+ __('Allow webhooks from Hyperswitch to receive real time updates of payments to update orders.
%s
Use this URL to be entered as Webhook URL on Hyperswitch dashboard', 'hyperswitch-checkout'),
+ $webhookUrl
+ ),
+ 'label' => __('Enable Hyperswitch Webhook', 'hyperswitch-checkout'),
+ 'default' => 'yes'
+ ),
+ 'capture_method' => array(
+ 'title' => __('Capture Method', 'hyperswitch-checkout'),
+ 'label' => __('Select Capture Method', 'hyperswitch-checkout'),
+ 'type' => 'select',
+ 'description' => __('Specify whether you want to capture payments manually or automatically', 'hyperswitch-checkout'),
+ 'options' => array(
+ 'automatic' => __('Automatic', 'hyperswitch-checkout'),
+ 'manual' => __('Manual', 'hyperswitch-checkout'),
+ ),
+ 'default' => 'automatic',
+ ),
+ 'enable_saved_payment_methods' => array(
+ 'title' => __('Enable Saved Payment Methods', 'hyperswitch-checkout'),
+ 'type' => 'checkbox',
+ 'description' => __('Allow registered customers to pay via saved payment methods', 'hyperswitch-checkout'),
+ 'label' => __('Enable Saved Payment Methods', 'hyperswitch-checkout'),
+ 'default' => 'yes'
+ ),
+ 'show_card_from_by_default' => array(
+ 'title' => __('Show Card Form Always', 'hyperswitch-checkout'),
+ 'type' => 'checkbox',
+ 'label' => __('Show Card Form before Payment Methods List has loaded', 'hyperswitch-checkout'),
+ 'default' => 'yes'
+ ),
+ 'appearance' => array(
+ 'title' => __('Appearance', 'hyperswitch-checkout'),
+ 'type' => 'textarea',
+ 'default' => '{}',
+ 'description' => __('Use the above parameter to pass appearance config (in json format) to the checkout.', 'hyperswitch-checkout'),
+ ),
+ 'layout' => array(
+ 'title' => __('Layout', 'hyperswitch-checkout'),
+ 'label' => __('Select Layout', 'hyperswitch-checkout'),
+ 'type' => 'select',
+ 'description' => __('Choose a layout that fits well with your UI pattern.', 'hyperswitch-checkout'),
+ 'options' => array(
+ 'tabs' => __('Tabs', 'hyperswitch-checkout'),
+ 'accordion' => __('Accordion', 'hyperswitch-checkout'),
+ 'spaced' => __('Spaced Accordion', 'hyperswitch-checkout'),
+ ),
+ 'default' => 'tabs',
+ ),
+ 'hold_order' => array(
+ 'title' => __('Hold Order on Processing Payments', 'hyperswitch-checkout'),
+ 'type' => 'checkbox',
+ 'description' => __('Disable this only if you do not want to reduce stock levels until the payment is successful.', 'hyperswitch-checkout'),
+ 'label' => __('Whether to hold order, reduce stock if a payment goes into processing status.', 'hyperswitch-checkout'),
+ 'default' => 'yes'
+ ),
+ );
+}
function receipt_page( $payment_id ) {
$payment_intent = $this->create_payment_intent( $payment_id );
@@ -662,13 +704,13 @@ function retrieve_payment_intent( $payment_id ) {
public function create_customer( $customer_id, $name, $email ) {
$apiKey = $this->get_option( 'api_key' );
-
+
$url = $this->hyperswitch_url . "/customers";
$payload = array(
"customer_id" => $customer_id,
"email" => $email,
"name" => $name,
- "description" => __( "Customer created via Woocommerce Application", 'hyperswitch-checkout' )
+ "description" => __("Customer created via Woocommerce Application", 'hyperswitch-checkout')
);
$args = array(
'body' => wp_json_encode( $payload ),
@@ -682,14 +724,14 @@ public function create_customer( $customer_id, $name, $email ) {
'api-key' => $apiKey
)
);
-
+
$response = wp_remote_retrieve_body( wp_remote_post( $url, $args ) );
return json_decode( $response, true );
}
-
+
public function post_log( $event_name, $value = null, $payment_id = null ) {
$publishable_key = $this->get_option( 'publishable_key' );
-
+
switch ( $this->environment ) {
case "sandbox":
$url = "https://sandbox.hyperswitch.io/logs/sdk";
@@ -701,13 +743,13 @@ public function post_log( $event_name, $value = null, $payment_id = null ) {
$url = "https://sandbox.hyperswitch.io/logs/sdk";
break;
}
-
+
if ( str_contains( $event_name, "ERROR" ) ) {
$log_type = "ERROR";
} else {
$log_type = "INFO";
}
-
+
$payload = array(
"merchant_id" => $publishable_key,
"event_name" => $event_name,
@@ -718,19 +760,19 @@ public function post_log( $event_name, $value = null, $payment_id = null ) {
"log_category" => "MERCHANT_EVENT",
"timestamp" => floor( microtime( true ) * 1000 ) . ""
);
-
+
if ( isset( $payment_id ) ) {
$payload["payment_id"] = $payment_id;
}
-
+
if ( isset( $value ) ) {
$payload["value"] = $value;
}
-
+
$data = array(
"data" => [ $payload ]
);
-
+
$args = array(
'body' => wp_json_encode( $data ),
'timeout' => 45,
@@ -742,17 +784,15 @@ public function post_log( $event_name, $value = null, $payment_id = null ) {
'Content-Type' => 'application/json'
)
);
-
+
$response = wp_remote_retrieve_body( wp_remote_post( $url, $args ) );
return json_decode( $response, true );
}
-
+
public function manual_capture( $payment_id ) {
$apiKey = $this->get_option( 'api_key' );
-
$url = $this->hyperswitch_url . "/payments/" . $payment_id . "/capture";
-
- // Execute the request
+
$args = array(
'timeout' => 45,
'redirection' => 5,
@@ -763,21 +803,20 @@ public function manual_capture( $payment_id ) {
'api-key' => $apiKey
)
);
-
+
$response = wp_remote_retrieve_body( wp_remote_post( $url, $args ) );
return json_decode( $response, true );
}
-
+
public function create_refund( $payment_id, $amount, $reason, $refund_num, $order_id ) {
$apiKey = $this->get_option( 'api_key' );
-
$url = $this->hyperswitch_url . "/refunds";
-
+
$metadata = array(
"refund_num" => $refund_num,
"order_num" => $order_id
);
-
+
$payload = array(
"payment_id" => $payment_id,
"amount" => ( (int) $amount * 100 ),
@@ -785,8 +824,7 @@ public function create_refund( $payment_id, $amount, $reason, $refund_num, $orde
"refund_type" => "instant",
"metadata" => $metadata
);
-
- // Execute the request
+
$args = array(
'body' => wp_json_encode( $payload ),
'timeout' => 45,
@@ -799,12 +837,11 @@ public function create_refund( $payment_id, $amount, $reason, $refund_num, $orde
'api-key' => $apiKey
)
);
-
+
$response = wp_remote_retrieve_body( wp_remote_post( $url, $args ) );
-
return json_decode( $response, true );
}
-
+
/**
* Process the payment and return the result
**/
@@ -816,33 +853,48 @@ function process_payment( $payment_id ) {
$order = new WC_Order( $payment_id );
return array( 'result' => 'success', 'redirect' => $order->get_checkout_payment_url( true ) );
}
-
+
public function check_hyperswitch_response() {
-
global $woocommerce;
$payment_id = $_GET['payment_id'];
-
+
$msg['class'] = 'error';
- $msg['message'] = "Thank you for shopping with us. However, the transaction has been declined.";
-
+ $msg['message'] = __("Thank you for shopping with us. However, the transaction has been declined.", 'hyperswitch-checkout');
+
$paymentResponse = $this->retrieve_payment_intent( $payment_id );
$status = $paymentResponse['status'];
$payment_method = $paymentResponse['payment_method'];
$intermediate_status = array( "processing", "requires_merchant_action", "requires_customer_action", "requires_confirmation", "requires_capture" );
$order_num = ( $paymentResponse['metadata'] )['order_num'];
$order = new WC_Order( $order_num );
+
if ( $status == 'succeeded' ) {
$msg['class'] = 'success';
$order->payment_complete( $payment_id );
- $order->add_order_note( 'Payment successful via ' . $payment_method . ' (Hyperswitch Payment ID: ' . $payment_id . ')' );
+ $order->add_order_note( sprintf(
+ /* translators: %1$s: payment method, %2$s: payment ID */
+ __('Payment successful via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch-checkout'),
+ $payment_method,
+ $payment_id
+ ));
$woocommerce->cart->empty_cart();
$this->post_log( "WC_ORDER_PLACED", null, $payment_id );
} else if ( in_array( $status, $intermediate_status ) ) {
$original_status = $order->status;
if ( $status == 'requires_capture' ) {
- $order->add_order_note( 'Payment authorized via ' . $payment_method . ' (Hyperswitch Payment ID: ' . $payment_id . '). Note: Requires Capture' );
+ $order->add_order_note( sprintf(
+ /* translators: %1$s: payment method, %2$s: payment ID */
+ __('Payment authorized via %1$s (Hyperswitch Payment ID: %2$s). Note: Requires Capture', 'hyperswitch-checkout'),
+ $payment_method,
+ $payment_id
+ ));
} else {
- $order->add_order_note( 'Payment processing via ' . $payment_method . ' (Hyperswitch Payment ID: ' . $payment_id . ')' );
+ $order->add_order_note( sprintf(
+ /* translators: %1$s: payment method, %2$s: payment ID */
+ __('Payment processing via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch-checkout'),
+ $payment_method,
+ $payment_id
+ ));
}
$order->set_transaction_id( $payment_id );
$order->update_status( $this->processing_payment_order_status );
@@ -851,27 +903,32 @@ public function check_hyperswitch_response() {
$this->post_log( "WC_ORDER_ON_HOLD", $status, $payment_id );
} else {
$errorMessage = $paymentResponse['error']['message'] ?? $paymentResponse['error_code'] ?? "NA";
- $order->add_order_note( 'Payment failed via ' . $payment_method . ' (Hyperswitch Payment ID: ' . $payment_id . ') with error message: ' . $errorMessage );
+ $order->add_order_note( sprintf(
+ /* translators: %1$s: payment method, %2$s: payment ID, %3$s: error message */
+ __('Payment failed via %1$s (Hyperswitch Payment ID: %2$s) with error message: %3$s', 'hyperswitch-checkout'),
+ $payment_method,
+ $payment_id,
+ $errorMessage
+ ));
$order->update_status( 'pending' );
$msg['class'] = 'error';
- $msg['message'] = "Thank you for shopping with us. However, the payment has failed. Please retry the payment.";
+ $msg['message'] = __("Thank you for shopping with us. However, the payment has failed. Please retry the payment.", 'hyperswitch-checkout');
$this->post_log( "WC_ERROR_IN_PLACING_ORDER", $errorMessage, $payment_id );
}
-
+
if ( $paymentResponse['capture_method'] === "automatic" ) {
$order->update_meta_data( 'payment_captured', 'yes' );
}
-
+
if ( $msg['class'] != 'success' ) {
if ( function_exists( 'wc_add_notice' ) ) {
wc_add_notice( $msg['message'], $msg['class'] );
-
} else {
$woocommerce->add_error( $msg['message'] );
$woocommerce->set_messages();
}
}
-
+
if ( $msg['class'] == 'success' ) {
$redirect_url = $this->get_return_url( $order );
} else {
@@ -883,66 +940,67 @@ public function check_hyperswitch_response() {
}
}
- function hyperswitch_add_payment_class( $gateways ) {
- $gateways[] = 'Hyperswitch_Checkout';
- return $gateways;
- }
-
- add_filter( 'woocommerce_payment_gateways', 'hyperswitch_add_payment_class' );
-
-}
+ function hyperswitch_add_payment_class( $gateways ) {
+ $gateways[] = 'Hyperswitch_Checkout';
+ return $gateways;
+ }
+
+ add_filter( 'woocommerce_payment_gateways', 'hyperswitch_add_payment_class' );
-// This is set to a priority of 10
-function hyperswitch_webhook_init() {
- $hyperswitchWebhook = new Hyperswitch_Webhook();
- $hyperswitchWebhook->process();
}
-
-function hyperswitch_create_or_update_payment_intent() {
- $nonce = $_POST['wc_nonce'];
- if ( ! wp_verify_nonce( sanitize_text_field( wp_unslash( $nonce ) ), 'woocommerce-process_checkout' ) ) {
- wp_send_json(
- array(
- "messages" => __( "Something went wrong. Please try again or reload the page.", 'hyperswitch-checkout' )
- )
- );
- } else {
- $hyperswitch = new Hyperswitch_Checkout();
- $order_id = $_POST['order_id'];
- $client_secret = $_POST['client_secret'];
- if ( ! isset( $client_secret ) ) {
- $hyperswitch->post_log( "WC_ORDER_CREATE", null, $order_id );
- } else {
- $payment_id = "";
- $parts = explode( "_secret", $client_secret );
- if ( count( $parts ) === 2 ) {
- $payment_id = $parts[0];
- }
- $hyperswitch->post_log( "WC_ORDER_UPDATE", $payment_id, $order_id );
+
+
+ // This is set to a priority of 10
+ function hyperswitch_webhook_init() {
+ $hyperswitchWebhook = new Hyperswitch_Webhook();
+ $hyperswitchWebhook->process();
}
- $payment_sheet = $hyperswitch->render_payment_sheet( $order_id, $client_secret );
- if ( isset( $payment_sheet['payment_sheet'] ) ) {
- $hyperswitch->post_log( "WC_CHECKOUT_INITIATED", $order_id, $order_id );
- wp_send_json(
- array(
- "order_id" => $order_id,
- "payment_sheet" => $payment_sheet['payment_sheet']
- )
- );
- } else {
- $hyperswitch->post_log( "WC_INTEGRATION_ERROR", $order_id, $order_id );
- wp_send_json(
- array(
- "order_id" => $order_id,
- "redirect" => $payment_sheet['redirect_url']
- )
- );
+
+ function hyperswitch_create_or_update_payment_intent() {
+ $nonce = $_POST['wc_nonce'];
+ if ( ! wp_verify_nonce( sanitize_text_field( wp_unslash( $nonce ) ), 'woocommerce-process_checkout' ) ) {
+ wp_send_json(
+ array(
+ "messages" => __("Something went wrong. Please try again or reload the page.", 'hyperswitch-checkout')
+ )
+ );
+ } else {
+ $hyperswitch = new Hyperswitch_Checkout();
+ $order_id = $_POST['order_id'];
+ $client_secret = $_POST['client_secret'];
+ if ( ! isset( $client_secret ) ) {
+ $hyperswitch->post_log( "WC_ORDER_CREATE", null, $order_id );
+ } else {
+ $payment_id = "";
+ $parts = explode( "_secret", $client_secret );
+ if ( count( $parts ) === 2 ) {
+ $payment_id = $parts[0];
+ }
+ $hyperswitch->post_log( "WC_ORDER_UPDATE", $payment_id, $order_id );
+ }
+ $payment_sheet = $hyperswitch->render_payment_sheet( $order_id, $client_secret );
+ if ( isset( $payment_sheet['payment_sheet'] ) ) {
+ $hyperswitch->post_log( "WC_CHECKOUT_INITIATED", $order_id, $order_id );
+ wp_send_json(
+ array(
+ "order_id" => $order_id,
+ "payment_sheet" => $payment_sheet['payment_sheet']
+ )
+ );
+ } else {
+ $hyperswitch->post_log( "WC_INTEGRATION_ERROR", $order_id, $order_id );
+ wp_send_json(
+ array(
+ "order_id" => $order_id,
+ "redirect" => $payment_sheet['redirect_url']
+ )
+ );
+ }
+ }
}
- }
-}
-
-function hyperswitch_declare_compatibility() {
- if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
- \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
- }
-}
\ No newline at end of file
+
+ function hyperswitch_declare_compatibility() {
+ if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
+ \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
+ }
+ }
\ No newline at end of file
diff --git a/i18n-setup.php b/i18n-setup.php
new file mode 100644
index 0000000..1db767c
--- /dev/null
+++ b/i18n-setup.php
@@ -0,0 +1,68 @@
+ $match) {
+ if (empty($matches[2][$key]) || $matches[2][$key] !== 'hyperswitch') {
+ $missing_domain[] = array(
+ 'file' => $file,
+ 'string' => $match
+ );
+ }
+ }
+ }
+ }
+ }
+
+ return $missing_domain;
+}
+
+// Scan files
+$files = scan_php_files(__DIR__);
+$missing = check_translation_functions($files);
+
+if (!empty($missing)) {
+ echo "Found translation functions missing 'hyperswitch' text domain:\n\n";
+ foreach ($missing as $item) {
+ echo "File: {$item['file']}\n";
+ echo "Function: {$item['string']}\n\n";
+ }
+} else {
+ echo "All translation functions have proper text domain.\n";
+}
diff --git a/includes/hyperswitch-webhook.php b/includes/hyperswitch-webhook.php
index 74cbee0..da38183 100644
--- a/includes/hyperswitch-webhook.php
+++ b/includes/hyperswitch-webhook.php
@@ -1,4 +1,15 @@
hyperswitch = new Hyperswitch_Checkout();
+
+ // Load plugin text domain
+ add_action('init', array($this, 'load_plugin_textdomain'));
+ }
+ /**
+ * Load plugin textdomain.
+ */
+ public function load_plugin_textdomain() {
+ load_plugin_textdomain(
+ 'hyperswitch',
+ false,
+ dirname(plugin_basename(__FILE__)) . '/locale/'
+ );
}
public function process() {
if ( $_SERVER['REQUEST_METHOD'] === 'POST' ) {
$raw_post_data = file_get_contents( 'php://input' );
- if ( ! empty ( $raw_post_data ) ) {
+ if ( ! empty( $raw_post_data ) ) {
$data = json_decode( $raw_post_data, true );
$signature = $_SERVER['HTTP_X_WEBHOOK_SIGNATURE_512'];
-
if ( json_last_error() !== 0 ) {
return;
}
$enabled = $this->hyperswitch->get_option( 'enable_webhook' );
- if ( ( $enabled === 'yes' ) and ( empty ( $data['event_type'] ) === false ) ) {
- // Skip the webhook if webhooks are disabled, or the event type is unrecognised
+ if ( ( $enabled === 'yes' ) && ( ! empty( $data['event_type'] ) ) ) {
$payment_id = $data['content']['object']['payment_id'];
- $this->hyperswitch->post_log( "WC_WEBHOOK_RECEIVED", $data['event_type'], $payment_id );
+ $this->hyperswitch->post_log(
+ /* translators: Webhook received log message */
+ __( 'WC_WEBHOOK_RECEIVED', 'hyperswitch' ),
+ $data['event_type'],
+ $payment_id
+ );
+
if ( $this->shouldConsumeWebhook( $data, $signature, $raw_post_data ) === false ) {
return;
}
+
switch ( $data['event_type'] ) {
case self::PAYMENT_SUCCEEDED:
return $this->paymentAuthorized( $data );
case self::PAYMENT_FAILED:
- return $this->paymentHandle( $data, "failed" );
+ return $this->paymentHandle( $data, __( 'failed', 'hyperswitch' ) );
case self::PAYMENT_PROCESSING:
- return $this->paymentHandle( $data, "processing" );
+ return $this->paymentHandle( $data, __( 'processing', 'hyperswitch' ) );
- case self::ACTION_REQURIED:
- return $this->paymentHandle( $data, "action required" );
+ case self::ACTION_REQUIRED:
+ return $this->paymentHandle( $data, __( 'action required', 'hyperswitch' ) );
case self::REFUND_SUCCEEDED:
return $this->refundedCreated( $data );
@@ -89,48 +102,76 @@ public function process() {
}
protected function paymentAuthorized( array $data ) {
-
$order_id = $data['content']['object']['metadata']['order_num'];
-
$order = wc_get_order( $order_id );
if ( $order ) {
$payment_id = $data['content']['object']['payment_id'];
$payment_method = $data['content']['object']['payment_method'];
+
if ( $order->status !== 'processing' ) {
- $this->hyperswitch->post_log( "WC_ORDER_PLACED", null, $payment_id );
+ $this->hyperswitch->post_log(
+ /* translators: Order placed log message */
+ __( 'WC_ORDER_PLACED', 'hyperswitch' ),
+ null,
+ $payment_id
+ );
}
+
$order->payment_complete( $payment_id );
- $order->add_order_note( 'Payment successful via ' . $payment_method . ' (Hyperswitch Payment ID: ' . $payment_id . ') (via Hyperswitch Webhook)' );
+ $order->add_order_note( sprintf(
+ /* translators: 1: Payment method 2: Payment ID */
+ __( 'Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch Webhook)', 'hyperswitch' ),
+ $payment_method,
+ $payment_id
+ ));
+
if ( $data['object']['capture_method'] === "automatic" ) {
$order->update_meta_data( 'payment_captured', 'yes' );
}
- $this->hyperswitch->post_log( "WC_PAYMENT_SUCCEEDED_WEBHOOK", null, $payment_id );
-
+
+ $this->hyperswitch->post_log(
+ /* translators: Payment succeeded webhook log message */
+ __( 'WC_PAYMENT_SUCCEEDED_WEBHOOK', 'hyperswitch' ),
+ null,
+ $payment_id
+ );
} else {
- exit; // Not a Woocommerce Order
+ exit; // Not a WooCommerce Order
}
exit;
}
protected function paymentHandle( array $data, $status ) {
-
$order_id = $data['content']['object']['metadata']['order_num'];
-
$order = wc_get_order( $order_id );
if ( $order ) {
$payment_id = $data['content']['object']['payment_id'];
$payment_method = $data['content']['object']['payment_method'];
$order->set_transaction_id( $payment_id );
- if ( $status == 'processing' ) {
+
+ if ( $status == __( 'processing', 'hyperswitch' ) ) {
$order->update_status( $this->hyperswitch->processing_payment_order_status );
} else {
- $order->update_status( 'pending' );
+ $order->update_status( __( 'pending', 'hyperswitch' ) );
}
- $order->add_order_note( 'Payment ' . $status . ' via ' . $payment_method . ' (Hyperswitch Payment ID: ' . $payment_id . ') (via Hyperswitch Webhook)' );
- $this->hyperswitch->post_log( "WC_PAYMENT_" . str_replace( " ", "_", strtoupper( $status ) ) . "_WEBHOOK", null, $payment_id );
+
+ $order->add_order_note( sprintf(
+ /* translators: 1: Payment status 2: Payment method 3: Payment ID */
+ __( 'Payment %1$s via %2$s (Hyperswitch Payment ID: %3$s) (via Hyperswitch Webhook)', 'hyperswitch' ),
+ $status,
+ $payment_method,
+ $payment_id
+ ));
+
+ $this->hyperswitch->post_log(
+ /* translators: Payment status webhook log message */
+ __( sprintf('WC_PAYMENT_%s_WEBHOOK', str_replace( " ", "_", strtoupper( $status ) )), 'hyperswitch' ),
+ null,
+ $payment_id
+ );
}
exit;
@@ -138,20 +179,22 @@ protected function paymentHandle( array $data, $status ) {
protected function refundedCreated( array $data ) {
$payment_id = $data['content']['object']['payment_id'];
- if ( isset ( $data['content']['object']['metadata']['order_num'] ) ) {
+ if ( isset( $data['content']['object']['metadata']['order_num'] ) ) {
$order_id = $data['content']['object']['metadata']['order_num'];
} else {
$payment_intent = $this->hyperswitch->retrieve_payment_intent( $payment_id );
$order_id = $payment_intent['metadata']['order_num'];
}
+
$refund_num = $data['content']['object']['metadata']['refund_num'];
$refund_id = $data['content']['object']['refund_id'];
$order = wc_get_order( $order_id );
+
if ( $order ) {
$refunds = $order->get_refunds();
$targetRefund = null;
- if ( isset ( $refund_num ) ) {
+ if ( isset( $refund_num ) ) {
foreach ( $refunds as $refund ) {
if ( $refund->id == $refund_num ) {
$targetRefund = $refund;
@@ -159,31 +202,37 @@ protected function refundedCreated( array $data ) {
}
}
}
- if ( ! isset ( $targetRefund ) ) { // Refund initiated via Hyperswitch Dashboard
+
+ if ( ! isset( $targetRefund ) ) { // Refund initiated via Hyperswitch Dashboard
$refund = new WC_Order_Refund;
$amount = $data['content']['object']['amount'];
$reason = $data['content']['object']['reason'];
$refund->set_amount( (float) $amount / 100 );
$refund->set_reason( $reason );
}
- $order->add_order_note( 'Refund Successful (Hyperswitch Refund ID: ' . $refund_id . ') (via Hyperswitch Webhook)' );
+
+ $order->add_order_note( sprintf(
+ /* translators: %s: Refund ID */
+ __( 'Refund Successful (Hyperswitch Refund ID: %1$s) (via Hyperswitch Webhook)', 'hyperswitch' ),
+ $refund_id
+ ));
$refund->set_refunded_payment( true );
} else {
- exit; // Not a refund for a Woocommerce Order
+ exit; // Not a refund for a WooCommerce Order
}
- // Graceful exit since payment is now refunded.
+
exit;
}
-
protected function shouldConsumeWebhook( $data, $signature, $payload ) {
$webhook_key = $this->hyperswitch->get_option( 'webhook_secret_key' );
$generated_signature = hash_hmac( 'sha512', $payload, $webhook_key );
$signature_verification_result = $generated_signature === $signature;
if (
- ( isset ( $data['event_type'] ) ) and
- ( in_array( $data['event_type'], $this->eventsArray ) && $signature_verification_result )
+ isset( $data['event_type'] ) &&
+ in_array( $data['event_type'], $this->eventsArray ) &&
+ $signature_verification_result
) {
return true;
}
diff --git a/locale/hyperswitch-checkout.pot b/locale/hyperswitch-checkout.pot
new file mode 100644
index 0000000..449ec12
--- /dev/null
+++ b/locale/hyperswitch-checkout.pot
@@ -0,0 +1,268 @@
+# Copyright (C) 2024 Hyperswitch
+# This file is distributed under the GPLv2 or later.
+msgid ""
+msgstr ""
+"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
+"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-woocommerce-plugin\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: LANGUAGE \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: 2024-10-06T12:46:48+05:30\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"X-Generator: WP-CLI 2.11.0\n"
+"X-Domain: hyperswitch-checkout\n"
+
+#. Plugin Name of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch Checkout for WooCommerce"
+msgstr ""
+
+#. Plugin URI of the plugin
+#. Author URI of the plugin
+#: hyperswitch-checkout.php
+msgid "https://hyperswitch.io/"
+msgstr ""
+
+#. Description of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch checkout plugin for WooCommerce"
+msgstr ""
+
+#. Author of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch"
+msgstr ""
+
+#: hyperswitch-checkout.php:60
+msgid "Allow customers to securely pay via Hyperswitch"
+msgstr ""
+
+#: hyperswitch-checkout.php:134
+msgid "Settings"
+msgstr ""
+
+#: hyperswitch-checkout.php:237
+msgid "Capture Payment with Hyperswitch"
+msgstr ""
+
+#: hyperswitch-checkout.php:241
+msgid "Sync Payment with Hyperswitch"
+msgstr ""
+
+#. translators: %s: payment ID
+#: hyperswitch-checkout.php:286
+msgid "Synced Payment Status (Hyperswitch Payment ID: %s)"
+msgstr ""
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:297
+#: hyperswitch-checkout.php:876
+msgid "Payment successful via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr ""
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:306
+#: hyperswitch-checkout.php:894
+msgid "Payment processing via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr ""
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:313
+msgid "Payment failed via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr ""
+
+#: hyperswitch-checkout.php:326
+msgid "Enable/Disable"
+msgstr ""
+
+#: hyperswitch-checkout.php:327
+msgid "Enable Hyperswitch"
+msgstr ""
+
+#: hyperswitch-checkout.php:333
+msgid "Title"
+msgstr ""
+
+#: hyperswitch-checkout.php:335
+msgid "The title to be displayed for Hyperswitch Payment Method (in case of multiple WooCommerce Payment Gateways/ Methods)"
+msgstr ""
+
+#: hyperswitch-checkout.php:336
+msgid "Credit, Debit Card and Wallet Payments (powered by Hyperswitch)"
+msgstr ""
+
+#: hyperswitch-checkout.php:339
+msgid "Environment"
+msgstr ""
+
+#: hyperswitch-checkout.php:340
+msgid "Select Environment"
+msgstr ""
+
+#: hyperswitch-checkout.php:343
+msgid "Production"
+msgstr ""
+
+#: hyperswitch-checkout.php:344
+msgid "Sandbox"
+msgstr ""
+
+#: hyperswitch-checkout.php:349
+msgid "Api Key"
+msgstr ""
+
+#: hyperswitch-checkout.php:351
+#: hyperswitch-checkout.php:356
+#: hyperswitch-checkout.php:361
+msgid "Find this on Developers > API Keys section of Hyperswitch Dashboard"
+msgstr ""
+
+#: hyperswitch-checkout.php:354
+msgid "Publishable key"
+msgstr ""
+
+#: hyperswitch-checkout.php:359
+msgid "Payment Response Hash Key"
+msgstr ""
+
+#: hyperswitch-checkout.php:364
+msgid "Business Profile ID"
+msgstr ""
+
+#: hyperswitch-checkout.php:366
+msgid "Find this on Settings > Business profiles section of Hyperswitch Dashboard"
+msgstr ""
+
+#: hyperswitch-checkout.php:369
+msgid "Enable Webhook"
+msgstr ""
+
+#. translators: %s: webhook URL
+#: hyperswitch-checkout.php:373
+msgid "Allow webhooks from Hyperswitch to receive real time updates of payments to update orders.
%s
Use this URL to be entered as Webhook URL on Hyperswitch dashboard"
+msgstr ""
+
+#: hyperswitch-checkout.php:376
+msgid "Enable Hyperswitch Webhook"
+msgstr ""
+
+#: hyperswitch-checkout.php:380
+msgid "Capture Method"
+msgstr ""
+
+#: hyperswitch-checkout.php:381
+msgid "Select Capture Method"
+msgstr ""
+
+#: hyperswitch-checkout.php:383
+msgid "Specify whether you want to capture payments manually or automatically"
+msgstr ""
+
+#: hyperswitch-checkout.php:385
+msgid "Automatic"
+msgstr ""
+
+#: hyperswitch-checkout.php:386
+msgid "Manual"
+msgstr ""
+
+#: hyperswitch-checkout.php:391
+#: hyperswitch-checkout.php:394
+msgid "Enable Saved Payment Methods"
+msgstr ""
+
+#: hyperswitch-checkout.php:393
+msgid "Allow registered customers to pay via saved payment methods"
+msgstr ""
+
+#: hyperswitch-checkout.php:398
+msgid "Show Card Form Always"
+msgstr ""
+
+#: hyperswitch-checkout.php:400
+msgid "Show Card Form before Payment Methods List has loaded"
+msgstr ""
+
+#: hyperswitch-checkout.php:404
+msgid "Appearance"
+msgstr ""
+
+#: hyperswitch-checkout.php:407
+msgid "Use the above parameter to pass appearance config (in json format) to the checkout."
+msgstr ""
+
+#: hyperswitch-checkout.php:410
+msgid "Layout"
+msgstr ""
+
+#: hyperswitch-checkout.php:411
+msgid "Select Layout"
+msgstr ""
+
+#: hyperswitch-checkout.php:413
+msgid "Choose a layout that fits well with your UI pattern."
+msgstr ""
+
+#: hyperswitch-checkout.php:415
+msgid "Tabs"
+msgstr ""
+
+#: hyperswitch-checkout.php:416
+msgid "Accordion"
+msgstr ""
+
+#: hyperswitch-checkout.php:417
+msgid "Spaced Accordion"
+msgstr ""
+
+#: hyperswitch-checkout.php:422
+msgid "Hold Order on Processing Payments"
+msgstr ""
+
+#: hyperswitch-checkout.php:424
+msgid "Disable this only if you do not want to reduce stock levels until the payment is successful."
+msgstr ""
+
+#: hyperswitch-checkout.php:425
+msgid "Whether to hold order, reduce stock if a payment goes into processing status."
+msgstr ""
+
+#: hyperswitch-checkout.php:452
+#: hyperswitch-checkout.php:492
+msgid "Unable to Create Hyperswitch Payment Intent."
+msgstr ""
+
+#: hyperswitch-checkout.php:456
+#: hyperswitch-checkout.php:459
+#: hyperswitch-checkout.php:496
+#: hyperswitch-checkout.php:499
+msgid "Something went wrong. Please contact support for assistance."
+msgstr ""
+
+#: hyperswitch-checkout.php:713
+msgid "Customer created via Woocommerce Application"
+msgstr ""
+
+#: hyperswitch-checkout.php:862
+msgid "Thank you for shopping with us. However, the transaction has been declined."
+msgstr ""
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:887
+msgid "Payment authorized via %1$s (Hyperswitch Payment ID: %2$s). Note: Requires Capture"
+msgstr ""
+
+#. translators: %1$s: payment method, %2$s: payment ID, %3$s: error message
+#: hyperswitch-checkout.php:908
+msgid "Payment failed via %1$s (Hyperswitch Payment ID: %2$s) with error message: %3$s"
+msgstr ""
+
+#: hyperswitch-checkout.php:915
+msgid "Thank you for shopping with us. However, the payment has failed. Please retry the payment."
+msgstr ""
+
+#: hyperswitch-checkout.php:964
+msgid "Something went wrong. Please try again or reload the page."
+msgstr ""
diff --git a/locale/hyperswitch.pot b/locale/hyperswitch.pot
new file mode 100644
index 0000000..e3b031a
--- /dev/null
+++ b/locale/hyperswitch.pot
@@ -0,0 +1,83 @@
+# Copyright (C) 2024 Hyperswitch
+# This file is distributed under the GPLv2 or later.
+msgid ""
+msgstr ""
+"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
+"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-woocommerce-plugin\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: LANGUAGE \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: 2024-10-05T22:36:53+05:30\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"X-Generator: WP-CLI 2.11.0\n"
+"X-Domain: hyperswitch\n"
+
+#. Plugin Name of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch Checkout for WooCommerce"
+msgstr ""
+
+#. Plugin URI of the plugin
+#. Author URI of the plugin
+#: hyperswitch-checkout.php
+msgid "https://hyperswitch.io/"
+msgstr ""
+
+#. Description of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch checkout plugin for WooCommerce"
+msgstr ""
+
+#. Author of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch"
+msgstr ""
+
+#. translators: Webhook received log message
+#: includes/hyperswitch-webhook.php:71
+msgid "WC_WEBHOOK_RECEIVED"
+msgstr ""
+
+#: includes/hyperswitch-webhook.php:85
+msgid "failed"
+msgstr ""
+
+#: includes/hyperswitch-webhook.php:88
+#: includes/hyperswitch-webhook.php:155
+msgid "processing"
+msgstr ""
+
+#: includes/hyperswitch-webhook.php:91
+msgid "action required"
+msgstr ""
+
+#. translators: Order placed log message
+#: includes/hyperswitch-webhook.php:115
+msgid "WC_ORDER_PLACED"
+msgstr ""
+
+#. translators: 1: Payment method 2: Payment ID
+#: includes/hyperswitch-webhook.php:124
+msgid "Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch Webhook)"
+msgstr ""
+
+#. translators: Payment succeeded webhook log message
+#: includes/hyperswitch-webhook.php:135
+msgid "WC_PAYMENT_SUCCEEDED_WEBHOOK"
+msgstr ""
+
+#: includes/hyperswitch-webhook.php:158
+msgid "pending"
+msgstr ""
+
+#. translators: 1: Payment status 2: Payment method 3: Payment ID
+#: includes/hyperswitch-webhook.php:163
+msgid "Payment %1$s via %2$s (Hyperswitch Payment ID: %3$s) (via Hyperswitch Webhook)"
+msgstr ""
+
+#. translators: %s: Refund ID
+#: includes/hyperswitch-webhook.php:216
+msgid "Refund Successful (Hyperswitch Refund ID: %1$s) (via Hyperswitch Webhook)"
+msgstr ""
diff --git a/locale/languages/en_US/hyperswitch-checkout-en_US.mo b/locale/languages/en_US/hyperswitch-checkout-en_US.mo
new file mode 100644
index 0000000000000000000000000000000000000000..481796cba20f26a835ed3e09aebdf313c13b4cda
GIT binary patch
literal 6592
zcmeH~O^h5z6~_xmg1saJ>^NX2fl9E!i`}!k+YGI#UZje
zZ)XywzE7zMcmc}u%WyZm4&M(GsNpSm6ut_dhQEb};T{IL4$s0}@D;cZz6QmvUqBh>
zZx#Oq-^cxq9oPaNf|uYm_&EF~l>VQ>{qR@t5d0@(O7#Rr3Mb)SI1QKKC3qZu1BxGh
z0~>HZixWN%Wt}hc@gV#*#1!>CxCj0aiv4fE2jHI}Q>r(s{hMW;54-`Ng)w{v{tRaDVJ1Tg^&&hBUxH2eBe)26;k*yQFTmfS
z@lD9m)MuDfbbStrt}jB-^>rxg`tk?M^?nt~^Djfu^;=N%_yN@Lbtt<26^gEp;RLbc
zb5L~s3gl1yg^zvk-%xbj!(cK_z2Yon>1qjzuGiru_$m}#|6cV!@KCAiUU-P#&p^@h
zM#UGP=z0?_!>>Wn^-oZAeH5|8?_tI7K%`NBgre&|psfEb$e+6R;nMy`ATCukD7v14
z(ti#fgU>iw!O%s2M55-@|tDdBNl=czY
z6EwNR2Xfs{lYADfB_7AGecU`kBLs_Bslg*O@iXD3W@sKwE{VBmn#8{7sb+mYPTN5o
zso5}$2inhF7WZxHbQWu8{XDhdhEB|eUJs1ExRKB`2r|D{J)hcc;4+)q_SRR2Z#c6~
z7k7OdWx8*(Ufg!oy93+m#qpZcoiy%`k1cbj*0;gBg(lQl(6>5I+9tD3$DQGLg^}gY
znpI$0?NlqBI#YhQ#6)KfxKmTbm(7k95A|F
zs{DdSd*f57IUIwTMu%o2&NJ*aneGIc(*qlZx_F+BRIe`Jj123enwmp}AUmw*Z7az1
z9ENHWwe?jKhBnjHTuvWM;z6<6*2egplWMNgUi&ybLpG88Y8?ApvZiNm40hBc-7bv&Z0pDHPb;i#HD3Vl%?&c|tA&xQlD;r{#A
zmL+=ZNVO`R^ku5O?olVh*tBh1HQ6l48NzZP1%5y>b!&Plw1yz@<0vy&>hdIs(=r|n
zLF_UqnYDL*IZHRR=^8>4W!Qz7uPPZ`c{MRUv9Y;*H52Oxoee$cVGlVYrD#}#{HppU
zWw~{_Uqm%Ei=heJvT#!-@$p9Fj~0DfS(aXA9mae!Gg%~b@xJ=4^?rQoX6?xsJhqu&3@p730BZsC|yfRieYj-zv#$M%6L~57}-?BE+ZR>|@
zSZx`LdLCp_)r)Ph9k_%Ih!u<3Z@)R-cE=wZARO&gkUG=76#sM
zteSKYWtf{M2+|bdJ%3GW#4ik7|+ZQ{W8EskJn35GlGUsN2AhL;wn(Ad)
z;u=#^z0CttEr_QSW&8%Y>n*gs&$73mLu1QI|5xeOGqvNj`oyx8Jn|M@H)wlj^RDw&
z;)WhhHo)eDLh5R9+MTMBZmO*BKyC*Iimw77^9-+zNw4wDW)9M9XLk_j=
zr`p!7WpU!IJ+*f1NO-h%h8Lo4POtm!xOxu`3(YGQF=@!aOpW@^(Da})to^Hy+0
zLudA8hDoILNt|y|XS36*E9bovo6m_69h-XRB0p}ECJlXp^UTE36>r(D2jVkto(O5^
z`gHxMH#6-`AJ;SW#0?KxC$4!HY-H1N6<3$MxyuW>UYik9u6gsMdVtTzbn%8U
zFj`WB^WgKV&55NjPfh5ZCuCehM|g@`ce;L3mtRjGjP&ED^~~hSiS2Xr_Bp!x$7uT;
ny?u@zJ9BTJqlc%Zv2Aku9KC&x-abeBz0tXN`y73D=ji_cHxIqg
literal 0
HcmV?d00001
diff --git a/locale/languages/en_US/hyperswitch-checkout-en_US.po b/locale/languages/en_US/hyperswitch-checkout-en_US.po
new file mode 100644
index 0000000..4993e40
--- /dev/null
+++ b/locale/languages/en_US/hyperswitch-checkout-en_US.po
@@ -0,0 +1,300 @@
+# Copyright (C) 2024 Hyperswitch
+# This file is distributed under the GPLv2 or later.
+msgid ""
+msgstr ""
+"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
+"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-"
+"woocommerce-plugin\n"
+"Last-Translator: \n"
+"Language-Team: English\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: 2024-10-06T12:46:48+05:30\n"
+"PO-Revision-Date: 2024-10-06 12:52+0530\n"
+"X-Generator: WP-CLI 2.11.0\n"
+"X-Domain: hyperswitch-checkout\n"
+"Language: en_US\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Plugin Name of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch Checkout for WooCommerce"
+msgstr "Hyperswitch Checkout for WooCommerce"
+
+#. Plugin URI of the plugin
+#. Author URI of the plugin
+#: hyperswitch-checkout.php
+msgid "https://hyperswitch.io/"
+msgstr "https://hyperswitch.io/"
+
+#. Description of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch checkout plugin for WooCommerce"
+msgstr "Hyperswitch checkout plugin for WooCommerce"
+
+#. Author of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch"
+msgstr "Hyperswitch"
+
+#: hyperswitch-checkout.php:60
+msgid "Allow customers to securely pay via Hyperswitch"
+msgstr "Allow customers to securely pay via Hyperswitch"
+
+#: hyperswitch-checkout.php:134
+msgid "Settings"
+msgstr "Settings"
+
+#: hyperswitch-checkout.php:237
+msgid "Capture Payment with Hyperswitch"
+msgstr "Capture Payment with Hyperswitch"
+
+#: hyperswitch-checkout.php:241
+msgid "Sync Payment with Hyperswitch"
+msgstr "Sync Payment with Hyperswitch"
+
+#. translators: %s: payment ID
+#: hyperswitch-checkout.php:286
+msgid "Synced Payment Status (Hyperswitch Payment ID: %s)"
+msgstr "Synced Payment Status (Hyperswitch Payment ID: %s)"
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:297 hyperswitch-checkout.php:876
+msgid "Payment successful via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr "Payment successful via %1$s (Hyperswitch Payment ID: %2$s)"
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:306 hyperswitch-checkout.php:894
+msgid "Payment processing via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr "Payment processing via %1$s (Hyperswitch Payment ID: %2$s)"
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:313
+msgid "Payment failed via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr "Payment failed via %1$s (Hyperswitch Payment ID: %2$s)"
+
+#: hyperswitch-checkout.php:326
+msgid "Enable/Disable"
+msgstr "Enable/Disable"
+
+#: hyperswitch-checkout.php:327
+msgid "Enable Hyperswitch"
+msgstr "Enable Hyperswitch"
+
+#: hyperswitch-checkout.php:333
+msgid "Title"
+msgstr "Title"
+
+#: hyperswitch-checkout.php:335
+msgid ""
+"The title to be displayed for Hyperswitch Payment Method (in case of "
+"multiple WooCommerce Payment Gateways/ Methods)"
+msgstr ""
+"The title to be displayed for Hyperswitch Payment Method (in case of "
+"multiple WooCommerce Payment Gateways/ Methods)"
+
+#: hyperswitch-checkout.php:336
+msgid "Credit, Debit Card and Wallet Payments (powered by Hyperswitch)"
+msgstr "Credit, Debit Card and Wallet Payments (powered by Hyperswitch)"
+
+#: hyperswitch-checkout.php:339
+msgid "Environment"
+msgstr "Environment"
+
+#: hyperswitch-checkout.php:340
+msgid "Select Environment"
+msgstr "Select Environment"
+
+#: hyperswitch-checkout.php:343
+msgid "Production"
+msgstr "Production"
+
+#: hyperswitch-checkout.php:344
+msgid "Sandbox"
+msgstr "Sandbox"
+
+#: hyperswitch-checkout.php:349
+msgid "Api Key"
+msgstr "Api Key"
+
+#: hyperswitch-checkout.php:351 hyperswitch-checkout.php:356
+#: hyperswitch-checkout.php:361
+msgid "Find this on Developers > API Keys section of Hyperswitch Dashboard"
+msgstr "Find this on Developers > API Keys section of Hyperswitch Dashboard"
+
+#: hyperswitch-checkout.php:354
+msgid "Publishable key"
+msgstr "Publishable key"
+
+#: hyperswitch-checkout.php:359
+msgid "Payment Response Hash Key"
+msgstr "Payment Response Hash Key"
+
+#: hyperswitch-checkout.php:364
+msgid "Business Profile ID"
+msgstr "Business Profile ID"
+
+#: hyperswitch-checkout.php:366
+msgid ""
+"Find this on Settings > Business profiles section of Hyperswitch Dashboard"
+msgstr ""
+"Find this on Settings > Business profiles section of Hyperswitch Dashboard"
+
+#: hyperswitch-checkout.php:369
+msgid "Enable Webhook"
+msgstr "Enable Webhook"
+
+#. translators: %s: webhook URL
+#: hyperswitch-checkout.php:373
+msgid ""
+"Allow webhooks from Hyperswitch to receive real time updates of payments to "
+"update orders.
%s
Use this URL to be entered "
+"as Webhook URL on Hyperswitch dashboard"
+msgstr ""
+"Allow webhooks from Hyperswitch to receive real time updates of payments to "
+"update orders.
%s
Use this URL to be entered "
+"as Webhook URL on Hyperswitch dashboard"
+
+#: hyperswitch-checkout.php:376
+msgid "Enable Hyperswitch Webhook"
+msgstr "Enable Hyperswitch Webhook"
+
+#: hyperswitch-checkout.php:380
+msgid "Capture Method"
+msgstr "Capture Method"
+
+#: hyperswitch-checkout.php:381
+msgid "Select Capture Method"
+msgstr "Select Capture Method"
+
+#: hyperswitch-checkout.php:383
+msgid "Specify whether you want to capture payments manually or automatically"
+msgstr "Specify whether you want to capture payments manually or automatically"
+
+#: hyperswitch-checkout.php:385
+msgid "Automatic"
+msgstr "Automatic"
+
+#: hyperswitch-checkout.php:386
+msgid "Manual"
+msgstr "Manual"
+
+#: hyperswitch-checkout.php:391 hyperswitch-checkout.php:394
+msgid "Enable Saved Payment Methods"
+msgstr "Enable Saved Payment Methods"
+
+#: hyperswitch-checkout.php:393
+msgid "Allow registered customers to pay via saved payment methods"
+msgstr "Allow registered customers to pay via saved payment methods"
+
+#: hyperswitch-checkout.php:398
+msgid "Show Card Form Always"
+msgstr "Show Card Form Always"
+
+#: hyperswitch-checkout.php:400
+msgid "Show Card Form before Payment Methods List has loaded"
+msgstr "Show Card Form before Payment Methods List has loaded"
+
+#: hyperswitch-checkout.php:404
+msgid "Appearance"
+msgstr "Appearance"
+
+#: hyperswitch-checkout.php:407
+msgid ""
+"Use the above parameter to pass appearance config (in json format) to the "
+"checkout."
+msgstr ""
+"Use the above parameter to pass appearance config (in json format) to the "
+"checkout."
+
+#: hyperswitch-checkout.php:410
+msgid "Layout"
+msgstr "Layout"
+
+#: hyperswitch-checkout.php:411
+msgid "Select Layout"
+msgstr "Select Layout"
+
+#: hyperswitch-checkout.php:413
+msgid "Choose a layout that fits well with your UI pattern."
+msgstr "Choose a layout that fits well with your UI pattern."
+
+#: hyperswitch-checkout.php:415
+msgid "Tabs"
+msgstr "Tabs"
+
+#: hyperswitch-checkout.php:416
+msgid "Accordion"
+msgstr "Accordion"
+
+#: hyperswitch-checkout.php:417
+msgid "Spaced Accordion"
+msgstr "Spaced Accordion"
+
+#: hyperswitch-checkout.php:422
+msgid "Hold Order on Processing Payments"
+msgstr "Hold Order on Processing Payments"
+
+#: hyperswitch-checkout.php:424
+msgid ""
+"Disable this only if you do not want to reduce stock levels until the "
+"payment is successful."
+msgstr ""
+"Disable this only if you do not want to reduce stock levels until the "
+"payment is successful."
+
+#: hyperswitch-checkout.php:425
+msgid ""
+"Whether to hold order, reduce stock if a payment goes into processing status."
+msgstr ""
+"Whether to hold order, reduce stock if a payment goes into processing status."
+
+#: hyperswitch-checkout.php:452 hyperswitch-checkout.php:492
+msgid "Unable to Create Hyperswitch Payment Intent."
+msgstr "Unable to Create Hyperswitch Payment Intent."
+
+#: hyperswitch-checkout.php:456 hyperswitch-checkout.php:459
+#: hyperswitch-checkout.php:496 hyperswitch-checkout.php:499
+msgid "Something went wrong. Please contact support for assistance."
+msgstr "Something went wrong. Please contact support for assistance."
+
+#: hyperswitch-checkout.php:713
+msgid "Customer created via Woocommerce Application"
+msgstr "Customer created via Woocommerce Application"
+
+#: hyperswitch-checkout.php:862
+msgid ""
+"Thank you for shopping with us. However, the transaction has been declined."
+msgstr ""
+"Thank you for shopping with us. However, the transaction has been declined."
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:887
+msgid ""
+"Payment authorized via %1$s (Hyperswitch Payment ID: %2$s). Note: Requires "
+"Capture"
+msgstr ""
+"Payment authorized via %1$s (Hyperswitch Payment ID: %2$s). Note: Requires "
+"Capture"
+
+#. translators: %1$s: payment method, %2$s: payment ID, %3$s: error message
+#: hyperswitch-checkout.php:908
+msgid ""
+"Payment failed via %1$s (Hyperswitch Payment ID: %2$s) with error message: "
+"%3$s"
+msgstr ""
+"Payment failed via %1$s (Hyperswitch Payment ID: %2$s) with error message: "
+"%3$s"
+
+#: hyperswitch-checkout.php:915
+msgid ""
+"Thank you for shopping with us. However, the payment has failed. Please "
+"retry the payment."
+msgstr ""
+"Thank you for shopping with us. However, the payment has failed. Please "
+"retry the payment."
+
+#: hyperswitch-checkout.php:964
+msgid "Something went wrong. Please try again or reload the page."
+msgstr "Something went wrong. Please try again or reload the page."
diff --git a/locale/languages/en_US/hyperswitch-en_US.mo b/locale/languages/en_US/hyperswitch-en_US.mo
new file mode 100644
index 0000000000000000000000000000000000000000..c8c16fd7884991a36641aeccbda545ed73947db5
GIT binary patch
literal 1749
zcmeH{Pfyf97{;rDU`0(N#*2qBfdqoH{{X=vM(7sV$e+!!uz1>(cD60MJ5y&`kdq%m
zy?FKJRX>3-9=!MsO#BeueTH4!B?Rs!PWJ6@X8QJd-kE9l=k0-a2HGveJ;YnYUBt*G
zT+l-BIv9atUH2^}7>|J_
z_yGI?%{fr}4h?pEM?vj74{Bc@)V`lU?K=!n?OOr0?;faqUw7x48hw3Y
zhs{OC>k`%YnAmV3o%kEK|@q~=$#}qk;TryrjXQJQdB&Afe
z$oTY_nj{lCu|K88_Cg_=lg3G|Nf!5_03ArsnpABOSV%qFfK2>Sa&w6^{s8&cATP9tk<07)y>W4`ewIVuQ;|-+Q9>^
zmqdaS$zGV8l}B?a2ewpj
z+qQ_qgI1(MbG@|g^p=*-Tpl!{j}bQ5S5a)lY1&(Yj0DHN>fxvAXjbk5wR&lqR2vx-`o
z+G{0J$mDe?yR<0Uu*R14j_U79EW&twd&?}hQt7tnijZw(5snSQP%Rb~NT<6v!O8ta
XlAl~K`#-k+{{OGD^N&UTt*`SB|7q>?
literal 0
HcmV?d00001
diff --git a/locale/languages/en_US/hyperswitch-en_US.po b/locale/languages/en_US/hyperswitch-en_US.po
new file mode 100644
index 0000000..a12cde2
--- /dev/null
+++ b/locale/languages/en_US/hyperswitch-en_US.po
@@ -0,0 +1,95 @@
+# Copyright (C) 2024 Hyperswitch
+# This file is distributed under the GPLv2 or later.
+msgid ""
+msgstr ""
+"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
+"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-"
+"woocommerce-plugin\n"
+"Last-Translator: \n"
+"Language-Team: English\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: 2024-10-05T22:36:53+05:30\n"
+"PO-Revision-Date: 2024-10-05 22:37+0530\n"
+"X-Generator: WP-CLI 2.11.0\n"
+"X-Domain: hyperswitch\n"
+"Language: en_US\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Plugin Name of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch Checkout for WooCommerce"
+msgstr "Hyperswitch Checkout for WooCommerce"
+
+#. Plugin URI of the plugin
+#. Author URI of the plugin
+#: hyperswitch-checkout.php
+msgid "https://hyperswitch.io/"
+msgstr "https://hyperswitch.io/"
+
+#. Description of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch checkout plugin for WooCommerce"
+msgstr "Hyperswitch checkout plugin for WooCommerce"
+
+#. Author of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch"
+msgstr "Hyperswitch"
+
+#. translators: Webhook received log message
+#: includes/hyperswitch-webhook.php:71
+msgid "WC_WEBHOOK_RECEIVED"
+msgstr "WC_WEBHOOK_RECEIVED"
+
+#: includes/hyperswitch-webhook.php:85
+msgid "failed"
+msgstr "failed"
+
+#: includes/hyperswitch-webhook.php:88 includes/hyperswitch-webhook.php:155
+msgid "processing"
+msgstr "processing"
+
+#: includes/hyperswitch-webhook.php:91
+msgid "action required"
+msgstr "action required"
+
+#. translators: Order placed log message
+#: includes/hyperswitch-webhook.php:115
+msgid "WC_ORDER_PLACED"
+msgstr "WC_ORDER_PLACED"
+
+#. translators: 1: Payment method 2: Payment ID
+#: includes/hyperswitch-webhook.php:124
+msgid ""
+"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
+"Webhook)"
+msgstr ""
+"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
+"Webhook)"
+
+#. translators: Payment succeeded webhook log message
+#: includes/hyperswitch-webhook.php:135
+msgid "WC_PAYMENT_SUCCEEDED_WEBHOOK"
+msgstr "WC_PAYMENT_SUCCEEDED_WEBHOOK"
+
+#: includes/hyperswitch-webhook.php:158
+msgid "pending"
+msgstr "pending"
+
+#. translators: 1: Payment status 2: Payment method 3: Payment ID
+#: includes/hyperswitch-webhook.php:163
+msgid ""
+"Payment %1$s via %2$s (Hyperswitch Payment ID: %3$s) (via Hyperswitch "
+"Webhook)"
+msgstr ""
+"Payment %1$s via %2$s (Hyperswitch Payment ID: %3$s) (via Hyperswitch "
+"Webhook)"
+
+#. translators: %s: Refund ID
+#: includes/hyperswitch-webhook.php:216
+msgid ""
+"Refund Successful (Hyperswitch Refund ID: %1$s) (via Hyperswitch Webhook)"
+msgstr ""
+"Refund Successful (Hyperswitch Refund ID: %1$s) (via Hyperswitch Webhook)"
diff --git a/locale/languages/es_ES/hyperswitch-checkout-es_ES.mo b/locale/languages/es_ES/hyperswitch-checkout-es_ES.mo
new file mode 100644
index 0000000000000000000000000000000000000000..054f690e48353c5c023c96fedfce387de69707c4
GIT binary patch
literal 7010
zcmbuDON<;x8OJM-5NCPYNg&}>33l)j&+NmGB;!Z2+4W-+ue0o~V*?4Hrl)qMy*=HX
zuI^oLgoNP01rBiFf`q_A94thn5OG1`rG*O$k$@nCKpY4Hi9@&qBoGLGUv>BFtQ|W}
zXsPEv(^dV|SKs&l9yNd1e*Kpf*Fo<0a=(0?QjdVoy^#;DZ8s=&6L=Fi2JQf5?lkyA
z@YCRp;Qen>Y6LtE%KQaz2lyEHHZTP>_-Sw-_;v7p@YmoT@D_wT20jRG2fqg14t@s|
zy?zdgoWEB1Pw>tB-nI>0z?;E`z_Z{T;5R@S|0%c=`~`S7_z#dJ)tx9QI11hdj)M!}
zL*N1MtDxB71+WF~WOIT~fU?i8@bPx=n;@#F?}E30-v>qiUx9B0{|vIEdbt|^54fM-
zJ5cTrI17s0&w=j%e+(W2e+j-1yzMPYO@jA;*MsN4kAVsJF!(bt2XAFDT%kS>?g769
zE`mP*=fLe4?_J<0!9U^S^B`MOkF%((*9B$X)8OyHe}gjq+jo}xeGx<@^%5v@{sqcD
zxAP%-?gCGM)8Hxa3!vEXci_jt?T|tE5cBbV@U!5Z-~~|Z_!E$+>IG2j`4{jL;NQR}
zz*9FXwHtgI6g_?e?gC!~?*?ze`10Oa|=&c-e0l?rt~^NQ7=>MAlF^o_xf+8t>vrOO0EMX_!t%cTzUyN
zg#U7ho%Z=}N=bV8Ft_Fw|Kk=P2V!H{r}$3nE*z2Th7uHX_wg(~7P}2!m_lI&1vPyR
zXo7pWC%J`N6Wk4MxuCxq=N{uGM3kBef+XvNNvx)#C|T1%;qs(!GpF-JI~x?4jn;K)
z*7a&=^ojM9p|vm%de!{Qc0-rj%yzcETEF4UDntD0+c?*KoA;8AtKMC+?Ou|sIK7-D
z{bAX%c4h+`u3FGUIuH9+7iq`j*6C!qmgki$A8U4jYRyCKZ0tz+;ZhSH+2sz6`7fIT
zr=8V#FLe6!!bw@FZ8f_2Ef}ZIluG%*B;KM`$GBcQFj7A}mfb9z2Ymcz*E*%>u$(i~IjId6c$&-uzOShP31l$ypcsA+U$){`PfUz6+Q
zFn4;*Mv?aO8OZeMS&WgRecV*jcp=R9=o#A%b3Kis+Qc1w#zc|Lb+wk$yVGRN@3y@@
zyymEyu6(ZpjGp5*arv1f36egH2&`tiQ5djE=rR*J(`Iwtl1U6n!exz0x|8TQ$@QAS
z-`&Wxu%aWoY9ptMI1h1Z&(@CAc*7MzfYp|ZsHu*|UiL8EE`LuSiE9vbB8fWs5n;7vMYtr^LEONRYDk6Q?|QmtgB4-Ta*~PvrYrw#
znH1EM(x~W$@nv&Qdg7@$6Bi~@wN)3aOOqI8o?y#91nLn}5ZYPzR7IOz6FXtrkcPF|
zL_FiPZnWDU{^shSZvu4JtYgTLEP(nt&Am`W!S2Zg-sWgcJ1Bi
z2J&!OZF&ia*P_ZMr+qA4)2mrR!1xfGFWOP)dOj3Z$To{ab2~Y&7HtF%Yjf2(rFuHd
z=;~4B%9@U9u}7l!>ET$C_4QP=X4c)MPumvu*n!uoaMCBq_PR%&j1tqa9kocYAZDQD
znk4u&f~nio^N}@>BuL`ips6d;G|5Un8c6JNNtw;7zno|5+H?)n#4}VO)~ixRS6)p`
z05>+v*J5geaCu#?_0WfykyKRYprFdWX_;=F?t4~~vk(n&%fwBZ#K!A!Fxd2EX<0^D
zwdVX{Zt~)4GX~@Ot0W=mdP$mklS$eyTvMMQBd^+Q&z77hRxU$eV9?Bp
zRfZC0^RWD1zd6-L9_hqpYx|9OMjz#TP3g(g)dN*DQ
z#N#B!ei7wiij1MmGqBik>WZ*!tYWPgNETG5%Z$&uR52#K;%c*$={RqyvVv0{+X)>)
zN(F|5_?)*>_@&LDEDHsf!>(8GoMYE)gepBMQ^kyR7Hq0B6>k{mN#^za#2$z@RKBQi
zW>B)a2`MX#WzEe50kdI5Q}yyZb*-_n-e$wp43jZM8b3$uHfB4GN2x9Np|xeFS4!P_
zqIsY>IkI3Sjv8~W8+IBG7G2j^N?N*JYz>`L5~*t@S$C`oy0J394{Op`+pOu0a(LvV
zad~4&=nV6G_5-_GB-PSbaST@&GC_Gasp0lEMb|J&h7ae4T9AI{D7XAZ0*12?(zM5
z$4AaKj@#H~<)+TeH>OX{>dEGWsB*S3L*$3JV8~64ni7K@wzPF4^HGtRsBsMXxR#Ew
z8b96P$%DH5dU$uN?>MX{Mh}kAQww=Eo{iPK&H7;;l4Qu2P7`Nr9onQMwv50l=}24A
zMI4ie&()2KPDX~J?TTW`<~uVTWS1iQbbvHoR`)k9=7~H<6hn!|Sy@MBZb}>U-&>bs
zKFZL4hi%b3$Y}t=r%ZsQQJsX5hqj+ehfZf+iI??d2leDkr)a`z*V>RaM0Ex-rxr5M@z4^ukn)5`>&Ul?|Mr$tL
zV%tsFnwl#OCXdQ;VN}_V;3#iEGRYRF9F4+rhE`USCGEyDiGH%6%_S*ys5Vx&SsRbK
zg17SwGKgf-1q+*}7@=?wWd5$##zeBa+;NAoq)BzZAW
zHa@KE)x}Sp<6Py%k`ClR=nYr#4pFZze*v$P!>X8)5EMrGSS)Lg=}Tfs)UZ-R-#1SL
zKDveqvm&oa_s@nr$%kLMY%Yf;A$ol#C`0Xp90YhB!=;6f;!2k1wePMt6$n$eFtKcf
zt6-G;wAG};M+8$H5je9BLQ`Uf<|vBDF|S8(soeh|z{e}cMrY1h(cK>)>Vt#t2dJCU
zj-co3*m$X56+o{~fImlgf>%i~mE%Mpr-`j62}$e(XBBC(nK}Xb^FuW({E|=_epY2Z
zRWV%6C5{S~`Kne#lHEjFozW?G7R+S5>#V`&y
zRS`p1DnytCs$pr*HvS{1=JRm()gp}MdtM@T;~C@B@l3R(j$=A%ZYq8hlf`6kavp~i
z6w$WdX3tcmI?wlv4?`5#V)fc!^|VdHHDBvWc)mKel-ZgUokTqiO3#p3F#1vcOxpN%
zUQn_s*7QpzZd|}7)JxPDqPI8GaHiW$M&4aL
zJVUoQkY|`s_BmSiQ66v-EvKDPO@~(Zvz(bjj8<}9*76M+ZAD$#c~(|)%06w4*AuFX
S`EdLu$;#|jR-7xJbp8jf+H3Ow
literal 0
HcmV?d00001
diff --git a/locale/languages/es_ES/hyperswitch-checkout-es_ES.po b/locale/languages/es_ES/hyperswitch-checkout-es_ES.po
new file mode 100644
index 0000000..5b33da7
--- /dev/null
+++ b/locale/languages/es_ES/hyperswitch-checkout-es_ES.po
@@ -0,0 +1,192 @@
+# Copyright (C) 2024 Hyperswitch
+# This file is distributed under the GPLv2 or later.
+msgid ""
+msgstr ""
+"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
+"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-"
+"woocommerce-plugin\n"
+"Last-Translator: \n"
+"Language-Team: Spanish \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: 2024-10-06T12:46:48+05:30\n"
+"PO-Revision-Date: 2024-10-06 12:57+0530\n"
+"X-Generator: WP-CLI 2.11.0\n"
+"X-Domain: hyperswitch-checkout\n"
+"Language: es\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+msgid "Hyperswitch Checkout for WooCommerce"
+msgstr "Hyperswitch Checkout para WooCommerce"
+
+msgid "https://hyperswitch.io/"
+msgstr "https://hyperswitch.io/"
+
+msgid "Hyperswitch checkout plugin for WooCommerce"
+msgstr "Plugin de pago Hyperswitch para WooCommerce"
+
+msgid "Hyperswitch"
+msgstr "Hyperswitch"
+
+msgid "Allow customers to securely pay via Hyperswitch"
+msgstr "Permitir a los clientes pagar de forma segura a través de Hyperswitch"
+
+msgid "Settings"
+msgstr "Ajustes"
+
+msgid "Capture Payment with Hyperswitch"
+msgstr "Capturar pago con Hyperswitch"
+
+msgid "Sync Payment with Hyperswitch"
+msgstr "Sincronizar pago con Hyperswitch"
+
+msgid "Synced Payment Status (Hyperswitch Payment ID: %s)"
+msgstr "Estado de pago sincronizado (ID de pago de Hyperswitch: %s)"
+
+msgid "Payment successful via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr "Pago exitoso a través de %1$s (ID de pago de Hyperswitch: %2$s)"
+
+msgid "Payment processing via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr "Procesando pago a través de %1$s (ID de pago de Hyperswitch: %2$s)"
+
+msgid "Payment failed via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr "Pago fallido a través de %1$s (ID de pago de Hyperswitch: %2$s)"
+
+msgid "Enable/Disable"
+msgstr "Activar/Desactivar"
+
+msgid "Enable Hyperswitch"
+msgstr "Activar Hyperswitch"
+
+msgid "Title"
+msgstr "Título"
+
+msgid "The title to be displayed for Hyperswitch Payment Method (in case of multiple WooCommerce Payment Gateways/ Methods)"
+msgstr "El título que se mostrará para el método de pago Hyperswitch (en caso de múltiples pasarelas/métodos de pago de WooCommerce)"
+
+msgid "Credit, Debit Card and Wallet Payments (powered by Hyperswitch)"
+msgstr "Pagos con tarjeta de crédito, débito y billetera (impulsado por Hyperswitch)"
+
+msgid "Environment"
+msgstr "Entorno"
+
+msgid "Select Environment"
+msgstr "Seleccionar entorno"
+
+msgid "Production"
+msgstr "Producción"
+
+msgid "Sandbox"
+msgstr "Sandbox"
+
+msgid "Api Key"
+msgstr "Clave API"
+
+msgid "Find this on Developers > API Keys section of Hyperswitch Dashboard"
+msgstr "Encuentre esto en la sección Desarrolladores > Claves API del Panel de Control de Hyperswitch"
+
+msgid "Publishable key"
+msgstr "Clave publicable"
+
+msgid "Payment Response Hash Key"
+msgstr "Clave Hash de respuesta de pago"
+
+msgid "Business Profile ID"
+msgstr "ID de perfil de negocio"
+
+msgid "Find this on Settings > Business profiles section of Hyperswitch Dashboard"
+msgstr "Encuentre esto en la sección Ajustes > Perfiles de negocio del Panel de Control de Hyperswitch"
+
+msgid "Enable Webhook"
+msgstr "Activar Webhook"
+
+msgid "Allow webhooks from Hyperswitch to receive real time updates of payments to update orders.
%s
Use this URL to be entered as Webhook URL on Hyperswitch dashboard"
+msgstr "Permitir webhooks de Hyperswitch para recibir actualizaciones en tiempo real de pagos para actualizar pedidos.
%s
Use esta URL para ingresarla como URL de Webhook en el panel de Hyperswitch"
+
+msgid "Enable Hyperswitch Webhook"
+msgstr "Activar Webhook de Hyperswitch"
+
+msgid "Capture Method"
+msgstr "Método de captura"
+
+msgid "Select Capture Method"
+msgstr "Seleccionar método de captura"
+
+msgid "Specify whether you want to capture payments manually or automatically"
+msgstr "Especifique si desea capturar pagos manual o automáticamente"
+
+msgid "Automatic"
+msgstr "Automático"
+
+msgid "Manual"
+msgstr "Manual"
+
+msgid "Enable Saved Payment Methods"
+msgstr "Activar métodos de pago guardados"
+
+msgid "Allow registered customers to pay via saved payment methods"
+msgstr "Permitir a los clientes registrados pagar mediante métodos de pago guardados"
+
+msgid "Show Card Form Always"
+msgstr "Mostrar formulario de tarjeta siempre"
+
+msgid "Show Card Form before Payment Methods List has loaded"
+msgstr "Mostrar formulario de tarjeta antes de que se cargue la lista de métodos de pago"
+
+msgid "Appearance"
+msgstr "Apariencia"
+
+msgid "Use the above parameter to pass appearance config (in json format) to the checkout."
+msgstr "Use el parámetro anterior para pasar la configuración de apariencia (en formato json) al checkout."
+
+msgid "Layout"
+msgstr "Diseño"
+
+msgid "Select Layout"
+msgstr "Seleccionar diseño"
+
+msgid "Choose a layout that fits well with your UI pattern."
+msgstr "Elija un diseño que se adapte bien a su patrón de interfaz de usuario."
+
+msgid "Tabs"
+msgstr "Pestañas"
+
+msgid "Accordion"
+msgstr "Acordeón"
+
+msgid "Spaced Accordion"
+msgstr "Acordeón espaciado"
+
+msgid "Hold Order on Processing Payments"
+msgstr "Retener pedido en pagos en procesamiento"
+
+msgid "Disable this only if you do not want to reduce stock levels until the payment is successful."
+msgstr "Desactive esto solo si no desea reducir los niveles de stock hasta que el pago sea exitoso."
+
+msgid "Whether to hold order, reduce stock if a payment goes into processing status."
+msgstr "Si retener el pedido y reducir el stock si un pago entra en estado de procesamiento."
+
+msgid "Unable to Create Hyperswitch Payment Intent."
+msgstr "No se puede crear la intención de pago de Hyperswitch."
+
+msgid "Something went wrong. Please contact support for assistance."
+msgstr "Algo salió mal. Por favor, contacte con soporte para obtener ayuda."
+
+msgid "Customer created via Woocommerce Application"
+msgstr "Cliente creado a través de la aplicación Woocommerce"
+
+msgid "Thank you for shopping with us. However, the transaction has been declined."
+msgstr "Gracias por comprar con nosotros. Sin embargo, la transacción ha sido rechazada."
+
+msgid "Payment authorized via %1$s (Hyperswitch Payment ID: %2$s). Note: Requires Capture"
+msgstr "Pago autorizado a través de %1$s (ID de pago de Hyperswitch: %2$s). Nota: Requiere captura"
+
+msgid "Payment failed via %1$s (Hyperswitch Payment ID: %2$s) with error message: %3$s"
+msgstr "Pago fallido a través de %1$s (ID de pago de Hyperswitch: %2$s) con mensaje de error: %3$s"
+
+msgid "Thank you for shopping with us. However, the payment has failed. Please retry the payment."
+msgstr "Gracias por comprar con nosotros. Sin embargo, el pago ha fallado. Por favor, intente el pago nuevamente."
+
+msgid "Something went wrong. Please try again or reload the page."
+msgstr "Algo salió mal. Por favor, intente nuevamente o recargue la página."
\ No newline at end of file
diff --git a/locale/languages/es_ES/hyperswitch-es_ES.mo b/locale/languages/es_ES/hyperswitch-es_ES.mo
new file mode 100644
index 0000000000000000000000000000000000000000..31eacb41ec73e3bdf2cdee6a9fe8612880896e06
GIT binary patch
literal 1815
zcma)*&2QX97{*OMXuAXutq>O^rcxp$Dzjfnpmmz6o3-0oB-zzw+f5PDYGTjsPS@)(
zGj`Jc8Ax#9%!M-?xfOARI}#EcxpU{4wKwafBw%U$oAJE!KJU!<`R)3puPi)oqrH#z
zCE9yvORwRDX9T_h3UC=r!CTbP51g~Ly0UwR-5(wGpx3@s^4XLd+(adAkqI7Es?JAmiE@gP-ZR$q((|ww=
zm_CnQ#9ZkUk@zF4&?n6i_s23#$UrL6ld>r%6Rv!|5aiE-;xHYG=#|(udokfrLRM%S1P0VRh5OTSTTg
z+g9=!_Y>*`^a-vN+3ba*JnL3Tt^85BUh42zs)X+8p$OK
zD>{u$a3#C?VsZ3DN)}TE9u`EylnpuUayGHaLChkdN8~Qo_mkKZQ0DqxY0ukp=R2*HtEHxl68v(si^H->
z!k?Q8nTWQCKVnMrWczXV0lhtsGc^skqHg3%bDTE0eI$}nyG1+vSePTE4oi@$UafD?
zT9sBeNxg1w)NfTc*Q=#N`jAIlWt-}?X>->j^>WRWa!4IHfizBVesiZAvkBLwc9<#_
z(g#vav`r!$7KVDezD2U`_G(0KZj;*DR;g$_IAJIkE;eS0E!Y&9jUxk2;{T2{5mS#c
zk|=ik@>^{dW@h!Ae@k*|*5ZngFrNQd*u
zkqn_QQ_AzI(}_Y+*g@v!|Cc;B_deX(*!4bbIE~ET4_kfr(CfAiS~EZY!`j}C=d@sL
eU%dP-^EOu^U@&(Wia?(4Zv4qS_cweZt-k?`p9ksy
literal 0
HcmV?d00001
diff --git a/locale/languages/es_ES/hyperswitch-es_ES.po b/locale/languages/es_ES/hyperswitch-es_ES.po
new file mode 100644
index 0000000..a8cbf29
--- /dev/null
+++ b/locale/languages/es_ES/hyperswitch-es_ES.po
@@ -0,0 +1,96 @@
+# Copyright (C) 2024 Hyperswitch
+# This file is distributed under the GPLv2 or later.
+msgid ""
+msgstr ""
+"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
+"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-"
+"woocommerce-plugin\n"
+"Last-Translator: \n"
+"Language-Team: Spanish \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: 2024-10-05T22:36:53+05:30\n"
+"PO-Revision-Date: 2024-10-05 22:42+0530\n"
+"X-Generator: WP-CLI 2.11.0\n"
+"X-Domain: hyperswitch\n"
+"Language: es\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Plugin Name of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch Checkout for WooCommerce"
+msgstr "Pago Hyperswitch para WooCommerce"
+
+#. Plugin URI of the plugin
+#. Author URI of the plugin
+#: hyperswitch-checkout.php
+msgid "https://hyperswitch.io/"
+msgstr "https://hyperswitch.io/"
+
+#. Description of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch checkout plugin for WooCommerce"
+msgstr "Plugin de pago Hyperswitch para WooCommerce"
+
+#. Author of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch"
+msgstr "Hyperswitch"
+
+#. translators: Webhook received log message
+#: includes/hyperswitch-webhook.php:71
+msgid "WC_WEBHOOK_RECEIVED"
+msgstr "WC_WEBHOOK_RECIBIDO"
+
+#: includes/hyperswitch-webhook.php:85
+msgid "failed"
+msgstr "fallido"
+
+#: includes/hyperswitch-webhook.php:88 includes/hyperswitch-webhook.php:155
+msgid "processing"
+msgstr "procesando"
+
+#: includes/hyperswitch-webhook.php:91
+msgid "action required"
+msgstr "acción requerida"
+
+#. translators: Order placed log message
+#: includes/hyperswitch-webhook.php:115
+msgid "WC_ORDER_PLACED"
+msgstr "WC_ORDEN_REALIZADA"
+
+#. translators: 1: Payment method 2: Payment ID
+#: includes/hyperswitch-webhook.php:124
+msgid ""
+"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
+"Webhook)"
+msgstr ""
+"Pago exitoso a través de %1$s (ID de pago Hyperswitch: %2$s) (a través del "
+"Webhook de Hyperswitch)"
+
+#. translators: Payment succeeded webhook log message
+#: includes/hyperswitch-webhook.php:135
+msgid "WC_PAYMENT_SUCCEEDED_WEBHOOK"
+msgstr "WC_PAGO_EXITOSO_WEBHOOK"
+
+#: includes/hyperswitch-webhook.php:158
+msgid "pending"
+msgstr "pendiente"
+
+#. translators: 1: Payment status 2: Payment method 3: Payment ID
+#: includes/hyperswitch-webhook.php:163
+msgid ""
+"Payment %1$s via %2$s (Hyperswitch Payment ID: %3$s) (via Hyperswitch "
+"Webhook)"
+msgstr ""
+"Pago %1$s a través de %2$s (ID de pago Hyperswitch: %3$s) (a través del "
+"Webhook de Hyperswitch)"
+
+#. translators: %s: Refund ID
+#: includes/hyperswitch-webhook.php:216
+msgid ""
+"Refund Successful (Hyperswitch Refund ID: %1$s) (via Hyperswitch Webhook)"
+msgstr ""
+"Reembolso exitoso (ID de reembolso Hyperswitch: %1$s) (a través del Webhook "
+"de Hyperswitch)"
From c92db90f8ba88b890b518e3c2bd0aab668c8f225 Mon Sep 17 00:00:00 2001
From: AviGawande <2041024@gcoej.ac.in>
Date: Fri, 1 Nov 2024 13:11:06 +0530
Subject: [PATCH 2/3] consolidate-pot-files
---
hyperswitch-checkout.php | 128 ++++----
locale/hyperswitch-checkout.pot | 268 ----------------
locale/hyperswitch.pot | 277 +++++++++++++++-
.../en_US/hyperswitch-checkout-en_US.mo | Bin 6592 -> 0 bytes
.../en_US/hyperswitch-checkout-en_US.po | 300 ------------------
locale/languages/en_US/hyperswitch-en_US.mo | Bin 1749 -> 1749 bytes
locale/languages/en_US/hyperswitch-en_US.po | 268 +++++++++++++++-
locale/languages/en_US/hyperswitch-en_US.po~ | 95 ++++++
.../es_ES/hyperswitch-checkout-es_ES.mo | Bin 7010 -> 0 bytes
.../es_ES/hyperswitch-checkout-es_ES.po | 192 -----------
locale/languages/es_ES/hyperswitch-es_ES.mo | Bin 1815 -> 1815 bytes
locale/languages/es_ES/hyperswitch-es_ES.po | 268 +++++++++++++++-
locale/languages/es_ES/hyperswitch-es_ES.po~ | 96 ++++++
13 files changed, 1056 insertions(+), 836 deletions(-)
delete mode 100644 locale/hyperswitch-checkout.pot
delete mode 100644 locale/languages/en_US/hyperswitch-checkout-en_US.mo
delete mode 100644 locale/languages/en_US/hyperswitch-checkout-en_US.po
create mode 100644 locale/languages/en_US/hyperswitch-en_US.po~
delete mode 100644 locale/languages/es_ES/hyperswitch-checkout-es_ES.mo
delete mode 100644 locale/languages/es_ES/hyperswitch-checkout-es_ES.po
create mode 100644 locale/languages/es_ES/hyperswitch-es_ES.po~
diff --git a/hyperswitch-checkout.php b/hyperswitch-checkout.php
index f2214b3..036290f 100644
--- a/hyperswitch-checkout.php
+++ b/hyperswitch-checkout.php
@@ -7,7 +7,7 @@
* Author URI: https://hyperswitch.io/
* Version: 1.6.2
* License: GPLv2 or later
- * Text Domain: hyperswitch-checkout
+ * Text Domain: hyperswitch
* Domain Path: /languages
*
* WC requires at least: 4.0.0
@@ -57,7 +57,7 @@ public function __construct() {
$this->enabled = $this->get_option( 'enabled' );
$this->id = 'hyperswitch_checkout';
$this->method_title = __( 'Hyperswitch' );
- $this->method_description = __( 'Allow customers to securely pay via Hyperswitch', 'hyperswitch-checkout' );
+ $this->method_description = __( 'Allow customers to securely pay via Hyperswitch', 'hyperswitch' );
$this->has_fields = true;
@@ -131,7 +131,7 @@ public function __construct() {
function plugin_action_links( $links ) {
$plugin_links = [
- '' . esc_html__( 'Settings', 'hyperswitch-checkout' ) . '',
+ '' . esc_html__( 'Settings', 'hyperswitch' ) . '',
];
return array_merge( $plugin_links, $links );
}
@@ -234,11 +234,11 @@ function hyperswitch_add_manual_actions( $actions ) {
$terminal_status = array( "processing", "refunded" );
// bail if the order has been paid for or this action has been run
if ( ! ( $theorder->is_paid() || $theorder->get_meta( 'payment_captured' ) == 'yes' || strlen( $payment_id ) < 3 || in_array( $theorder->status, $terminal_status ) ) ) {
- $actions['wc_manual_capture_action'] = __( 'Capture Payment with Hyperswitch', 'hyperswitch-checkout' );
+ $actions['wc_manual_capture_action'] = __( 'Capture Payment with Hyperswitch', 'hyperswitch' );
}
if ( ! ( in_array( $theorder->status, $terminal_status ) || strlen( $payment_id ) < 3 ) ) {
- $actions['wc_manual_sync_action'] = __( 'Sync Payment with Hyperswitch', 'hyperswitch-checkout' );
+ $actions['wc_manual_sync_action'] = __( 'Sync Payment with Hyperswitch', 'hyperswitch' );
}
return $actions;
}
@@ -283,7 +283,7 @@ function hyperswitch_process_manual_sync_action( $order ) {
$order->add_order_note( sprintf(
/* translators: %s: payment ID */
- __('Synced Payment Status (Hyperswitch Payment ID: %s)', 'hyperswitch-checkout'),
+ __('Synced Payment Status (Hyperswitch Payment ID: %s)', 'hyperswitch'),
$payment_id
));
@@ -294,7 +294,7 @@ function hyperswitch_process_manual_sync_action( $order ) {
if ( $order->status !== 'refunded' ) {
$order->add_order_note( sprintf(
/* translators: %1$s: payment method, %2$s: payment ID */
- __('Payment successful via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch-checkout'),
+ __('Payment successful via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch'),
$payment_method,
$payment_id
));
@@ -303,14 +303,14 @@ function hyperswitch_process_manual_sync_action( $order ) {
} else if ( in_array( $status, $intermediate_status ) ) {
$order->add_order_note( sprintf(
/* translators: %1$s: payment method, %2$s: payment ID */
- __('Payment processing via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch-checkout'),
+ __('Payment processing via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch'),
$payment_method,
$payment_id
));
} else {
$order->add_order_note( sprintf(
/* translators: %1$s: payment method, %2$s: payment ID */
- __('Payment failed via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch-checkout'),
+ __('Payment failed via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch'),
$payment_method,
$payment_id
));
@@ -323,106 +323,106 @@ public function init_form_fields() {
$this->form_fields = array(
'enabled' => array(
- 'title' => __('Enable/Disable', 'hyperswitch-checkout'),
- 'label' => __('Enable Hyperswitch', 'hyperswitch-checkout'),
+ 'title' => __('Enable/Disable', 'hyperswitch'),
+ 'label' => __('Enable Hyperswitch', 'hyperswitch'),
'type' => 'checkbox',
'description' => '',
'default' => 'yes'
),
'method_title' => array(
- 'title' => __('Title', 'hyperswitch-checkout'),
+ 'title' => __('Title', 'hyperswitch'),
'type' => 'textarea',
- 'description' => __('The title to be displayed for Hyperswitch Payment Method (in case of multiple WooCommerce Payment Gateways/ Methods)', 'hyperswitch-checkout'),
- 'default' => __('Credit, Debit Card and Wallet Payments (powered by Hyperswitch)', 'hyperswitch-checkout')
+ 'description' => __('The title to be displayed for Hyperswitch Payment Method (in case of multiple WooCommerce Payment Gateways/ Methods)', 'hyperswitch'),
+ 'default' => __('Credit, Debit Card and Wallet Payments (powered by Hyperswitch)', 'hyperswitch')
),
'environment' => array(
- 'title' => __('Environment', 'hyperswitch-checkout'),
- 'label' => __('Select Environment', 'hyperswitch-checkout'),
+ 'title' => __('Environment', 'hyperswitch'),
+ 'label' => __('Select Environment', 'hyperswitch'),
'type' => 'select',
'options' => array(
- 'production' => __('Production', 'hyperswitch-checkout'),
- 'sandbox' => __('Sandbox', 'hyperswitch-checkout'),
+ 'production' => __('Production', 'hyperswitch'),
+ 'sandbox' => __('Sandbox', 'hyperswitch'),
),
'default' => 'sandbox',
),
'api_key' => array(
- 'title' => __('Api Key', 'hyperswitch-checkout'),
+ 'title' => __('Api Key', 'hyperswitch'),
'type' => 'password',
- 'description' => __('Find this on Developers > API Keys section of Hyperswitch Dashboard', 'hyperswitch-checkout')
+ 'description' => __('Find this on Developers > API Keys section of Hyperswitch Dashboard', 'hyperswitch')
),
'publishable_key' => array(
- 'title' => __('Publishable key', 'hyperswitch-checkout'),
+ 'title' => __('Publishable key', 'hyperswitch'),
'type' => 'text',
- 'description' => __('Find this on Developers > API Keys section of Hyperswitch Dashboard', 'hyperswitch-checkout')
+ 'description' => __('Find this on Developers > API Keys section of Hyperswitch Dashboard', 'hyperswitch')
),
'webhook_secret_key' => array(
- 'title' => __('Payment Response Hash Key', 'hyperswitch-checkout'),
+ 'title' => __('Payment Response Hash Key', 'hyperswitch'),
'type' => 'password',
- 'description' => __('Find this on Developers > API Keys section of Hyperswitch Dashboard', 'hyperswitch-checkout')
+ 'description' => __('Find this on Developers > API Keys section of Hyperswitch Dashboard', 'hyperswitch')
),
'profile_id' => array(
- 'title' => __('Business Profile ID', 'hyperswitch-checkout'),
+ 'title' => __('Business Profile ID', 'hyperswitch'),
'type' => 'text',
- 'description' => __('Find this on Settings > Business profiles section of Hyperswitch Dashboard', 'hyperswitch-checkout')
+ 'description' => __('Find this on Settings > Business profiles section of Hyperswitch Dashboard', 'hyperswitch')
),
'enable_webhook' => array(
- 'title' => __('Enable Webhook', 'hyperswitch-checkout'),
+ 'title' => __('Enable Webhook', 'hyperswitch'),
'type' => 'checkbox',
'description' => sprintf(
/* translators: %s: webhook URL */
- __('Allow webhooks from Hyperswitch to receive real time updates of payments to update orders.
%s
Use this URL to be entered as Webhook URL on Hyperswitch dashboard', 'hyperswitch-checkout'),
+ __('Allow webhooks from Hyperswitch to receive real time updates of payments to update orders.
%s
Use this URL to be entered as Webhook URL on Hyperswitch dashboard', 'hyperswitch'),
$webhookUrl
),
- 'label' => __('Enable Hyperswitch Webhook', 'hyperswitch-checkout'),
+ 'label' => __('Enable Hyperswitch Webhook', 'hyperswitch'),
'default' => 'yes'
),
'capture_method' => array(
- 'title' => __('Capture Method', 'hyperswitch-checkout'),
- 'label' => __('Select Capture Method', 'hyperswitch-checkout'),
+ 'title' => __('Capture Method', 'hyperswitch'),
+ 'label' => __('Select Capture Method', 'hyperswitch'),
'type' => 'select',
- 'description' => __('Specify whether you want to capture payments manually or automatically', 'hyperswitch-checkout'),
+ 'description' => __('Specify whether you want to capture payments manually or automatically', 'hyperswitch'),
'options' => array(
- 'automatic' => __('Automatic', 'hyperswitch-checkout'),
- 'manual' => __('Manual', 'hyperswitch-checkout'),
+ 'automatic' => __('Automatic', 'hyperswitch'),
+ 'manual' => __('Manual', 'hyperswitch'),
),
'default' => 'automatic',
),
'enable_saved_payment_methods' => array(
- 'title' => __('Enable Saved Payment Methods', 'hyperswitch-checkout'),
+ 'title' => __('Enable Saved Payment Methods', 'hyperswitch'),
'type' => 'checkbox',
- 'description' => __('Allow registered customers to pay via saved payment methods', 'hyperswitch-checkout'),
- 'label' => __('Enable Saved Payment Methods', 'hyperswitch-checkout'),
+ 'description' => __('Allow registered customers to pay via saved payment methods', 'hyperswitch'),
+ 'label' => __('Enable Saved Payment Methods', 'hyperswitch'),
'default' => 'yes'
),
'show_card_from_by_default' => array(
- 'title' => __('Show Card Form Always', 'hyperswitch-checkout'),
+ 'title' => __('Show Card Form Always', 'hyperswitch'),
'type' => 'checkbox',
- 'label' => __('Show Card Form before Payment Methods List has loaded', 'hyperswitch-checkout'),
+ 'label' => __('Show Card Form before Payment Methods List has loaded', 'hyperswitch'),
'default' => 'yes'
),
'appearance' => array(
- 'title' => __('Appearance', 'hyperswitch-checkout'),
+ 'title' => __('Appearance', 'hyperswitch'),
'type' => 'textarea',
'default' => '{}',
- 'description' => __('Use the above parameter to pass appearance config (in json format) to the checkout.', 'hyperswitch-checkout'),
+ 'description' => __('Use the above parameter to pass appearance config (in json format) to the checkout.', 'hyperswitch'),
),
'layout' => array(
- 'title' => __('Layout', 'hyperswitch-checkout'),
- 'label' => __('Select Layout', 'hyperswitch-checkout'),
+ 'title' => __('Layout', 'hyperswitch'),
+ 'label' => __('Select Layout', 'hyperswitch'),
'type' => 'select',
- 'description' => __('Choose a layout that fits well with your UI pattern.', 'hyperswitch-checkout'),
+ 'description' => __('Choose a layout that fits well with your UI pattern.', 'hyperswitch'),
'options' => array(
- 'tabs' => __('Tabs', 'hyperswitch-checkout'),
- 'accordion' => __('Accordion', 'hyperswitch-checkout'),
- 'spaced' => __('Spaced Accordion', 'hyperswitch-checkout'),
+ 'tabs' => __('Tabs', 'hyperswitch'),
+ 'accordion' => __('Accordion', 'hyperswitch'),
+ 'spaced' => __('Spaced Accordion', 'hyperswitch'),
),
'default' => 'tabs',
),
'hold_order' => array(
- 'title' => __('Hold Order on Processing Payments', 'hyperswitch-checkout'),
+ 'title' => __('Hold Order on Processing Payments', 'hyperswitch'),
'type' => 'checkbox',
- 'description' => __('Disable this only if you do not want to reduce stock levels until the payment is successful.', 'hyperswitch-checkout'),
- 'label' => __('Whether to hold order, reduce stock if a payment goes into processing status.', 'hyperswitch-checkout'),
+ 'description' => __('Disable this only if you do not want to reduce stock levels until the payment is successful.', 'hyperswitch'),
+ 'label' => __('Whether to hold order, reduce stock if a payment goes into processing status.', 'hyperswitch'),
'default' => 'yes'
),
);
@@ -449,14 +449,14 @@ function receipt_page( $payment_id ) {
global $woocommerce;
$order = new WC_Order( $payment_id );
$error = $payment_intent['body'];
- $order->add_order_note( __( 'Unable to Create Hyperswitch Payment Intent.', 'hyperswitch-checkout' ) );
+ $order->add_order_note( __( 'Unable to Create Hyperswitch Payment Intent.', 'hyperswitch' ) );
$order->add_order_note( 'Error: ' . $error );
$this->post_log( "WC_FAILED_TO_CREATE_PAYMENT_INTENT", $error );
if ( function_exists( 'wc_add_notice' ) ) {
- wc_add_notice( __( "Something went wrong. Please contact support for assistance.", 'hyperswitch-checkout' ), 'error' );
+ wc_add_notice( __( "Something went wrong. Please contact support for assistance.", 'hyperswitch' ), 'error' );
} else {
- $woocommerce->add_error( __( "Something went wrong. Please contact support for assistance.", 'hyperswitch-checkout' ) );
+ $woocommerce->add_error( __( "Something went wrong. Please contact support for assistance.", 'hyperswitch' ) );
$woocommerce->set_messages();
}
$redirect_url = get_permalink( wc_get_page_id( 'cart' ) );
@@ -489,14 +489,14 @@ function render_payment_sheet( $order_id, $client_secret = null ) {
global $woocommerce;
$order = new WC_Order( $order_id );
$error = $payment_intent['body'];
- $order->add_order_note( __( 'Unable to Create Hyperswitch Payment Intent.', 'hyperswitch-checkout' ) );
+ $order->add_order_note( __( 'Unable to Create Hyperswitch Payment Intent.', 'hyperswitch' ) );
$order->add_order_note( 'Error: ' . $error );
$this->post_log( "WC_FAILED_TO_CREATE_PAYMENT_INTENT", $error );
if ( function_exists( 'wc_add_notice' ) ) {
- wc_add_notice( __( "Something went wrong. Please contact support for assistance.", 'hyperswitch-checkout' ), 'error' );
+ wc_add_notice( __( "Something went wrong. Please contact support for assistance.", 'hyperswitch' ), 'error' );
} else {
- $woocommerce->add_error( __( "Something went wrong. Please contact support for assistance.", 'hyperswitch-checkout' ) );
+ $woocommerce->add_error( __( "Something went wrong. Please contact support for assistance.", 'hyperswitch' ) );
$woocommerce->set_messages();
}
$redirect_url = get_permalink( woocommerce_get_page_id( 'cart' ) );
@@ -710,7 +710,7 @@ public function create_customer( $customer_id, $name, $email ) {
"customer_id" => $customer_id,
"email" => $email,
"name" => $name,
- "description" => __("Customer created via Woocommerce Application", 'hyperswitch-checkout')
+ "description" => __("Customer created via Woocommerce Application", 'hyperswitch')
);
$args = array(
'body' => wp_json_encode( $payload ),
@@ -859,7 +859,7 @@ public function check_hyperswitch_response() {
$payment_id = $_GET['payment_id'];
$msg['class'] = 'error';
- $msg['message'] = __("Thank you for shopping with us. However, the transaction has been declined.", 'hyperswitch-checkout');
+ $msg['message'] = __("Thank you for shopping with us. However, the transaction has been declined.", 'hyperswitch');
$paymentResponse = $this->retrieve_payment_intent( $payment_id );
$status = $paymentResponse['status'];
@@ -873,7 +873,7 @@ public function check_hyperswitch_response() {
$order->payment_complete( $payment_id );
$order->add_order_note( sprintf(
/* translators: %1$s: payment method, %2$s: payment ID */
- __('Payment successful via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch-checkout'),
+ __('Payment successful via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch'),
$payment_method,
$payment_id
));
@@ -884,14 +884,14 @@ public function check_hyperswitch_response() {
if ( $status == 'requires_capture' ) {
$order->add_order_note( sprintf(
/* translators: %1$s: payment method, %2$s: payment ID */
- __('Payment authorized via %1$s (Hyperswitch Payment ID: %2$s). Note: Requires Capture', 'hyperswitch-checkout'),
+ __('Payment authorized via %1$s (Hyperswitch Payment ID: %2$s). Note: Requires Capture', 'hyperswitch'),
$payment_method,
$payment_id
));
} else {
$order->add_order_note( sprintf(
/* translators: %1$s: payment method, %2$s: payment ID */
- __('Payment processing via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch-checkout'),
+ __('Payment processing via %1$s (Hyperswitch Payment ID: %2$s)', 'hyperswitch'),
$payment_method,
$payment_id
));
@@ -905,14 +905,14 @@ public function check_hyperswitch_response() {
$errorMessage = $paymentResponse['error']['message'] ?? $paymentResponse['error_code'] ?? "NA";
$order->add_order_note( sprintf(
/* translators: %1$s: payment method, %2$s: payment ID, %3$s: error message */
- __('Payment failed via %1$s (Hyperswitch Payment ID: %2$s) with error message: %3$s', 'hyperswitch-checkout'),
+ __('Payment failed via %1$s (Hyperswitch Payment ID: %2$s) with error message: %3$s', 'hyperswitch'),
$payment_method,
$payment_id,
$errorMessage
));
$order->update_status( 'pending' );
$msg['class'] = 'error';
- $msg['message'] = __("Thank you for shopping with us. However, the payment has failed. Please retry the payment.", 'hyperswitch-checkout');
+ $msg['message'] = __("Thank you for shopping with us. However, the payment has failed. Please retry the payment.", 'hyperswitch');
$this->post_log( "WC_ERROR_IN_PLACING_ORDER", $errorMessage, $payment_id );
}
@@ -961,7 +961,7 @@ function hyperswitch_create_or_update_payment_intent() {
if ( ! wp_verify_nonce( sanitize_text_field( wp_unslash( $nonce ) ), 'woocommerce-process_checkout' ) ) {
wp_send_json(
array(
- "messages" => __("Something went wrong. Please try again or reload the page.", 'hyperswitch-checkout')
+ "messages" => __("Something went wrong. Please try again or reload the page.", 'hyperswitch')
)
);
} else {
diff --git a/locale/hyperswitch-checkout.pot b/locale/hyperswitch-checkout.pot
deleted file mode 100644
index 449ec12..0000000
--- a/locale/hyperswitch-checkout.pot
+++ /dev/null
@@ -1,268 +0,0 @@
-# Copyright (C) 2024 Hyperswitch
-# This file is distributed under the GPLv2 or later.
-msgid ""
-msgstr ""
-"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
-"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-woocommerce-plugin\n"
-"Last-Translator: FULL NAME \n"
-"Language-Team: LANGUAGE \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2024-10-06T12:46:48+05:30\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"X-Generator: WP-CLI 2.11.0\n"
-"X-Domain: hyperswitch-checkout\n"
-
-#. Plugin Name of the plugin
-#: hyperswitch-checkout.php
-msgid "Hyperswitch Checkout for WooCommerce"
-msgstr ""
-
-#. Plugin URI of the plugin
-#. Author URI of the plugin
-#: hyperswitch-checkout.php
-msgid "https://hyperswitch.io/"
-msgstr ""
-
-#. Description of the plugin
-#: hyperswitch-checkout.php
-msgid "Hyperswitch checkout plugin for WooCommerce"
-msgstr ""
-
-#. Author of the plugin
-#: hyperswitch-checkout.php
-msgid "Hyperswitch"
-msgstr ""
-
-#: hyperswitch-checkout.php:60
-msgid "Allow customers to securely pay via Hyperswitch"
-msgstr ""
-
-#: hyperswitch-checkout.php:134
-msgid "Settings"
-msgstr ""
-
-#: hyperswitch-checkout.php:237
-msgid "Capture Payment with Hyperswitch"
-msgstr ""
-
-#: hyperswitch-checkout.php:241
-msgid "Sync Payment with Hyperswitch"
-msgstr ""
-
-#. translators: %s: payment ID
-#: hyperswitch-checkout.php:286
-msgid "Synced Payment Status (Hyperswitch Payment ID: %s)"
-msgstr ""
-
-#. translators: %1$s: payment method, %2$s: payment ID
-#: hyperswitch-checkout.php:297
-#: hyperswitch-checkout.php:876
-msgid "Payment successful via %1$s (Hyperswitch Payment ID: %2$s)"
-msgstr ""
-
-#. translators: %1$s: payment method, %2$s: payment ID
-#: hyperswitch-checkout.php:306
-#: hyperswitch-checkout.php:894
-msgid "Payment processing via %1$s (Hyperswitch Payment ID: %2$s)"
-msgstr ""
-
-#. translators: %1$s: payment method, %2$s: payment ID
-#: hyperswitch-checkout.php:313
-msgid "Payment failed via %1$s (Hyperswitch Payment ID: %2$s)"
-msgstr ""
-
-#: hyperswitch-checkout.php:326
-msgid "Enable/Disable"
-msgstr ""
-
-#: hyperswitch-checkout.php:327
-msgid "Enable Hyperswitch"
-msgstr ""
-
-#: hyperswitch-checkout.php:333
-msgid "Title"
-msgstr ""
-
-#: hyperswitch-checkout.php:335
-msgid "The title to be displayed for Hyperswitch Payment Method (in case of multiple WooCommerce Payment Gateways/ Methods)"
-msgstr ""
-
-#: hyperswitch-checkout.php:336
-msgid "Credit, Debit Card and Wallet Payments (powered by Hyperswitch)"
-msgstr ""
-
-#: hyperswitch-checkout.php:339
-msgid "Environment"
-msgstr ""
-
-#: hyperswitch-checkout.php:340
-msgid "Select Environment"
-msgstr ""
-
-#: hyperswitch-checkout.php:343
-msgid "Production"
-msgstr ""
-
-#: hyperswitch-checkout.php:344
-msgid "Sandbox"
-msgstr ""
-
-#: hyperswitch-checkout.php:349
-msgid "Api Key"
-msgstr ""
-
-#: hyperswitch-checkout.php:351
-#: hyperswitch-checkout.php:356
-#: hyperswitch-checkout.php:361
-msgid "Find this on Developers > API Keys section of Hyperswitch Dashboard"
-msgstr ""
-
-#: hyperswitch-checkout.php:354
-msgid "Publishable key"
-msgstr ""
-
-#: hyperswitch-checkout.php:359
-msgid "Payment Response Hash Key"
-msgstr ""
-
-#: hyperswitch-checkout.php:364
-msgid "Business Profile ID"
-msgstr ""
-
-#: hyperswitch-checkout.php:366
-msgid "Find this on Settings > Business profiles section of Hyperswitch Dashboard"
-msgstr ""
-
-#: hyperswitch-checkout.php:369
-msgid "Enable Webhook"
-msgstr ""
-
-#. translators: %s: webhook URL
-#: hyperswitch-checkout.php:373
-msgid "Allow webhooks from Hyperswitch to receive real time updates of payments to update orders.
%s
Use this URL to be entered as Webhook URL on Hyperswitch dashboard"
-msgstr ""
-
-#: hyperswitch-checkout.php:376
-msgid "Enable Hyperswitch Webhook"
-msgstr ""
-
-#: hyperswitch-checkout.php:380
-msgid "Capture Method"
-msgstr ""
-
-#: hyperswitch-checkout.php:381
-msgid "Select Capture Method"
-msgstr ""
-
-#: hyperswitch-checkout.php:383
-msgid "Specify whether you want to capture payments manually or automatically"
-msgstr ""
-
-#: hyperswitch-checkout.php:385
-msgid "Automatic"
-msgstr ""
-
-#: hyperswitch-checkout.php:386
-msgid "Manual"
-msgstr ""
-
-#: hyperswitch-checkout.php:391
-#: hyperswitch-checkout.php:394
-msgid "Enable Saved Payment Methods"
-msgstr ""
-
-#: hyperswitch-checkout.php:393
-msgid "Allow registered customers to pay via saved payment methods"
-msgstr ""
-
-#: hyperswitch-checkout.php:398
-msgid "Show Card Form Always"
-msgstr ""
-
-#: hyperswitch-checkout.php:400
-msgid "Show Card Form before Payment Methods List has loaded"
-msgstr ""
-
-#: hyperswitch-checkout.php:404
-msgid "Appearance"
-msgstr ""
-
-#: hyperswitch-checkout.php:407
-msgid "Use the above parameter to pass appearance config (in json format) to the checkout."
-msgstr ""
-
-#: hyperswitch-checkout.php:410
-msgid "Layout"
-msgstr ""
-
-#: hyperswitch-checkout.php:411
-msgid "Select Layout"
-msgstr ""
-
-#: hyperswitch-checkout.php:413
-msgid "Choose a layout that fits well with your UI pattern."
-msgstr ""
-
-#: hyperswitch-checkout.php:415
-msgid "Tabs"
-msgstr ""
-
-#: hyperswitch-checkout.php:416
-msgid "Accordion"
-msgstr ""
-
-#: hyperswitch-checkout.php:417
-msgid "Spaced Accordion"
-msgstr ""
-
-#: hyperswitch-checkout.php:422
-msgid "Hold Order on Processing Payments"
-msgstr ""
-
-#: hyperswitch-checkout.php:424
-msgid "Disable this only if you do not want to reduce stock levels until the payment is successful."
-msgstr ""
-
-#: hyperswitch-checkout.php:425
-msgid "Whether to hold order, reduce stock if a payment goes into processing status."
-msgstr ""
-
-#: hyperswitch-checkout.php:452
-#: hyperswitch-checkout.php:492
-msgid "Unable to Create Hyperswitch Payment Intent."
-msgstr ""
-
-#: hyperswitch-checkout.php:456
-#: hyperswitch-checkout.php:459
-#: hyperswitch-checkout.php:496
-#: hyperswitch-checkout.php:499
-msgid "Something went wrong. Please contact support for assistance."
-msgstr ""
-
-#: hyperswitch-checkout.php:713
-msgid "Customer created via Woocommerce Application"
-msgstr ""
-
-#: hyperswitch-checkout.php:862
-msgid "Thank you for shopping with us. However, the transaction has been declined."
-msgstr ""
-
-#. translators: %1$s: payment method, %2$s: payment ID
-#: hyperswitch-checkout.php:887
-msgid "Payment authorized via %1$s (Hyperswitch Payment ID: %2$s). Note: Requires Capture"
-msgstr ""
-
-#. translators: %1$s: payment method, %2$s: payment ID, %3$s: error message
-#: hyperswitch-checkout.php:908
-msgid "Payment failed via %1$s (Hyperswitch Payment ID: %2$s) with error message: %3$s"
-msgstr ""
-
-#: hyperswitch-checkout.php:915
-msgid "Thank you for shopping with us. However, the payment has failed. Please retry the payment."
-msgstr ""
-
-#: hyperswitch-checkout.php:964
-msgid "Something went wrong. Please try again or reload the page."
-msgstr ""
diff --git a/locale/hyperswitch.pot b/locale/hyperswitch.pot
index e3b031a..17cec41 100644
--- a/locale/hyperswitch.pot
+++ b/locale/hyperswitch.pot
@@ -1,9 +1,27 @@
# Copyright (C) 2024 Hyperswitch
# This file is distributed under the GPLv2 or later.
+#, fuzzy
msgid ""
msgstr ""
+"#-#-#-#-# hyperswitch-checkout.pot (Hyperswitch Checkout for WooCommerce "
+"1.6.2) #-#-#-#-#\n"
"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
-"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-woocommerce-plugin\n"
+"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-"
+"woocommerce-plugin\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: LANGUAGE \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: 2024-10-06T12:46:48+05:30\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"X-Generator: WP-CLI 2.11.0\n"
+"X-Domain: hyperswitch-checkout\n"
+"#-#-#-#-# hyperswitch.pot (Hyperswitch Checkout for WooCommerce 1.6.2) #-#-"
+"#-#-#\n"
+"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
+"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-"
+"woocommerce-plugin\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
"MIME-Version: 1.0\n"
@@ -35,6 +53,249 @@ msgstr ""
msgid "Hyperswitch"
msgstr ""
+#: hyperswitch-checkout.php:60
+msgid "Allow customers to securely pay via Hyperswitch"
+msgstr ""
+
+#: hyperswitch-checkout.php:134
+msgid "Settings"
+msgstr ""
+
+#: hyperswitch-checkout.php:237
+msgid "Capture Payment with Hyperswitch"
+msgstr ""
+
+#: hyperswitch-checkout.php:241
+msgid "Sync Payment with Hyperswitch"
+msgstr ""
+
+#. translators: %s: payment ID
+#: hyperswitch-checkout.php:286
+msgid "Synced Payment Status (Hyperswitch Payment ID: %s)"
+msgstr ""
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:297 hyperswitch-checkout.php:876
+msgid "Payment successful via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr ""
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:306 hyperswitch-checkout.php:894
+msgid "Payment processing via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr ""
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:313
+msgid "Payment failed via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr ""
+
+#: hyperswitch-checkout.php:326
+msgid "Enable/Disable"
+msgstr ""
+
+#: hyperswitch-checkout.php:327
+msgid "Enable Hyperswitch"
+msgstr ""
+
+#: hyperswitch-checkout.php:333
+msgid "Title"
+msgstr ""
+
+#: hyperswitch-checkout.php:335
+msgid ""
+"The title to be displayed for Hyperswitch Payment Method (in case of "
+"multiple WooCommerce Payment Gateways/ Methods)"
+msgstr ""
+
+#: hyperswitch-checkout.php:336
+msgid "Credit, Debit Card and Wallet Payments (powered by Hyperswitch)"
+msgstr ""
+
+#: hyperswitch-checkout.php:339
+msgid "Environment"
+msgstr ""
+
+#: hyperswitch-checkout.php:340
+msgid "Select Environment"
+msgstr ""
+
+#: hyperswitch-checkout.php:343
+msgid "Production"
+msgstr ""
+
+#: hyperswitch-checkout.php:344
+msgid "Sandbox"
+msgstr ""
+
+#: hyperswitch-checkout.php:349
+msgid "Api Key"
+msgstr ""
+
+#: hyperswitch-checkout.php:351 hyperswitch-checkout.php:356
+#: hyperswitch-checkout.php:361
+msgid "Find this on Developers > API Keys section of Hyperswitch Dashboard"
+msgstr ""
+
+#: hyperswitch-checkout.php:354
+msgid "Publishable key"
+msgstr ""
+
+#: hyperswitch-checkout.php:359
+msgid "Payment Response Hash Key"
+msgstr ""
+
+#: hyperswitch-checkout.php:364
+msgid "Business Profile ID"
+msgstr ""
+
+#: hyperswitch-checkout.php:366
+msgid ""
+"Find this on Settings > Business profiles section of Hyperswitch Dashboard"
+msgstr ""
+
+#: hyperswitch-checkout.php:369
+msgid "Enable Webhook"
+msgstr ""
+
+#. translators: %s: webhook URL
+#: hyperswitch-checkout.php:373
+msgid ""
+"Allow webhooks from Hyperswitch to receive real time updates of payments to "
+"update orders.
%s
Use this URL to be entered "
+"as Webhook URL on Hyperswitch dashboard"
+msgstr ""
+
+#: hyperswitch-checkout.php:376
+msgid "Enable Hyperswitch Webhook"
+msgstr ""
+
+#: hyperswitch-checkout.php:380
+msgid "Capture Method"
+msgstr ""
+
+#: hyperswitch-checkout.php:381
+msgid "Select Capture Method"
+msgstr ""
+
+#: hyperswitch-checkout.php:383
+msgid "Specify whether you want to capture payments manually or automatically"
+msgstr ""
+
+#: hyperswitch-checkout.php:385
+msgid "Automatic"
+msgstr ""
+
+#: hyperswitch-checkout.php:386
+msgid "Manual"
+msgstr ""
+
+#: hyperswitch-checkout.php:391 hyperswitch-checkout.php:394
+msgid "Enable Saved Payment Methods"
+msgstr ""
+
+#: hyperswitch-checkout.php:393
+msgid "Allow registered customers to pay via saved payment methods"
+msgstr ""
+
+#: hyperswitch-checkout.php:398
+msgid "Show Card Form Always"
+msgstr ""
+
+#: hyperswitch-checkout.php:400
+msgid "Show Card Form before Payment Methods List has loaded"
+msgstr ""
+
+#: hyperswitch-checkout.php:404
+msgid "Appearance"
+msgstr ""
+
+#: hyperswitch-checkout.php:407
+msgid ""
+"Use the above parameter to pass appearance config (in json format) to the "
+"checkout."
+msgstr ""
+
+#: hyperswitch-checkout.php:410
+msgid "Layout"
+msgstr ""
+
+#: hyperswitch-checkout.php:411
+msgid "Select Layout"
+msgstr ""
+
+#: hyperswitch-checkout.php:413
+msgid "Choose a layout that fits well with your UI pattern."
+msgstr ""
+
+#: hyperswitch-checkout.php:415
+msgid "Tabs"
+msgstr ""
+
+#: hyperswitch-checkout.php:416
+msgid "Accordion"
+msgstr ""
+
+#: hyperswitch-checkout.php:417
+msgid "Spaced Accordion"
+msgstr ""
+
+#: hyperswitch-checkout.php:422
+msgid "Hold Order on Processing Payments"
+msgstr ""
+
+#: hyperswitch-checkout.php:424
+msgid ""
+"Disable this only if you do not want to reduce stock levels until the "
+"payment is successful."
+msgstr ""
+
+#: hyperswitch-checkout.php:425
+msgid ""
+"Whether to hold order, reduce stock if a payment goes into processing status."
+msgstr ""
+
+#: hyperswitch-checkout.php:452 hyperswitch-checkout.php:492
+msgid "Unable to Create Hyperswitch Payment Intent."
+msgstr ""
+
+#: hyperswitch-checkout.php:456 hyperswitch-checkout.php:459
+#: hyperswitch-checkout.php:496 hyperswitch-checkout.php:499
+msgid "Something went wrong. Please contact support for assistance."
+msgstr ""
+
+#: hyperswitch-checkout.php:713
+msgid "Customer created via Woocommerce Application"
+msgstr ""
+
+#: hyperswitch-checkout.php:862
+msgid ""
+"Thank you for shopping with us. However, the transaction has been declined."
+msgstr ""
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:887
+msgid ""
+"Payment authorized via %1$s (Hyperswitch Payment ID: %2$s). Note: Requires "
+"Capture"
+msgstr ""
+
+#. translators: %1$s: payment method, %2$s: payment ID, %3$s: error message
+#: hyperswitch-checkout.php:908
+msgid ""
+"Payment failed via %1$s (Hyperswitch Payment ID: %2$s) with error message: "
+"%3$s"
+msgstr ""
+
+#: hyperswitch-checkout.php:915
+msgid ""
+"Thank you for shopping with us. However, the payment has failed. Please "
+"retry the payment."
+msgstr ""
+
+#: hyperswitch-checkout.php:964
+msgid "Something went wrong. Please try again or reload the page."
+msgstr ""
+
#. translators: Webhook received log message
#: includes/hyperswitch-webhook.php:71
msgid "WC_WEBHOOK_RECEIVED"
@@ -44,8 +305,7 @@ msgstr ""
msgid "failed"
msgstr ""
-#: includes/hyperswitch-webhook.php:88
-#: includes/hyperswitch-webhook.php:155
+#: includes/hyperswitch-webhook.php:88 includes/hyperswitch-webhook.php:155
msgid "processing"
msgstr ""
@@ -60,7 +320,9 @@ msgstr ""
#. translators: 1: Payment method 2: Payment ID
#: includes/hyperswitch-webhook.php:124
-msgid "Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch Webhook)"
+msgid ""
+"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
+"Webhook)"
msgstr ""
#. translators: Payment succeeded webhook log message
@@ -74,10 +336,13 @@ msgstr ""
#. translators: 1: Payment status 2: Payment method 3: Payment ID
#: includes/hyperswitch-webhook.php:163
-msgid "Payment %1$s via %2$s (Hyperswitch Payment ID: %3$s) (via Hyperswitch Webhook)"
+msgid ""
+"Payment %1$s via %2$s (Hyperswitch Payment ID: %3$s) (via Hyperswitch "
+"Webhook)"
msgstr ""
#. translators: %s: Refund ID
#: includes/hyperswitch-webhook.php:216
-msgid "Refund Successful (Hyperswitch Refund ID: %1$s) (via Hyperswitch Webhook)"
+msgid ""
+"Refund Successful (Hyperswitch Refund ID: %1$s) (via Hyperswitch Webhook)"
msgstr ""
diff --git a/locale/languages/en_US/hyperswitch-checkout-en_US.mo b/locale/languages/en_US/hyperswitch-checkout-en_US.mo
deleted file mode 100644
index 481796cba20f26a835ed3e09aebdf313c13b4cda..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 6592
zcmeH~O^h5z6~_xmg1saJ>^NX2fl9E!i`}!k+YGI#UZje
zZ)XywzE7zMcmc}u%WyZm4&M(GsNpSm6ut_dhQEb};T{IL4$s0}@D;cZz6QmvUqBh>
zZx#Oq-^cxq9oPaNf|uYm_&EF~l>VQ>{qR@t5d0@(O7#Rr3Mb)SI1QKKC3qZu1BxGh
z0~>HZixWN%Wt}hc@gV#*#1!>CxCj0aiv4fE2jHI}Q>r(s{hMW;54-`Ng)w{v{tRaDVJ1Tg^&&hBUxH2eBe)26;k*yQFTmfS
z@lD9m)MuDfbbStrt}jB-^>rxg`tk?M^?nt~^Djfu^;=N%_yN@Lbtt<26^gEp;RLbc
zb5L~s3gl1yg^zvk-%xbj!(cK_z2Yon>1qjzuGiru_$m}#|6cV!@KCAiUU-P#&p^@h
zM#UGP=z0?_!>>Wn^-oZAeH5|8?_tI7K%`NBgre&|psfEb$e+6R;nMy`ATCukD7v14
z(ti#fgU>iw!O%s2M55-@|tDdBNl=czY
z6EwNR2Xfs{lYADfB_7AGecU`kBLs_Bslg*O@iXD3W@sKwE{VBmn#8{7sb+mYPTN5o
zso5}$2inhF7WZxHbQWu8{XDhdhEB|eUJs1ExRKB`2r|D{J)hcc;4+)q_SRR2Z#c6~
z7k7OdWx8*(Ufg!oy93+m#qpZcoiy%`k1cbj*0;gBg(lQl(6>5I+9tD3$DQGLg^}gY
znpI$0?NlqBI#YhQ#6)KfxKmTbm(7k95A|F
zs{DdSd*f57IUIwTMu%o2&NJ*aneGIc(*qlZx_F+BRIe`Jj123enwmp}AUmw*Z7az1
z9ENHWwe?jKhBnjHTuvWM;z6<6*2egplWMNgUi&ybLpG88Y8?ApvZiNm40hBc-7bv&Z0pDHPb;i#HD3Vl%?&c|tA&xQlD;r{#A
zmL+=ZNVO`R^ku5O?olVh*tBh1HQ6l48NzZP1%5y>b!&Plw1yz@<0vy&>hdIs(=r|n
zLF_UqnYDL*IZHRR=^8>4W!Qz7uPPZ`c{MRUv9Y;*H52Oxoee$cVGlVYrD#}#{HppU
zWw~{_Uqm%Ei=heJvT#!-@$p9Fj~0DfS(aXA9mae!Gg%~b@xJ=4^?rQoX6?xsJhqu&3@p730BZsC|yfRieYj-zv#$M%6L~57}-?BE+ZR>|@
zSZx`LdLCp_)r)Ph9k_%Ih!u<3Z@)R-cE=wZARO&gkUG=76#sM
zteSKYWtf{M2+|bdJ%3GW#4ik7|+ZQ{W8EskJn35GlGUsN2AhL;wn(Ad)
z;u=#^z0CttEr_QSW&8%Y>n*gs&$73mLu1QI|5xeOGqvNj`oyx8Jn|M@H)wlj^RDw&
z;)WhhHo)eDLh5R9+MTMBZmO*BKyC*Iimw77^9-+zNw4wDW)9M9XLk_j=
zr`p!7WpU!IJ+*f1NO-h%h8Lo4POtm!xOxu`3(YGQF=@!aOpW@^(Da})to^Hy+0
zLudA8hDoILNt|y|XS36*E9bovo6m_69h-XRB0p}ECJlXp^UTE36>r(D2jVkto(O5^
z`gHxMH#6-`AJ;SW#0?KxC$4!HY-H1N6<3$MxyuW>UYik9u6gsMdVtTzbn%8U
zFj`WB^WgKV&55NjPfh5ZCuCehM|g@`ce;L3mtRjGjP&ED^~~hSiS2Xr_Bp!x$7uT;
ny?u@zJ9BTJqlc%Zv2Aku9KC&x-abeBz0tXN`y73D=ji_cHxIqg
diff --git a/locale/languages/en_US/hyperswitch-checkout-en_US.po b/locale/languages/en_US/hyperswitch-checkout-en_US.po
deleted file mode 100644
index 4993e40..0000000
--- a/locale/languages/en_US/hyperswitch-checkout-en_US.po
+++ /dev/null
@@ -1,300 +0,0 @@
-# Copyright (C) 2024 Hyperswitch
-# This file is distributed under the GPLv2 or later.
-msgid ""
-msgstr ""
-"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
-"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-"
-"woocommerce-plugin\n"
-"Last-Translator: \n"
-"Language-Team: English\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2024-10-06T12:46:48+05:30\n"
-"PO-Revision-Date: 2024-10-06 12:52+0530\n"
-"X-Generator: WP-CLI 2.11.0\n"
-"X-Domain: hyperswitch-checkout\n"
-"Language: en_US\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#. Plugin Name of the plugin
-#: hyperswitch-checkout.php
-msgid "Hyperswitch Checkout for WooCommerce"
-msgstr "Hyperswitch Checkout for WooCommerce"
-
-#. Plugin URI of the plugin
-#. Author URI of the plugin
-#: hyperswitch-checkout.php
-msgid "https://hyperswitch.io/"
-msgstr "https://hyperswitch.io/"
-
-#. Description of the plugin
-#: hyperswitch-checkout.php
-msgid "Hyperswitch checkout plugin for WooCommerce"
-msgstr "Hyperswitch checkout plugin for WooCommerce"
-
-#. Author of the plugin
-#: hyperswitch-checkout.php
-msgid "Hyperswitch"
-msgstr "Hyperswitch"
-
-#: hyperswitch-checkout.php:60
-msgid "Allow customers to securely pay via Hyperswitch"
-msgstr "Allow customers to securely pay via Hyperswitch"
-
-#: hyperswitch-checkout.php:134
-msgid "Settings"
-msgstr "Settings"
-
-#: hyperswitch-checkout.php:237
-msgid "Capture Payment with Hyperswitch"
-msgstr "Capture Payment with Hyperswitch"
-
-#: hyperswitch-checkout.php:241
-msgid "Sync Payment with Hyperswitch"
-msgstr "Sync Payment with Hyperswitch"
-
-#. translators: %s: payment ID
-#: hyperswitch-checkout.php:286
-msgid "Synced Payment Status (Hyperswitch Payment ID: %s)"
-msgstr "Synced Payment Status (Hyperswitch Payment ID: %s)"
-
-#. translators: %1$s: payment method, %2$s: payment ID
-#: hyperswitch-checkout.php:297 hyperswitch-checkout.php:876
-msgid "Payment successful via %1$s (Hyperswitch Payment ID: %2$s)"
-msgstr "Payment successful via %1$s (Hyperswitch Payment ID: %2$s)"
-
-#. translators: %1$s: payment method, %2$s: payment ID
-#: hyperswitch-checkout.php:306 hyperswitch-checkout.php:894
-msgid "Payment processing via %1$s (Hyperswitch Payment ID: %2$s)"
-msgstr "Payment processing via %1$s (Hyperswitch Payment ID: %2$s)"
-
-#. translators: %1$s: payment method, %2$s: payment ID
-#: hyperswitch-checkout.php:313
-msgid "Payment failed via %1$s (Hyperswitch Payment ID: %2$s)"
-msgstr "Payment failed via %1$s (Hyperswitch Payment ID: %2$s)"
-
-#: hyperswitch-checkout.php:326
-msgid "Enable/Disable"
-msgstr "Enable/Disable"
-
-#: hyperswitch-checkout.php:327
-msgid "Enable Hyperswitch"
-msgstr "Enable Hyperswitch"
-
-#: hyperswitch-checkout.php:333
-msgid "Title"
-msgstr "Title"
-
-#: hyperswitch-checkout.php:335
-msgid ""
-"The title to be displayed for Hyperswitch Payment Method (in case of "
-"multiple WooCommerce Payment Gateways/ Methods)"
-msgstr ""
-"The title to be displayed for Hyperswitch Payment Method (in case of "
-"multiple WooCommerce Payment Gateways/ Methods)"
-
-#: hyperswitch-checkout.php:336
-msgid "Credit, Debit Card and Wallet Payments (powered by Hyperswitch)"
-msgstr "Credit, Debit Card and Wallet Payments (powered by Hyperswitch)"
-
-#: hyperswitch-checkout.php:339
-msgid "Environment"
-msgstr "Environment"
-
-#: hyperswitch-checkout.php:340
-msgid "Select Environment"
-msgstr "Select Environment"
-
-#: hyperswitch-checkout.php:343
-msgid "Production"
-msgstr "Production"
-
-#: hyperswitch-checkout.php:344
-msgid "Sandbox"
-msgstr "Sandbox"
-
-#: hyperswitch-checkout.php:349
-msgid "Api Key"
-msgstr "Api Key"
-
-#: hyperswitch-checkout.php:351 hyperswitch-checkout.php:356
-#: hyperswitch-checkout.php:361
-msgid "Find this on Developers > API Keys section of Hyperswitch Dashboard"
-msgstr "Find this on Developers > API Keys section of Hyperswitch Dashboard"
-
-#: hyperswitch-checkout.php:354
-msgid "Publishable key"
-msgstr "Publishable key"
-
-#: hyperswitch-checkout.php:359
-msgid "Payment Response Hash Key"
-msgstr "Payment Response Hash Key"
-
-#: hyperswitch-checkout.php:364
-msgid "Business Profile ID"
-msgstr "Business Profile ID"
-
-#: hyperswitch-checkout.php:366
-msgid ""
-"Find this on Settings > Business profiles section of Hyperswitch Dashboard"
-msgstr ""
-"Find this on Settings > Business profiles section of Hyperswitch Dashboard"
-
-#: hyperswitch-checkout.php:369
-msgid "Enable Webhook"
-msgstr "Enable Webhook"
-
-#. translators: %s: webhook URL
-#: hyperswitch-checkout.php:373
-msgid ""
-"Allow webhooks from Hyperswitch to receive real time updates of payments to "
-"update orders.
%s
Use this URL to be entered "
-"as Webhook URL on Hyperswitch dashboard"
-msgstr ""
-"Allow webhooks from Hyperswitch to receive real time updates of payments to "
-"update orders.
%s
Use this URL to be entered "
-"as Webhook URL on Hyperswitch dashboard"
-
-#: hyperswitch-checkout.php:376
-msgid "Enable Hyperswitch Webhook"
-msgstr "Enable Hyperswitch Webhook"
-
-#: hyperswitch-checkout.php:380
-msgid "Capture Method"
-msgstr "Capture Method"
-
-#: hyperswitch-checkout.php:381
-msgid "Select Capture Method"
-msgstr "Select Capture Method"
-
-#: hyperswitch-checkout.php:383
-msgid "Specify whether you want to capture payments manually or automatically"
-msgstr "Specify whether you want to capture payments manually or automatically"
-
-#: hyperswitch-checkout.php:385
-msgid "Automatic"
-msgstr "Automatic"
-
-#: hyperswitch-checkout.php:386
-msgid "Manual"
-msgstr "Manual"
-
-#: hyperswitch-checkout.php:391 hyperswitch-checkout.php:394
-msgid "Enable Saved Payment Methods"
-msgstr "Enable Saved Payment Methods"
-
-#: hyperswitch-checkout.php:393
-msgid "Allow registered customers to pay via saved payment methods"
-msgstr "Allow registered customers to pay via saved payment methods"
-
-#: hyperswitch-checkout.php:398
-msgid "Show Card Form Always"
-msgstr "Show Card Form Always"
-
-#: hyperswitch-checkout.php:400
-msgid "Show Card Form before Payment Methods List has loaded"
-msgstr "Show Card Form before Payment Methods List has loaded"
-
-#: hyperswitch-checkout.php:404
-msgid "Appearance"
-msgstr "Appearance"
-
-#: hyperswitch-checkout.php:407
-msgid ""
-"Use the above parameter to pass appearance config (in json format) to the "
-"checkout."
-msgstr ""
-"Use the above parameter to pass appearance config (in json format) to the "
-"checkout."
-
-#: hyperswitch-checkout.php:410
-msgid "Layout"
-msgstr "Layout"
-
-#: hyperswitch-checkout.php:411
-msgid "Select Layout"
-msgstr "Select Layout"
-
-#: hyperswitch-checkout.php:413
-msgid "Choose a layout that fits well with your UI pattern."
-msgstr "Choose a layout that fits well with your UI pattern."
-
-#: hyperswitch-checkout.php:415
-msgid "Tabs"
-msgstr "Tabs"
-
-#: hyperswitch-checkout.php:416
-msgid "Accordion"
-msgstr "Accordion"
-
-#: hyperswitch-checkout.php:417
-msgid "Spaced Accordion"
-msgstr "Spaced Accordion"
-
-#: hyperswitch-checkout.php:422
-msgid "Hold Order on Processing Payments"
-msgstr "Hold Order on Processing Payments"
-
-#: hyperswitch-checkout.php:424
-msgid ""
-"Disable this only if you do not want to reduce stock levels until the "
-"payment is successful."
-msgstr ""
-"Disable this only if you do not want to reduce stock levels until the "
-"payment is successful."
-
-#: hyperswitch-checkout.php:425
-msgid ""
-"Whether to hold order, reduce stock if a payment goes into processing status."
-msgstr ""
-"Whether to hold order, reduce stock if a payment goes into processing status."
-
-#: hyperswitch-checkout.php:452 hyperswitch-checkout.php:492
-msgid "Unable to Create Hyperswitch Payment Intent."
-msgstr "Unable to Create Hyperswitch Payment Intent."
-
-#: hyperswitch-checkout.php:456 hyperswitch-checkout.php:459
-#: hyperswitch-checkout.php:496 hyperswitch-checkout.php:499
-msgid "Something went wrong. Please contact support for assistance."
-msgstr "Something went wrong. Please contact support for assistance."
-
-#: hyperswitch-checkout.php:713
-msgid "Customer created via Woocommerce Application"
-msgstr "Customer created via Woocommerce Application"
-
-#: hyperswitch-checkout.php:862
-msgid ""
-"Thank you for shopping with us. However, the transaction has been declined."
-msgstr ""
-"Thank you for shopping with us. However, the transaction has been declined."
-
-#. translators: %1$s: payment method, %2$s: payment ID
-#: hyperswitch-checkout.php:887
-msgid ""
-"Payment authorized via %1$s (Hyperswitch Payment ID: %2$s). Note: Requires "
-"Capture"
-msgstr ""
-"Payment authorized via %1$s (Hyperswitch Payment ID: %2$s). Note: Requires "
-"Capture"
-
-#. translators: %1$s: payment method, %2$s: payment ID, %3$s: error message
-#: hyperswitch-checkout.php:908
-msgid ""
-"Payment failed via %1$s (Hyperswitch Payment ID: %2$s) with error message: "
-"%3$s"
-msgstr ""
-"Payment failed via %1$s (Hyperswitch Payment ID: %2$s) with error message: "
-"%3$s"
-
-#: hyperswitch-checkout.php:915
-msgid ""
-"Thank you for shopping with us. However, the payment has failed. Please "
-"retry the payment."
-msgstr ""
-"Thank you for shopping with us. However, the payment has failed. Please "
-"retry the payment."
-
-#: hyperswitch-checkout.php:964
-msgid "Something went wrong. Please try again or reload the page."
-msgstr "Something went wrong. Please try again or reload the page."
diff --git a/locale/languages/en_US/hyperswitch-en_US.mo b/locale/languages/en_US/hyperswitch-en_US.mo
index c8c16fd7884991a36641aeccbda545ed73947db5..d447e2c4cb3f418c3e2e1c926e4209d88eec7d45 100644
GIT binary patch
delta 44
zcmcc0dzE*?1?I^`EEd}#3ITP(jB0g)*Y
AQvd(}
diff --git a/locale/languages/en_US/hyperswitch-en_US.po b/locale/languages/en_US/hyperswitch-en_US.po
index a12cde2..c745d20 100644
--- a/locale/languages/en_US/hyperswitch-en_US.po
+++ b/locale/languages/en_US/hyperswitch-en_US.po
@@ -5,16 +5,16 @@ msgstr ""
"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-"
"woocommerce-plugin\n"
+"POT-Creation-Date: 2024-10-06T12:46:48+05:30\n"
+"PO-Revision-Date: 2024-10-05 22:37+0530\n"
"Last-Translator: \n"
"Language-Team: English\n"
+"Language: en_US\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2024-10-05T22:36:53+05:30\n"
-"PO-Revision-Date: 2024-10-05 22:37+0530\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: hyperswitch\n"
-"Language: en_US\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. Plugin Name of the plugin
@@ -38,6 +38,268 @@ msgstr "Hyperswitch checkout plugin for WooCommerce"
msgid "Hyperswitch"
msgstr "Hyperswitch"
+#: hyperswitch-checkout.php:60
+msgid "Allow customers to securely pay via Hyperswitch"
+msgstr ""
+
+#: hyperswitch-checkout.php:134
+msgid "Settings"
+msgstr ""
+
+#: hyperswitch-checkout.php:237
+msgid "Capture Payment with Hyperswitch"
+msgstr ""
+
+#: hyperswitch-checkout.php:241
+msgid "Sync Payment with Hyperswitch"
+msgstr ""
+
+#. translators: %s: payment ID
+#: hyperswitch-checkout.php:286
+#, fuzzy
+msgid "Synced Payment Status (Hyperswitch Payment ID: %s)"
+msgstr ""
+"Payment %1$s via %2$s (Hyperswitch Payment ID: %3$s) (via Hyperswitch "
+"Webhook)"
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:297 hyperswitch-checkout.php:876
+#, fuzzy
+msgid "Payment successful via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr ""
+"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
+"Webhook)"
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:306 hyperswitch-checkout.php:894
+#, fuzzy
+msgid "Payment processing via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr ""
+"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
+"Webhook)"
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:313
+#, fuzzy
+msgid "Payment failed via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr ""
+"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
+"Webhook)"
+
+#: hyperswitch-checkout.php:326
+msgid "Enable/Disable"
+msgstr ""
+
+#: hyperswitch-checkout.php:327
+#, fuzzy
+msgid "Enable Hyperswitch"
+msgstr "Hyperswitch"
+
+#: hyperswitch-checkout.php:333
+msgid "Title"
+msgstr ""
+
+#: hyperswitch-checkout.php:335
+msgid ""
+"The title to be displayed for Hyperswitch Payment Method (in case of "
+"multiple WooCommerce Payment Gateways/ Methods)"
+msgstr ""
+
+#: hyperswitch-checkout.php:336
+msgid "Credit, Debit Card and Wallet Payments (powered by Hyperswitch)"
+msgstr ""
+
+#: hyperswitch-checkout.php:339
+msgid "Environment"
+msgstr ""
+
+#: hyperswitch-checkout.php:340
+msgid "Select Environment"
+msgstr ""
+
+#: hyperswitch-checkout.php:343
+msgid "Production"
+msgstr ""
+
+#: hyperswitch-checkout.php:344
+msgid "Sandbox"
+msgstr ""
+
+#: hyperswitch-checkout.php:349
+msgid "Api Key"
+msgstr ""
+
+#: hyperswitch-checkout.php:351 hyperswitch-checkout.php:356
+#: hyperswitch-checkout.php:361
+msgid "Find this on Developers > API Keys section of Hyperswitch Dashboard"
+msgstr ""
+
+#: hyperswitch-checkout.php:354
+msgid "Publishable key"
+msgstr ""
+
+#: hyperswitch-checkout.php:359
+msgid "Payment Response Hash Key"
+msgstr ""
+
+#: hyperswitch-checkout.php:364
+msgid "Business Profile ID"
+msgstr ""
+
+#: hyperswitch-checkout.php:366
+msgid ""
+"Find this on Settings > Business profiles section of Hyperswitch Dashboard"
+msgstr ""
+
+#: hyperswitch-checkout.php:369
+msgid "Enable Webhook"
+msgstr ""
+
+#. translators: %s: webhook URL
+#: hyperswitch-checkout.php:373
+msgid ""
+"Allow webhooks from Hyperswitch to receive real time updates of payments to "
+"update orders.
%s
Use this URL to be entered "
+"as Webhook URL on Hyperswitch dashboard"
+msgstr ""
+
+#: hyperswitch-checkout.php:376
+msgid "Enable Hyperswitch Webhook"
+msgstr ""
+
+#: hyperswitch-checkout.php:380
+msgid "Capture Method"
+msgstr ""
+
+#: hyperswitch-checkout.php:381
+msgid "Select Capture Method"
+msgstr ""
+
+#: hyperswitch-checkout.php:383
+msgid "Specify whether you want to capture payments manually or automatically"
+msgstr ""
+
+#: hyperswitch-checkout.php:385
+msgid "Automatic"
+msgstr ""
+
+#: hyperswitch-checkout.php:386
+msgid "Manual"
+msgstr ""
+
+#: hyperswitch-checkout.php:391 hyperswitch-checkout.php:394
+msgid "Enable Saved Payment Methods"
+msgstr ""
+
+#: hyperswitch-checkout.php:393
+msgid "Allow registered customers to pay via saved payment methods"
+msgstr ""
+
+#: hyperswitch-checkout.php:398
+msgid "Show Card Form Always"
+msgstr ""
+
+#: hyperswitch-checkout.php:400
+msgid "Show Card Form before Payment Methods List has loaded"
+msgstr ""
+
+#: hyperswitch-checkout.php:404
+msgid "Appearance"
+msgstr ""
+
+#: hyperswitch-checkout.php:407
+msgid ""
+"Use the above parameter to pass appearance config (in json format) to the "
+"checkout."
+msgstr ""
+
+#: hyperswitch-checkout.php:410
+msgid "Layout"
+msgstr ""
+
+#: hyperswitch-checkout.php:411
+msgid "Select Layout"
+msgstr ""
+
+#: hyperswitch-checkout.php:413
+msgid "Choose a layout that fits well with your UI pattern."
+msgstr ""
+
+#: hyperswitch-checkout.php:415
+msgid "Tabs"
+msgstr ""
+
+#: hyperswitch-checkout.php:416
+msgid "Accordion"
+msgstr ""
+
+#: hyperswitch-checkout.php:417
+msgid "Spaced Accordion"
+msgstr ""
+
+#: hyperswitch-checkout.php:422
+msgid "Hold Order on Processing Payments"
+msgstr ""
+
+#: hyperswitch-checkout.php:424
+msgid ""
+"Disable this only if you do not want to reduce stock levels until the "
+"payment is successful."
+msgstr ""
+
+#: hyperswitch-checkout.php:425
+msgid ""
+"Whether to hold order, reduce stock if a payment goes into processing status."
+msgstr ""
+
+#: hyperswitch-checkout.php:452 hyperswitch-checkout.php:492
+msgid "Unable to Create Hyperswitch Payment Intent."
+msgstr ""
+
+#: hyperswitch-checkout.php:456 hyperswitch-checkout.php:459
+#: hyperswitch-checkout.php:496 hyperswitch-checkout.php:499
+msgid "Something went wrong. Please contact support for assistance."
+msgstr ""
+
+#: hyperswitch-checkout.php:713
+msgid "Customer created via Woocommerce Application"
+msgstr ""
+
+#: hyperswitch-checkout.php:862
+msgid ""
+"Thank you for shopping with us. However, the transaction has been declined."
+msgstr ""
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:887
+#, fuzzy
+msgid ""
+"Payment authorized via %1$s (Hyperswitch Payment ID: %2$s). Note: Requires "
+"Capture"
+msgstr ""
+"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
+"Webhook)"
+
+#. translators: %1$s: payment method, %2$s: payment ID, %3$s: error message
+#: hyperswitch-checkout.php:908
+#, fuzzy
+msgid ""
+"Payment failed via %1$s (Hyperswitch Payment ID: %2$s) with error message: "
+"%3$s"
+msgstr ""
+"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
+"Webhook)"
+
+#: hyperswitch-checkout.php:915
+msgid ""
+"Thank you for shopping with us. However, the payment has failed. Please "
+"retry the payment."
+msgstr ""
+
+#: hyperswitch-checkout.php:964
+msgid "Something went wrong. Please try again or reload the page."
+msgstr ""
+
#. translators: Webhook received log message
#: includes/hyperswitch-webhook.php:71
msgid "WC_WEBHOOK_RECEIVED"
diff --git a/locale/languages/en_US/hyperswitch-en_US.po~ b/locale/languages/en_US/hyperswitch-en_US.po~
new file mode 100644
index 0000000..a12cde2
--- /dev/null
+++ b/locale/languages/en_US/hyperswitch-en_US.po~
@@ -0,0 +1,95 @@
+# Copyright (C) 2024 Hyperswitch
+# This file is distributed under the GPLv2 or later.
+msgid ""
+msgstr ""
+"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
+"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-"
+"woocommerce-plugin\n"
+"Last-Translator: \n"
+"Language-Team: English\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: 2024-10-05T22:36:53+05:30\n"
+"PO-Revision-Date: 2024-10-05 22:37+0530\n"
+"X-Generator: WP-CLI 2.11.0\n"
+"X-Domain: hyperswitch\n"
+"Language: en_US\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Plugin Name of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch Checkout for WooCommerce"
+msgstr "Hyperswitch Checkout for WooCommerce"
+
+#. Plugin URI of the plugin
+#. Author URI of the plugin
+#: hyperswitch-checkout.php
+msgid "https://hyperswitch.io/"
+msgstr "https://hyperswitch.io/"
+
+#. Description of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch checkout plugin for WooCommerce"
+msgstr "Hyperswitch checkout plugin for WooCommerce"
+
+#. Author of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch"
+msgstr "Hyperswitch"
+
+#. translators: Webhook received log message
+#: includes/hyperswitch-webhook.php:71
+msgid "WC_WEBHOOK_RECEIVED"
+msgstr "WC_WEBHOOK_RECEIVED"
+
+#: includes/hyperswitch-webhook.php:85
+msgid "failed"
+msgstr "failed"
+
+#: includes/hyperswitch-webhook.php:88 includes/hyperswitch-webhook.php:155
+msgid "processing"
+msgstr "processing"
+
+#: includes/hyperswitch-webhook.php:91
+msgid "action required"
+msgstr "action required"
+
+#. translators: Order placed log message
+#: includes/hyperswitch-webhook.php:115
+msgid "WC_ORDER_PLACED"
+msgstr "WC_ORDER_PLACED"
+
+#. translators: 1: Payment method 2: Payment ID
+#: includes/hyperswitch-webhook.php:124
+msgid ""
+"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
+"Webhook)"
+msgstr ""
+"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
+"Webhook)"
+
+#. translators: Payment succeeded webhook log message
+#: includes/hyperswitch-webhook.php:135
+msgid "WC_PAYMENT_SUCCEEDED_WEBHOOK"
+msgstr "WC_PAYMENT_SUCCEEDED_WEBHOOK"
+
+#: includes/hyperswitch-webhook.php:158
+msgid "pending"
+msgstr "pending"
+
+#. translators: 1: Payment status 2: Payment method 3: Payment ID
+#: includes/hyperswitch-webhook.php:163
+msgid ""
+"Payment %1$s via %2$s (Hyperswitch Payment ID: %3$s) (via Hyperswitch "
+"Webhook)"
+msgstr ""
+"Payment %1$s via %2$s (Hyperswitch Payment ID: %3$s) (via Hyperswitch "
+"Webhook)"
+
+#. translators: %s: Refund ID
+#: includes/hyperswitch-webhook.php:216
+msgid ""
+"Refund Successful (Hyperswitch Refund ID: %1$s) (via Hyperswitch Webhook)"
+msgstr ""
+"Refund Successful (Hyperswitch Refund ID: %1$s) (via Hyperswitch Webhook)"
diff --git a/locale/languages/es_ES/hyperswitch-checkout-es_ES.mo b/locale/languages/es_ES/hyperswitch-checkout-es_ES.mo
deleted file mode 100644
index 054f690e48353c5c023c96fedfce387de69707c4..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 7010
zcmbuDON<;x8OJM-5NCPYNg&}>33l)j&+NmGB;!Z2+4W-+ue0o~V*?4Hrl)qMy*=HX
zuI^oLgoNP01rBiFf`q_A94thn5OG1`rG*O$k$@nCKpY4Hi9@&qBoGLGUv>BFtQ|W}
zXsPEv(^dV|SKs&l9yNd1e*Kpf*Fo<0a=(0?QjdVoy^#;DZ8s=&6L=Fi2JQf5?lkyA
z@YCRp;Qen>Y6LtE%KQaz2lyEHHZTP>_-Sw-_;v7p@YmoT@D_wT20jRG2fqg14t@s|
zy?zdgoWEB1Pw>tB-nI>0z?;E`z_Z{T;5R@S|0%c=`~`S7_z#dJ)tx9QI11hdj)M!}
zL*N1MtDxB71+WF~WOIT~fU?i8@bPx=n;@#F?}E30-v>qiUx9B0{|vIEdbt|^54fM-
zJ5cTrI17s0&w=j%e+(W2e+j-1yzMPYO@jA;*MsN4kAVsJF!(bt2XAFDT%kS>?g769
zE`mP*=fLe4?_J<0!9U^S^B`MOkF%((*9B$X)8OyHe}gjq+jo}xeGx<@^%5v@{sqcD
zxAP%-?gCGM)8Hxa3!vEXci_jt?T|tE5cBbV@U!5Z-~~|Z_!E$+>IG2j`4{jL;NQR}
zz*9FXwHtgI6g_?e?gC!~?*?ze`10Oa|=&c-e0l?rt~^NQ7=>MAlF^o_xf+8t>vrOO0EMX_!t%cTzUyN
zg#U7ho%Z=}N=bV8Ft_Fw|Kk=P2V!H{r}$3nE*z2Th7uHX_wg(~7P}2!m_lI&1vPyR
zXo7pWC%J`N6Wk4MxuCxq=N{uGM3kBef+XvNNvx)#C|T1%;qs(!GpF-JI~x?4jn;K)
z*7a&=^ojM9p|vm%de!{Qc0-rj%yzcETEF4UDntD0+c?*KoA;8AtKMC+?Ou|sIK7-D
z{bAX%c4h+`u3FGUIuH9+7iq`j*6C!qmgki$A8U4jYRyCKZ0tz+;ZhSH+2sz6`7fIT
zr=8V#FLe6!!bw@FZ8f_2Ef}ZIluG%*B;KM`$GBcQFj7A}mfb9z2Ymcz*E*%>u$(i~IjId6c$&-uzOShP31l$ypcsA+U$){`PfUz6+Q
zFn4;*Mv?aO8OZeMS&WgRecV*jcp=R9=o#A%b3Kis+Qc1w#zc|Lb+wk$yVGRN@3y@@
zyymEyu6(ZpjGp5*arv1f36egH2&`tiQ5djE=rR*J(`Iwtl1U6n!exz0x|8TQ$@QAS
z-`&Wxu%aWoY9ptMI1h1Z&(@CAc*7MzfYp|ZsHu*|UiL8EE`LuSiE9vbB8fWs5n;7vMYtr^LEONRYDk6Q?|QmtgB4-Ta*~PvrYrw#
znH1EM(x~W$@nv&Qdg7@$6Bi~@wN)3aOOqI8o?y#91nLn}5ZYPzR7IOz6FXtrkcPF|
zL_FiPZnWDU{^shSZvu4JtYgTLEP(nt&Am`W!S2Zg-sWgcJ1Bi
z2J&!OZF&ia*P_ZMr+qA4)2mrR!1xfGFWOP)dOj3Z$To{ab2~Y&7HtF%Yjf2(rFuHd
z=;~4B%9@U9u}7l!>ET$C_4QP=X4c)MPumvu*n!uoaMCBq_PR%&j1tqa9kocYAZDQD
znk4u&f~nio^N}@>BuL`ips6d;G|5Un8c6JNNtw;7zno|5+H?)n#4}VO)~ixRS6)p`
z05>+v*J5geaCu#?_0WfykyKRYprFdWX_;=F?t4~~vk(n&%fwBZ#K!A!Fxd2EX<0^D
zwdVX{Zt~)4GX~@Ot0W=mdP$mklS$eyTvMMQBd^+Q&z77hRxU$eV9?Bp
zRfZC0^RWD1zd6-L9_hqpYx|9OMjz#TP3g(g)dN*DQ
z#N#B!ei7wiij1MmGqBik>WZ*!tYWPgNETG5%Z$&uR52#K;%c*$={RqyvVv0{+X)>)
zN(F|5_?)*>_@&LDEDHsf!>(8GoMYE)gepBMQ^kyR7Hq0B6>k{mN#^za#2$z@RKBQi
zW>B)a2`MX#WzEe50kdI5Q}yyZb*-_n-e$wp43jZM8b3$uHfB4GN2x9Np|xeFS4!P_
zqIsY>IkI3Sjv8~W8+IBG7G2j^N?N*JYz>`L5~*t@S$C`oy0J394{Op`+pOu0a(LvV
zad~4&=nV6G_5-_GB-PSbaST@&GC_Gasp0lEMb|J&h7ae4T9AI{D7XAZ0*12?(zM5
z$4AaKj@#H~<)+TeH>OX{>dEGWsB*S3L*$3JV8~64ni7K@wzPF4^HGtRsBsMXxR#Ew
z8b96P$%DH5dU$uN?>MX{Mh}kAQww=Eo{iPK&H7;;l4Qu2P7`Nr9onQMwv50l=}24A
zMI4ie&()2KPDX~J?TTW`<~uVTWS1iQbbvHoR`)k9=7~H<6hn!|Sy@MBZb}>U-&>bs
zKFZL4hi%b3$Y}t=r%ZsQQJsX5hqj+ehfZf+iI??d2leDkr)a`z*V>RaM0Ex-rxr5M@z4^ukn)5`>&Ul?|Mr$tL
zV%tsFnwl#OCXdQ;VN}_V;3#iEGRYRF9F4+rhE`USCGEyDiGH%6%_S*ys5Vx&SsRbK
zg17SwGKgf-1q+*}7@=?wWd5$##zeBa+;NAoq)BzZAW
zHa@KE)x}Sp<6Py%k`ClR=nYr#4pFZze*v$P!>X8)5EMrGSS)Lg=}Tfs)UZ-R-#1SL
zKDveqvm&oa_s@nr$%kLMY%Yf;A$ol#C`0Xp90YhB!=;6f;!2k1wePMt6$n$eFtKcf
zt6-G;wAG};M+8$H5je9BLQ`Uf<|vBDF|S8(soeh|z{e}cMrY1h(cK>)>Vt#t2dJCU
zj-co3*m$X56+o{~fImlgf>%i~mE%Mpr-`j62}$e(XBBC(nK}Xb^FuW({E|=_epY2Z
zRWV%6C5{S~`Kne#lHEjFozW?G7R+S5>#V`&y
zRS`p1DnytCs$pr*HvS{1=JRm()gp}MdtM@T;~C@B@l3R(j$=A%ZYq8hlf`6kavp~i
z6w$WdX3tcmI?wlv4?`5#V)fc!^|VdHHDBvWc)mKel-ZgUokTqiO3#p3F#1vcOxpN%
zUQn_s*7QpzZd|}7)JxPDqPI8GaHiW$M&4aL
zJVUoQkY|`s_BmSiQ66v-EvKDPO@~(Zvz(bjj8<}9*76M+ZAD$#c~(|)%06w4*AuFX
S`EdLu$;#|jR-7xJbp8jf+H3Ow
diff --git a/locale/languages/es_ES/hyperswitch-checkout-es_ES.po b/locale/languages/es_ES/hyperswitch-checkout-es_ES.po
deleted file mode 100644
index 5b33da7..0000000
--- a/locale/languages/es_ES/hyperswitch-checkout-es_ES.po
+++ /dev/null
@@ -1,192 +0,0 @@
-# Copyright (C) 2024 Hyperswitch
-# This file is distributed under the GPLv2 or later.
-msgid ""
-msgstr ""
-"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
-"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-"
-"woocommerce-plugin\n"
-"Last-Translator: \n"
-"Language-Team: Spanish \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2024-10-06T12:46:48+05:30\n"
-"PO-Revision-Date: 2024-10-06 12:57+0530\n"
-"X-Generator: WP-CLI 2.11.0\n"
-"X-Domain: hyperswitch-checkout\n"
-"Language: es\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-msgid "Hyperswitch Checkout for WooCommerce"
-msgstr "Hyperswitch Checkout para WooCommerce"
-
-msgid "https://hyperswitch.io/"
-msgstr "https://hyperswitch.io/"
-
-msgid "Hyperswitch checkout plugin for WooCommerce"
-msgstr "Plugin de pago Hyperswitch para WooCommerce"
-
-msgid "Hyperswitch"
-msgstr "Hyperswitch"
-
-msgid "Allow customers to securely pay via Hyperswitch"
-msgstr "Permitir a los clientes pagar de forma segura a través de Hyperswitch"
-
-msgid "Settings"
-msgstr "Ajustes"
-
-msgid "Capture Payment with Hyperswitch"
-msgstr "Capturar pago con Hyperswitch"
-
-msgid "Sync Payment with Hyperswitch"
-msgstr "Sincronizar pago con Hyperswitch"
-
-msgid "Synced Payment Status (Hyperswitch Payment ID: %s)"
-msgstr "Estado de pago sincronizado (ID de pago de Hyperswitch: %s)"
-
-msgid "Payment successful via %1$s (Hyperswitch Payment ID: %2$s)"
-msgstr "Pago exitoso a través de %1$s (ID de pago de Hyperswitch: %2$s)"
-
-msgid "Payment processing via %1$s (Hyperswitch Payment ID: %2$s)"
-msgstr "Procesando pago a través de %1$s (ID de pago de Hyperswitch: %2$s)"
-
-msgid "Payment failed via %1$s (Hyperswitch Payment ID: %2$s)"
-msgstr "Pago fallido a través de %1$s (ID de pago de Hyperswitch: %2$s)"
-
-msgid "Enable/Disable"
-msgstr "Activar/Desactivar"
-
-msgid "Enable Hyperswitch"
-msgstr "Activar Hyperswitch"
-
-msgid "Title"
-msgstr "Título"
-
-msgid "The title to be displayed for Hyperswitch Payment Method (in case of multiple WooCommerce Payment Gateways/ Methods)"
-msgstr "El título que se mostrará para el método de pago Hyperswitch (en caso de múltiples pasarelas/métodos de pago de WooCommerce)"
-
-msgid "Credit, Debit Card and Wallet Payments (powered by Hyperswitch)"
-msgstr "Pagos con tarjeta de crédito, débito y billetera (impulsado por Hyperswitch)"
-
-msgid "Environment"
-msgstr "Entorno"
-
-msgid "Select Environment"
-msgstr "Seleccionar entorno"
-
-msgid "Production"
-msgstr "Producción"
-
-msgid "Sandbox"
-msgstr "Sandbox"
-
-msgid "Api Key"
-msgstr "Clave API"
-
-msgid "Find this on Developers > API Keys section of Hyperswitch Dashboard"
-msgstr "Encuentre esto en la sección Desarrolladores > Claves API del Panel de Control de Hyperswitch"
-
-msgid "Publishable key"
-msgstr "Clave publicable"
-
-msgid "Payment Response Hash Key"
-msgstr "Clave Hash de respuesta de pago"
-
-msgid "Business Profile ID"
-msgstr "ID de perfil de negocio"
-
-msgid "Find this on Settings > Business profiles section of Hyperswitch Dashboard"
-msgstr "Encuentre esto en la sección Ajustes > Perfiles de negocio del Panel de Control de Hyperswitch"
-
-msgid "Enable Webhook"
-msgstr "Activar Webhook"
-
-msgid "Allow webhooks from Hyperswitch to receive real time updates of payments to update orders.
%s
Use this URL to be entered as Webhook URL on Hyperswitch dashboard"
-msgstr "Permitir webhooks de Hyperswitch para recibir actualizaciones en tiempo real de pagos para actualizar pedidos.
%s
Use esta URL para ingresarla como URL de Webhook en el panel de Hyperswitch"
-
-msgid "Enable Hyperswitch Webhook"
-msgstr "Activar Webhook de Hyperswitch"
-
-msgid "Capture Method"
-msgstr "Método de captura"
-
-msgid "Select Capture Method"
-msgstr "Seleccionar método de captura"
-
-msgid "Specify whether you want to capture payments manually or automatically"
-msgstr "Especifique si desea capturar pagos manual o automáticamente"
-
-msgid "Automatic"
-msgstr "Automático"
-
-msgid "Manual"
-msgstr "Manual"
-
-msgid "Enable Saved Payment Methods"
-msgstr "Activar métodos de pago guardados"
-
-msgid "Allow registered customers to pay via saved payment methods"
-msgstr "Permitir a los clientes registrados pagar mediante métodos de pago guardados"
-
-msgid "Show Card Form Always"
-msgstr "Mostrar formulario de tarjeta siempre"
-
-msgid "Show Card Form before Payment Methods List has loaded"
-msgstr "Mostrar formulario de tarjeta antes de que se cargue la lista de métodos de pago"
-
-msgid "Appearance"
-msgstr "Apariencia"
-
-msgid "Use the above parameter to pass appearance config (in json format) to the checkout."
-msgstr "Use el parámetro anterior para pasar la configuración de apariencia (en formato json) al checkout."
-
-msgid "Layout"
-msgstr "Diseño"
-
-msgid "Select Layout"
-msgstr "Seleccionar diseño"
-
-msgid "Choose a layout that fits well with your UI pattern."
-msgstr "Elija un diseño que se adapte bien a su patrón de interfaz de usuario."
-
-msgid "Tabs"
-msgstr "Pestañas"
-
-msgid "Accordion"
-msgstr "Acordeón"
-
-msgid "Spaced Accordion"
-msgstr "Acordeón espaciado"
-
-msgid "Hold Order on Processing Payments"
-msgstr "Retener pedido en pagos en procesamiento"
-
-msgid "Disable this only if you do not want to reduce stock levels until the payment is successful."
-msgstr "Desactive esto solo si no desea reducir los niveles de stock hasta que el pago sea exitoso."
-
-msgid "Whether to hold order, reduce stock if a payment goes into processing status."
-msgstr "Si retener el pedido y reducir el stock si un pago entra en estado de procesamiento."
-
-msgid "Unable to Create Hyperswitch Payment Intent."
-msgstr "No se puede crear la intención de pago de Hyperswitch."
-
-msgid "Something went wrong. Please contact support for assistance."
-msgstr "Algo salió mal. Por favor, contacte con soporte para obtener ayuda."
-
-msgid "Customer created via Woocommerce Application"
-msgstr "Cliente creado a través de la aplicación Woocommerce"
-
-msgid "Thank you for shopping with us. However, the transaction has been declined."
-msgstr "Gracias por comprar con nosotros. Sin embargo, la transacción ha sido rechazada."
-
-msgid "Payment authorized via %1$s (Hyperswitch Payment ID: %2$s). Note: Requires Capture"
-msgstr "Pago autorizado a través de %1$s (ID de pago de Hyperswitch: %2$s). Nota: Requiere captura"
-
-msgid "Payment failed via %1$s (Hyperswitch Payment ID: %2$s) with error message: %3$s"
-msgstr "Pago fallido a través de %1$s (ID de pago de Hyperswitch: %2$s) con mensaje de error: %3$s"
-
-msgid "Thank you for shopping with us. However, the payment has failed. Please retry the payment."
-msgstr "Gracias por comprar con nosotros. Sin embargo, el pago ha fallado. Por favor, intente el pago nuevamente."
-
-msgid "Something went wrong. Please try again or reload the page."
-msgstr "Algo salió mal. Por favor, intente nuevamente o recargue la página."
\ No newline at end of file
diff --git a/locale/languages/es_ES/hyperswitch-es_ES.mo b/locale/languages/es_ES/hyperswitch-es_ES.mo
index 31eacb41ec73e3bdf2cdee6a9fe8612880896e06..f355bdd7a74f9dddc7bfa8a051c28dbc44051ddf 100644
GIT binary patch
delta 41
xcmbQvH=S?81?I_(EEutZJ1z^pNO8;c>2PhwtrX<~Y+l|pLq=4UL1OaM?z4?X|@
diff --git a/locale/languages/es_ES/hyperswitch-es_ES.po b/locale/languages/es_ES/hyperswitch-es_ES.po
index a8cbf29..8fd91bd 100644
--- a/locale/languages/es_ES/hyperswitch-es_ES.po
+++ b/locale/languages/es_ES/hyperswitch-es_ES.po
@@ -5,16 +5,16 @@ msgstr ""
"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-"
"woocommerce-plugin\n"
+"POT-Creation-Date: 2024-10-06T12:46:48+05:30\n"
+"PO-Revision-Date: 2024-10-05 22:42+0530\n"
"Last-Translator: \n"
"Language-Team: Spanish \n"
+"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2024-10-05T22:36:53+05:30\n"
-"PO-Revision-Date: 2024-10-05 22:42+0530\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: hyperswitch\n"
-"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. Plugin Name of the plugin
@@ -38,6 +38,268 @@ msgstr "Plugin de pago Hyperswitch para WooCommerce"
msgid "Hyperswitch"
msgstr "Hyperswitch"
+#: hyperswitch-checkout.php:60
+msgid "Allow customers to securely pay via Hyperswitch"
+msgstr ""
+
+#: hyperswitch-checkout.php:134
+msgid "Settings"
+msgstr ""
+
+#: hyperswitch-checkout.php:237
+msgid "Capture Payment with Hyperswitch"
+msgstr ""
+
+#: hyperswitch-checkout.php:241
+msgid "Sync Payment with Hyperswitch"
+msgstr ""
+
+#. translators: %s: payment ID
+#: hyperswitch-checkout.php:286
+#, fuzzy
+msgid "Synced Payment Status (Hyperswitch Payment ID: %s)"
+msgstr ""
+"Pago %1$s a través de %2$s (ID de pago Hyperswitch: %3$s) (a través del "
+"Webhook de Hyperswitch)"
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:297 hyperswitch-checkout.php:876
+#, fuzzy
+msgid "Payment successful via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr ""
+"Pago exitoso a través de %1$s (ID de pago Hyperswitch: %2$s) (a través del "
+"Webhook de Hyperswitch)"
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:306 hyperswitch-checkout.php:894
+#, fuzzy
+msgid "Payment processing via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr ""
+"Pago exitoso a través de %1$s (ID de pago Hyperswitch: %2$s) (a través del "
+"Webhook de Hyperswitch)"
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:313
+#, fuzzy
+msgid "Payment failed via %1$s (Hyperswitch Payment ID: %2$s)"
+msgstr ""
+"Pago exitoso a través de %1$s (ID de pago Hyperswitch: %2$s) (a través del "
+"Webhook de Hyperswitch)"
+
+#: hyperswitch-checkout.php:326
+msgid "Enable/Disable"
+msgstr ""
+
+#: hyperswitch-checkout.php:327
+#, fuzzy
+msgid "Enable Hyperswitch"
+msgstr "Hyperswitch"
+
+#: hyperswitch-checkout.php:333
+msgid "Title"
+msgstr ""
+
+#: hyperswitch-checkout.php:335
+msgid ""
+"The title to be displayed for Hyperswitch Payment Method (in case of "
+"multiple WooCommerce Payment Gateways/ Methods)"
+msgstr ""
+
+#: hyperswitch-checkout.php:336
+msgid "Credit, Debit Card and Wallet Payments (powered by Hyperswitch)"
+msgstr ""
+
+#: hyperswitch-checkout.php:339
+msgid "Environment"
+msgstr ""
+
+#: hyperswitch-checkout.php:340
+msgid "Select Environment"
+msgstr ""
+
+#: hyperswitch-checkout.php:343
+msgid "Production"
+msgstr ""
+
+#: hyperswitch-checkout.php:344
+msgid "Sandbox"
+msgstr ""
+
+#: hyperswitch-checkout.php:349
+msgid "Api Key"
+msgstr ""
+
+#: hyperswitch-checkout.php:351 hyperswitch-checkout.php:356
+#: hyperswitch-checkout.php:361
+msgid "Find this on Developers > API Keys section of Hyperswitch Dashboard"
+msgstr ""
+
+#: hyperswitch-checkout.php:354
+msgid "Publishable key"
+msgstr ""
+
+#: hyperswitch-checkout.php:359
+msgid "Payment Response Hash Key"
+msgstr ""
+
+#: hyperswitch-checkout.php:364
+msgid "Business Profile ID"
+msgstr ""
+
+#: hyperswitch-checkout.php:366
+msgid ""
+"Find this on Settings > Business profiles section of Hyperswitch Dashboard"
+msgstr ""
+
+#: hyperswitch-checkout.php:369
+msgid "Enable Webhook"
+msgstr ""
+
+#. translators: %s: webhook URL
+#: hyperswitch-checkout.php:373
+msgid ""
+"Allow webhooks from Hyperswitch to receive real time updates of payments to "
+"update orders.
%s
Use this URL to be entered "
+"as Webhook URL on Hyperswitch dashboard"
+msgstr ""
+
+#: hyperswitch-checkout.php:376
+msgid "Enable Hyperswitch Webhook"
+msgstr ""
+
+#: hyperswitch-checkout.php:380
+msgid "Capture Method"
+msgstr ""
+
+#: hyperswitch-checkout.php:381
+msgid "Select Capture Method"
+msgstr ""
+
+#: hyperswitch-checkout.php:383
+msgid "Specify whether you want to capture payments manually or automatically"
+msgstr ""
+
+#: hyperswitch-checkout.php:385
+msgid "Automatic"
+msgstr ""
+
+#: hyperswitch-checkout.php:386
+msgid "Manual"
+msgstr ""
+
+#: hyperswitch-checkout.php:391 hyperswitch-checkout.php:394
+msgid "Enable Saved Payment Methods"
+msgstr ""
+
+#: hyperswitch-checkout.php:393
+msgid "Allow registered customers to pay via saved payment methods"
+msgstr ""
+
+#: hyperswitch-checkout.php:398
+msgid "Show Card Form Always"
+msgstr ""
+
+#: hyperswitch-checkout.php:400
+msgid "Show Card Form before Payment Methods List has loaded"
+msgstr ""
+
+#: hyperswitch-checkout.php:404
+msgid "Appearance"
+msgstr ""
+
+#: hyperswitch-checkout.php:407
+msgid ""
+"Use the above parameter to pass appearance config (in json format) to the "
+"checkout."
+msgstr ""
+
+#: hyperswitch-checkout.php:410
+msgid "Layout"
+msgstr ""
+
+#: hyperswitch-checkout.php:411
+msgid "Select Layout"
+msgstr ""
+
+#: hyperswitch-checkout.php:413
+msgid "Choose a layout that fits well with your UI pattern."
+msgstr ""
+
+#: hyperswitch-checkout.php:415
+msgid "Tabs"
+msgstr ""
+
+#: hyperswitch-checkout.php:416
+msgid "Accordion"
+msgstr ""
+
+#: hyperswitch-checkout.php:417
+msgid "Spaced Accordion"
+msgstr ""
+
+#: hyperswitch-checkout.php:422
+msgid "Hold Order on Processing Payments"
+msgstr ""
+
+#: hyperswitch-checkout.php:424
+msgid ""
+"Disable this only if you do not want to reduce stock levels until the "
+"payment is successful."
+msgstr ""
+
+#: hyperswitch-checkout.php:425
+msgid ""
+"Whether to hold order, reduce stock if a payment goes into processing status."
+msgstr ""
+
+#: hyperswitch-checkout.php:452 hyperswitch-checkout.php:492
+msgid "Unable to Create Hyperswitch Payment Intent."
+msgstr ""
+
+#: hyperswitch-checkout.php:456 hyperswitch-checkout.php:459
+#: hyperswitch-checkout.php:496 hyperswitch-checkout.php:499
+msgid "Something went wrong. Please contact support for assistance."
+msgstr ""
+
+#: hyperswitch-checkout.php:713
+msgid "Customer created via Woocommerce Application"
+msgstr ""
+
+#: hyperswitch-checkout.php:862
+msgid ""
+"Thank you for shopping with us. However, the transaction has been declined."
+msgstr ""
+
+#. translators: %1$s: payment method, %2$s: payment ID
+#: hyperswitch-checkout.php:887
+#, fuzzy
+msgid ""
+"Payment authorized via %1$s (Hyperswitch Payment ID: %2$s). Note: Requires "
+"Capture"
+msgstr ""
+"Pago exitoso a través de %1$s (ID de pago Hyperswitch: %2$s) (a través del "
+"Webhook de Hyperswitch)"
+
+#. translators: %1$s: payment method, %2$s: payment ID, %3$s: error message
+#: hyperswitch-checkout.php:908
+#, fuzzy
+msgid ""
+"Payment failed via %1$s (Hyperswitch Payment ID: %2$s) with error message: "
+"%3$s"
+msgstr ""
+"Pago exitoso a través de %1$s (ID de pago Hyperswitch: %2$s) (a través del "
+"Webhook de Hyperswitch)"
+
+#: hyperswitch-checkout.php:915
+msgid ""
+"Thank you for shopping with us. However, the payment has failed. Please "
+"retry the payment."
+msgstr ""
+
+#: hyperswitch-checkout.php:964
+msgid "Something went wrong. Please try again or reload the page."
+msgstr ""
+
#. translators: Webhook received log message
#: includes/hyperswitch-webhook.php:71
msgid "WC_WEBHOOK_RECEIVED"
diff --git a/locale/languages/es_ES/hyperswitch-es_ES.po~ b/locale/languages/es_ES/hyperswitch-es_ES.po~
new file mode 100644
index 0000000..a8cbf29
--- /dev/null
+++ b/locale/languages/es_ES/hyperswitch-es_ES.po~
@@ -0,0 +1,96 @@
+# Copyright (C) 2024 Hyperswitch
+# This file is distributed under the GPLv2 or later.
+msgid ""
+msgstr ""
+"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
+"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-"
+"woocommerce-plugin\n"
+"Last-Translator: \n"
+"Language-Team: Spanish \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: 2024-10-05T22:36:53+05:30\n"
+"PO-Revision-Date: 2024-10-05 22:42+0530\n"
+"X-Generator: WP-CLI 2.11.0\n"
+"X-Domain: hyperswitch\n"
+"Language: es\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Plugin Name of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch Checkout for WooCommerce"
+msgstr "Pago Hyperswitch para WooCommerce"
+
+#. Plugin URI of the plugin
+#. Author URI of the plugin
+#: hyperswitch-checkout.php
+msgid "https://hyperswitch.io/"
+msgstr "https://hyperswitch.io/"
+
+#. Description of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch checkout plugin for WooCommerce"
+msgstr "Plugin de pago Hyperswitch para WooCommerce"
+
+#. Author of the plugin
+#: hyperswitch-checkout.php
+msgid "Hyperswitch"
+msgstr "Hyperswitch"
+
+#. translators: Webhook received log message
+#: includes/hyperswitch-webhook.php:71
+msgid "WC_WEBHOOK_RECEIVED"
+msgstr "WC_WEBHOOK_RECIBIDO"
+
+#: includes/hyperswitch-webhook.php:85
+msgid "failed"
+msgstr "fallido"
+
+#: includes/hyperswitch-webhook.php:88 includes/hyperswitch-webhook.php:155
+msgid "processing"
+msgstr "procesando"
+
+#: includes/hyperswitch-webhook.php:91
+msgid "action required"
+msgstr "acción requerida"
+
+#. translators: Order placed log message
+#: includes/hyperswitch-webhook.php:115
+msgid "WC_ORDER_PLACED"
+msgstr "WC_ORDEN_REALIZADA"
+
+#. translators: 1: Payment method 2: Payment ID
+#: includes/hyperswitch-webhook.php:124
+msgid ""
+"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
+"Webhook)"
+msgstr ""
+"Pago exitoso a través de %1$s (ID de pago Hyperswitch: %2$s) (a través del "
+"Webhook de Hyperswitch)"
+
+#. translators: Payment succeeded webhook log message
+#: includes/hyperswitch-webhook.php:135
+msgid "WC_PAYMENT_SUCCEEDED_WEBHOOK"
+msgstr "WC_PAGO_EXITOSO_WEBHOOK"
+
+#: includes/hyperswitch-webhook.php:158
+msgid "pending"
+msgstr "pendiente"
+
+#. translators: 1: Payment status 2: Payment method 3: Payment ID
+#: includes/hyperswitch-webhook.php:163
+msgid ""
+"Payment %1$s via %2$s (Hyperswitch Payment ID: %3$s) (via Hyperswitch "
+"Webhook)"
+msgstr ""
+"Pago %1$s a través de %2$s (ID de pago Hyperswitch: %3$s) (a través del "
+"Webhook de Hyperswitch)"
+
+#. translators: %s: Refund ID
+#: includes/hyperswitch-webhook.php:216
+msgid ""
+"Refund Successful (Hyperswitch Refund ID: %1$s) (via Hyperswitch Webhook)"
+msgstr ""
+"Reembolso exitoso (ID de reembolso Hyperswitch: %1$s) (a través del Webhook "
+"de Hyperswitch)"
From 77098308051c517481af85eadeaafa9fd57c3ee9 Mon Sep 17 00:00:00 2001
From: AviGawande <2041024@gcoej.ac.in>
Date: Wed, 6 Nov 2024 23:10:48 +0530
Subject: [PATCH 3/3] implement-changes
---
locale/languages/en_US/hyperswitch-en_US.po~ | 95 -------------------
locale/languages/es_ES/hyperswitch-es_ES.po~ | 96 --------------------
2 files changed, 191 deletions(-)
delete mode 100644 locale/languages/en_US/hyperswitch-en_US.po~
delete mode 100644 locale/languages/es_ES/hyperswitch-es_ES.po~
diff --git a/locale/languages/en_US/hyperswitch-en_US.po~ b/locale/languages/en_US/hyperswitch-en_US.po~
deleted file mode 100644
index a12cde2..0000000
--- a/locale/languages/en_US/hyperswitch-en_US.po~
+++ /dev/null
@@ -1,95 +0,0 @@
-# Copyright (C) 2024 Hyperswitch
-# This file is distributed under the GPLv2 or later.
-msgid ""
-msgstr ""
-"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
-"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-"
-"woocommerce-plugin\n"
-"Last-Translator: \n"
-"Language-Team: English\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2024-10-05T22:36:53+05:30\n"
-"PO-Revision-Date: 2024-10-05 22:37+0530\n"
-"X-Generator: WP-CLI 2.11.0\n"
-"X-Domain: hyperswitch\n"
-"Language: en_US\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#. Plugin Name of the plugin
-#: hyperswitch-checkout.php
-msgid "Hyperswitch Checkout for WooCommerce"
-msgstr "Hyperswitch Checkout for WooCommerce"
-
-#. Plugin URI of the plugin
-#. Author URI of the plugin
-#: hyperswitch-checkout.php
-msgid "https://hyperswitch.io/"
-msgstr "https://hyperswitch.io/"
-
-#. Description of the plugin
-#: hyperswitch-checkout.php
-msgid "Hyperswitch checkout plugin for WooCommerce"
-msgstr "Hyperswitch checkout plugin for WooCommerce"
-
-#. Author of the plugin
-#: hyperswitch-checkout.php
-msgid "Hyperswitch"
-msgstr "Hyperswitch"
-
-#. translators: Webhook received log message
-#: includes/hyperswitch-webhook.php:71
-msgid "WC_WEBHOOK_RECEIVED"
-msgstr "WC_WEBHOOK_RECEIVED"
-
-#: includes/hyperswitch-webhook.php:85
-msgid "failed"
-msgstr "failed"
-
-#: includes/hyperswitch-webhook.php:88 includes/hyperswitch-webhook.php:155
-msgid "processing"
-msgstr "processing"
-
-#: includes/hyperswitch-webhook.php:91
-msgid "action required"
-msgstr "action required"
-
-#. translators: Order placed log message
-#: includes/hyperswitch-webhook.php:115
-msgid "WC_ORDER_PLACED"
-msgstr "WC_ORDER_PLACED"
-
-#. translators: 1: Payment method 2: Payment ID
-#: includes/hyperswitch-webhook.php:124
-msgid ""
-"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
-"Webhook)"
-msgstr ""
-"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
-"Webhook)"
-
-#. translators: Payment succeeded webhook log message
-#: includes/hyperswitch-webhook.php:135
-msgid "WC_PAYMENT_SUCCEEDED_WEBHOOK"
-msgstr "WC_PAYMENT_SUCCEEDED_WEBHOOK"
-
-#: includes/hyperswitch-webhook.php:158
-msgid "pending"
-msgstr "pending"
-
-#. translators: 1: Payment status 2: Payment method 3: Payment ID
-#: includes/hyperswitch-webhook.php:163
-msgid ""
-"Payment %1$s via %2$s (Hyperswitch Payment ID: %3$s) (via Hyperswitch "
-"Webhook)"
-msgstr ""
-"Payment %1$s via %2$s (Hyperswitch Payment ID: %3$s) (via Hyperswitch "
-"Webhook)"
-
-#. translators: %s: Refund ID
-#: includes/hyperswitch-webhook.php:216
-msgid ""
-"Refund Successful (Hyperswitch Refund ID: %1$s) (via Hyperswitch Webhook)"
-msgstr ""
-"Refund Successful (Hyperswitch Refund ID: %1$s) (via Hyperswitch Webhook)"
diff --git a/locale/languages/es_ES/hyperswitch-es_ES.po~ b/locale/languages/es_ES/hyperswitch-es_ES.po~
deleted file mode 100644
index a8cbf29..0000000
--- a/locale/languages/es_ES/hyperswitch-es_ES.po~
+++ /dev/null
@@ -1,96 +0,0 @@
-# Copyright (C) 2024 Hyperswitch
-# This file is distributed under the GPLv2 or later.
-msgid ""
-msgstr ""
-"Project-Id-Version: Hyperswitch Checkout for WooCommerce 1.6.2\n"
-"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hyperswitch-"
-"woocommerce-plugin\n"
-"Last-Translator: \n"
-"Language-Team: Spanish \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2024-10-05T22:36:53+05:30\n"
-"PO-Revision-Date: 2024-10-05 22:42+0530\n"
-"X-Generator: WP-CLI 2.11.0\n"
-"X-Domain: hyperswitch\n"
-"Language: es\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#. Plugin Name of the plugin
-#: hyperswitch-checkout.php
-msgid "Hyperswitch Checkout for WooCommerce"
-msgstr "Pago Hyperswitch para WooCommerce"
-
-#. Plugin URI of the plugin
-#. Author URI of the plugin
-#: hyperswitch-checkout.php
-msgid "https://hyperswitch.io/"
-msgstr "https://hyperswitch.io/"
-
-#. Description of the plugin
-#: hyperswitch-checkout.php
-msgid "Hyperswitch checkout plugin for WooCommerce"
-msgstr "Plugin de pago Hyperswitch para WooCommerce"
-
-#. Author of the plugin
-#: hyperswitch-checkout.php
-msgid "Hyperswitch"
-msgstr "Hyperswitch"
-
-#. translators: Webhook received log message
-#: includes/hyperswitch-webhook.php:71
-msgid "WC_WEBHOOK_RECEIVED"
-msgstr "WC_WEBHOOK_RECIBIDO"
-
-#: includes/hyperswitch-webhook.php:85
-msgid "failed"
-msgstr "fallido"
-
-#: includes/hyperswitch-webhook.php:88 includes/hyperswitch-webhook.php:155
-msgid "processing"
-msgstr "procesando"
-
-#: includes/hyperswitch-webhook.php:91
-msgid "action required"
-msgstr "acción requerida"
-
-#. translators: Order placed log message
-#: includes/hyperswitch-webhook.php:115
-msgid "WC_ORDER_PLACED"
-msgstr "WC_ORDEN_REALIZADA"
-
-#. translators: 1: Payment method 2: Payment ID
-#: includes/hyperswitch-webhook.php:124
-msgid ""
-"Payment successful via %1$s (Hyperswitch Payment ID: %2$s) (via Hyperswitch "
-"Webhook)"
-msgstr ""
-"Pago exitoso a través de %1$s (ID de pago Hyperswitch: %2$s) (a través del "
-"Webhook de Hyperswitch)"
-
-#. translators: Payment succeeded webhook log message
-#: includes/hyperswitch-webhook.php:135
-msgid "WC_PAYMENT_SUCCEEDED_WEBHOOK"
-msgstr "WC_PAGO_EXITOSO_WEBHOOK"
-
-#: includes/hyperswitch-webhook.php:158
-msgid "pending"
-msgstr "pendiente"
-
-#. translators: 1: Payment status 2: Payment method 3: Payment ID
-#: includes/hyperswitch-webhook.php:163
-msgid ""
-"Payment %1$s via %2$s (Hyperswitch Payment ID: %3$s) (via Hyperswitch "
-"Webhook)"
-msgstr ""
-"Pago %1$s a través de %2$s (ID de pago Hyperswitch: %3$s) (a través del "
-"Webhook de Hyperswitch)"
-
-#. translators: %s: Refund ID
-#: includes/hyperswitch-webhook.php:216
-msgid ""
-"Refund Successful (Hyperswitch Refund ID: %1$s) (via Hyperswitch Webhook)"
-msgstr ""
-"Reembolso exitoso (ID de reembolso Hyperswitch: %1$s) (a través del Webhook "
-"de Hyperswitch)"