Simplfy typo

This commit is contained in:
Mike Jolley 2014-08-21 17:03:16 +01:00 committed by Ninos Ego
parent 399081a44e
commit 88d7c39f96
3 changed files with 12 additions and 12 deletions

View File

@ -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

View File

@ -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 += '<li>' + simplfy_commerce_params[ fieldErrors[i].field ] + ' ' + simplfy_commerce_params.is_invalid + ' - ' + fieldErrors[i].message + '.</li>';
errorList += '<li>' + Simplify_commerce_params[ fieldErrors[i].field ] + ' ' + Simplify_commerce_params.is_invalid + ' - ' + fieldErrors[i].message + '.</li>';
}
ccForm.prepend( '<ul class="woocommerce-error">' + errorList + '</ul>' );

View File

@ -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' ),