diff --git a/i18n/languages/woocommerce.pot b/i18n/languages/woocommerce.pot index a38cdc9e2f9..cfdc34b1554 100644 --- a/i18n/languages/woocommerce.pot +++ b/i18n/languages/woocommerce.pot @@ -6761,7 +6761,7 @@ msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:206 #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:213 #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:220 -msgid "Get your API keys from your Simplfy account: Settings > API Keys." +msgid "Get your API keys from your Simplify account: Settings > API Keys." msgstr "" #: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:204 @@ -9096,4 +9096,4 @@ msgstr "" #: templates/loop/result-count.php:32 msgctxt "%1$d = first, %2$d = last, %3$d = total" msgid "Showing %1$d–%2$d of %3$d results" -msgstr "" \ No newline at end of file +msgstr "" diff --git a/includes/gateways/simplify-commerce/assets/js/simplify-commerce.js b/includes/gateways/simplify-commerce/assets/js/simplify-commerce.js index dcf04930dbd..322670521f9 100644 --- a/includes/gateways/simplify-commerce/assets/js/simplify-commerce.js +++ b/includes/gateways/simplify-commerce/assets/js/simplify-commerce.js @@ -1,4 +1,4 @@ -/*global simplfy_commerce_params, wc_checkout_params, SimplifyCommerce */ +/*global Simplify_commerce_params, wc_checkout_params, SimplifyCommerce */ (function ( $ ) { // Form handler @@ -25,7 +25,7 @@ card = card.replace( /\s/g, '' ); SimplifyCommerce.generateToken({ - key: simplfy_commerce_params.key, + key: Simplify_commerce_params.key, card: { number: card, cvc: cvc, @@ -42,7 +42,7 @@ return true; } - // Handle simplfy response + // Handle Simplify response function simplifyResponseHandler( data ) { var $form = $( 'form.checkout, form#order_review' ), ccForm = $( '#simplify_commerce-cc-form' ); @@ -60,7 +60,7 @@ errorList = ''; for ( var i = 0; i < fieldErrorsLength; i++ ) { - errorList += '
  • ' + simplfy_commerce_params[ fieldErrors[i].field ] + ' ' + simplfy_commerce_params.is_invalid + ' - ' + fieldErrors[i].message + '.
  • '; + errorList += '
  • ' + Simplify_commerce_params[ fieldErrors[i].field ] + ' ' + Simplify_commerce_params.is_invalid + ' - ' + fieldErrors[i].message + '.
  • '; } ccForm.prepend( '' ); diff --git a/includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php b/includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php index d5509fdf531..00cc1ab59e9 100644 --- a/includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php +++ b/includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php @@ -184,7 +184,7 @@ class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway { 'title' => __( 'Description', 'woocommerce' ), 'type' => 'text', 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce' ), - 'default' => 'Pay with your credit card via Simplfy Commerce by Mastercard.', + 'default' => 'Pay with your credit card via Simplify Commerce by Mastercard.', 'desc_tip' => true ), 'sandbox' => array( @@ -197,28 +197,28 @@ class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway { 'sandbox_public_key' => array( 'title' => __( 'Sandbox Public Key', 'woocommerce' ), 'type' => 'text', - 'description' => __( 'Get your API keys from your Simplfy account: Settings > API Keys.', 'woocommerce' ), + 'description' => __( 'Get your API keys from your Simplify account: Settings > API Keys.', 'woocommerce' ), 'default' => '', 'desc_tip' => true ), 'sandbox_private_key' => array( 'title' => __( 'Sandbox Private Key', 'woocommerce' ), 'type' => 'text', - 'description' => __( 'Get your API keys from your Simplfy account: Settings > API Keys.', 'woocommerce' ), + 'description' => __( 'Get your API keys from your Simplify account: Settings > API Keys.', 'woocommerce' ), 'default' => '', 'desc_tip' => true ), 'public_key' => array( 'title' => __( 'Public Key', 'woocommerce' ), 'type' => 'text', - 'description' => __( 'Get your API keys from your Simplfy account: Settings > API Keys.', 'woocommerce' ), + 'description' => __( 'Get your API keys from your Simplify account: Settings > API Keys.', 'woocommerce' ), 'default' => '', 'desc_tip' => true ), 'private_key' => array( 'title' => __( 'Private Key', 'woocommerce' ), 'type' => 'text', - 'description' => __( 'Get your API keys from your Simplfy account: Settings > API Keys.', 'woocommerce' ), + 'description' => __( 'Get your API keys from your Simplify account: Settings > API Keys.', 'woocommerce' ), 'default' => '', 'desc_tip' => true ), @@ -254,7 +254,7 @@ class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway { wp_enqueue_script( 'simplify-commerce', 'https://www.simplify.com/commerce/v1/simplify.js', array( 'jquery' ), WC_VERSION, true ); wp_enqueue_script( 'wc-simplify-commerce', WC()->plugin_url() . '/includes/gateways/simplify-commerce/assets/js/simplify-commerce.js', array( 'simplify-commerce', 'wc-credit-card-form' ), WC_VERSION, true ); - wp_localize_script( 'wc-simplify-commerce', 'simplfy_commerce_params', array( + wp_localize_script( 'wc-simplify-commerce', 'Simplify_commerce_params', array( 'key' => $this->public_key, 'card.number' => __( 'Card Number', 'woocommerce' ), 'card.expMonth' => __( 'Expiry Month', 'woocommerce' ),