Simplfy typo
This commit is contained in:
parent
399081a44e
commit
88d7c39f96
|
@ -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:206
|
||||||
#: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:213
|
#: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:213
|
||||||
#: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:220
|
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:204
|
#: includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php:204
|
||||||
|
@ -9096,4 +9096,4 @@ msgstr ""
|
||||||
#: templates/loop/result-count.php:32
|
#: templates/loop/result-count.php:32
|
||||||
msgctxt "%1$d = first, %2$d = last, %3$d = total"
|
msgctxt "%1$d = first, %2$d = last, %3$d = total"
|
||||||
msgid "Showing %1$d–%2$d of %3$d results"
|
msgid "Showing %1$d–%2$d of %3$d results"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/*global simplfy_commerce_params, wc_checkout_params, SimplifyCommerce */
|
/*global Simplify_commerce_params, wc_checkout_params, SimplifyCommerce */
|
||||||
(function ( $ ) {
|
(function ( $ ) {
|
||||||
|
|
||||||
// Form handler
|
// Form handler
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
card = card.replace( /\s/g, '' );
|
card = card.replace( /\s/g, '' );
|
||||||
|
|
||||||
SimplifyCommerce.generateToken({
|
SimplifyCommerce.generateToken({
|
||||||
key: simplfy_commerce_params.key,
|
key: Simplify_commerce_params.key,
|
||||||
card: {
|
card: {
|
||||||
number: card,
|
number: card,
|
||||||
cvc: cvc,
|
cvc: cvc,
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle simplfy response
|
// Handle Simplify response
|
||||||
function simplifyResponseHandler( data ) {
|
function simplifyResponseHandler( data ) {
|
||||||
var $form = $( 'form.checkout, form#order_review' ),
|
var $form = $( 'form.checkout, form#order_review' ),
|
||||||
ccForm = $( '#simplify_commerce-cc-form' );
|
ccForm = $( '#simplify_commerce-cc-form' );
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
errorList = '';
|
errorList = '';
|
||||||
|
|
||||||
for ( var i = 0; i < fieldErrorsLength; i++ ) {
|
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>' );
|
ccForm.prepend( '<ul class="woocommerce-error">' + errorList + '</ul>' );
|
||||||
|
|
|
@ -184,7 +184,7 @@ class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway {
|
||||||
'title' => __( 'Description', 'woocommerce' ),
|
'title' => __( 'Description', 'woocommerce' ),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce' ),
|
'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
|
'desc_tip' => true
|
||||||
),
|
),
|
||||||
'sandbox' => array(
|
'sandbox' => array(
|
||||||
|
@ -197,28 +197,28 @@ class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway {
|
||||||
'sandbox_public_key' => array(
|
'sandbox_public_key' => array(
|
||||||
'title' => __( 'Sandbox Public Key', 'woocommerce' ),
|
'title' => __( 'Sandbox Public Key', 'woocommerce' ),
|
||||||
'type' => 'text',
|
'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' => '',
|
'default' => '',
|
||||||
'desc_tip' => true
|
'desc_tip' => true
|
||||||
),
|
),
|
||||||
'sandbox_private_key' => array(
|
'sandbox_private_key' => array(
|
||||||
'title' => __( 'Sandbox Private Key', 'woocommerce' ),
|
'title' => __( 'Sandbox Private Key', 'woocommerce' ),
|
||||||
'type' => 'text',
|
'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' => '',
|
'default' => '',
|
||||||
'desc_tip' => true
|
'desc_tip' => true
|
||||||
),
|
),
|
||||||
'public_key' => array(
|
'public_key' => array(
|
||||||
'title' => __( 'Public Key', 'woocommerce' ),
|
'title' => __( 'Public Key', 'woocommerce' ),
|
||||||
'type' => 'text',
|
'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' => '',
|
'default' => '',
|
||||||
'desc_tip' => true
|
'desc_tip' => true
|
||||||
),
|
),
|
||||||
'private_key' => array(
|
'private_key' => array(
|
||||||
'title' => __( 'Private Key', 'woocommerce' ),
|
'title' => __( 'Private Key', 'woocommerce' ),
|
||||||
'type' => 'text',
|
'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' => '',
|
'default' => '',
|
||||||
'desc_tip' => true
|
'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( '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_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,
|
'key' => $this->public_key,
|
||||||
'card.number' => __( 'Card Number', 'woocommerce' ),
|
'card.number' => __( 'Card Number', 'woocommerce' ),
|
||||||
'card.expMonth' => __( 'Expiry Month', 'woocommerce' ),
|
'card.expMonth' => __( 'Expiry Month', 'woocommerce' ),
|
||||||
|
|
Loading…
Reference in New Issue