Skip to content

Commit

Permalink
Merge pull request #248 from WilliamHF/patch-1
Browse files Browse the repository at this point in the history
Fix of broken link to stripe-checkout.js
  • Loading branch information
roykho authored May 8, 2017
2 parents 5f1dc82 + 250cbcb commit 86754bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/legacy/class-wc-gateway-stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public function payment_fields() {
public function payment_scripts() {
if ( $this->stripe_checkout ) {
wp_enqueue_script( 'stripe', 'https://checkout.stripe.com/v2/checkout.js', '', '2.0', true );
wp_enqueue_script( 'woocommerce_stripe', plugins_url( 'assets/js/stripe_checkout.js', WC_STRIPE_MAIN_FILE ), array( 'stripe' ), WC_STRIPE_VERSION, true );
wp_enqueue_script( 'woocommerce_stripe', plugins_url( 'assets/js/stripe-checkout.js', WC_STRIPE_MAIN_FILE ), array( 'stripe' ), WC_STRIPE_VERSION, true );
} else {
wp_enqueue_script( 'stripe', 'https://js.stripe.com/v2/', '', '1.0', true );
wp_enqueue_script( 'woocommerce_stripe', plugins_url( 'assets/js/stripe.js', WC_STRIPE_MAIN_FILE ), array( 'jquery-payment', 'stripe' ), WC_STRIPE_VERSION, true );
Expand Down

0 comments on commit 86754bb

Please sign in to comment.