Skip to content

Commit

Permalink
Update plaid link js file
Browse files Browse the repository at this point in the history
  • Loading branch information
justinwhall committed Jan 13, 2017
1 parent 96608d9 commit 934ab2c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
15 changes: 7 additions & 8 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== Plugin Name ===
Contributors: jwind
Donate link: wp-stripe-plaid-ach-wordpress-plugin
Donate link: https://wwww.justinwhall.com
Tags: Stripe, plaid, ACH, e-commerce, ecommerce, commerce, bank, bank account
Requires at least: 3.0.1
Tested up to: 4.42
Stable tag: 1.0.0
Tested up to: 4.7
Stable tag: 1.0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -22,11 +22,7 @@ WordPress plugin that allows easy ACH bank transfer payments via Stripe + Plaid

== Frequently Asked Questions ==

= A question that someone might have =

An answer to that question.

= What about foo bar? =

Answer to foo bar dilemma.

Expand All @@ -41,4 +37,7 @@ directory take precedence. For example, `/assets/screenshot-1.png` would win ove
== Changelog ==

= 1.0 =
* A change since the previous version.
* Initial release

= 1.0 =
* Initial release
14 changes: 7 additions & 7 deletions admin/class-wp-stripe-plaid-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* The admin-specific functionality of the plugin.
*
* @link htps://www.justinwhall.com
* @since 1.0.0
* @since 1.0.1
*
* @package Wp_Stripe_Plaid
* @subpackage Wp_Stripe_Plaid/admin
Expand Down Expand Up @@ -145,7 +145,7 @@ public function get_settings_fields() {
),
array(
'name' => 'stripe_help',
'desc' => __( 'Stripe keys are located: <a href="https://dashboard.stripe.com/account/apikeys">https://dashboard.stripe.com/account/apikeys</a>', $plugin_name ),
'desc' => __( 'Stripe keys are located: <a target="_blank" href="https://dashboard.stripe.com/account/apikeys">https://dashboard.stripe.com/account/apikeys</a>', $plugin_name ),
'type' => 'html'
),
array(
Expand All @@ -158,17 +158,17 @@ public function get_settings_fields() {
'sanitize_callback' => 'sanitize_text_field'
),
array(
'name' => 'plaid_secret',
'label' => __( 'Plaid Secret', $plugin_name ),
'name' => 'plaid_public_key',
'label' => __( 'Plaid Public Key', $plugin_name ),
'desc' => __( '', $plugin_name ),
'placeholder' => __( '', $plugin_name ),
'type' => 'text',
'default' => '',
'sanitize_callback' => 'sanitize_text_field'
),
array(
'name' => 'plaid_public_key',
'label' => __( 'Plaid Public Key', $plugin_name ),
'name' => 'plaid_secret',
'label' => __( 'Plaid Secret', $plugin_name ),
'desc' => __( '', $plugin_name ),
'placeholder' => __( '', $plugin_name ),
'type' => 'text',
Expand All @@ -177,7 +177,7 @@ public function get_settings_fields() {
),
array(
'name' => 'plaid_help',
'desc' => __( 'Plaid keys are located: <a href="https://dashboard.plaid.com/account/keys">https://dashboard.plaid.com/account/keys</a>', $plugin_name ),
'desc' => __( 'Plaid keys are located: <a target="_blank" href="https://dashboard.plaid.com/account/keys">https://dashboard.plaid.com/account/keys</a>', $plugin_name ),
'type' => 'html'
),
array(
Expand Down
2 changes: 1 addition & 1 deletion public/class-wp-stripe-plaid-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function enqueue_styles() {
public function enqueue_scripts() {

wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/wp-stripe-plaid-public.js', array( 'jquery', 'stripe_plaid' ), $this->version, true );
wp_enqueue_script( 'stripe_plaid', 'https://cdn.plaid.com/link/stable/link-initialize.js', array(), null, true );
wp_enqueue_script( 'stripe_plaid', 'https://cdn.plaid.com/link/v2/stable/link-initialize.js', array(), null, true );
wp_localize_script($this->plugin_name, 'ajax_object', array( 'ajax_url' => admin_url('admin-ajax.php'), 'ajax_nonce' => wp_create_nonce('stripe_plaid_nonce') ) );

}
Expand Down
2 changes: 1 addition & 1 deletion public/js/wp-stripe-plaid-public.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
success : function( data ){
$('.sp-spinner').css('opacity', 0);
if ( data.error ) {
addError( 'There was an error proccesing you payment.' );
addError( 'There was an error processing you payment.' );
} else {
$('#sc-form').fadeTo('fast', 0);
$('#sp-response').show();
Expand Down
2 changes: 1 addition & 1 deletion wp-stripe-plaid.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Plugin Name: ACH for Stripe + Plaid
* Plugin URI: https://www.justinwhall.com/wp-stripe-plaid-ach-wordpress-plugin
* Description: Accept Stripe ACH payments with Stripe + Plaid.
* Version: 1.0.0
* Version: 1.0.1
* Author: Justin W Hall
* Author URI: https://www.justinwhall.com
* License: GPL-2.0+
Expand Down

0 comments on commit 934ab2c

Please sign in to comment.