Stripe Payments For WooCommerce by Checkout Plugins - Version 1.4.7

Version Description

  • TUESDAY, 8TH NOVEMBER 2022 =
  • Improvement: Added filter 'cpsw_exclude_frontend_scripts' to prevent frontend script loading.
  • Improvement: Added WooCommerce HPOS compatibility.
  • Fix: Updated WooCommerce deprecated function.
Download this release

Release Info

Developer brainstormworg
Plugin Icon 128x128 Stripe Payments For WooCommerce by Checkout Plugins
Version 1.4.7
Comparing to
See all releases

Code changes from version 1.4.6 to 1.4.7

checkout-plugins-stripe-woo.php CHANGED
@@ -3,11 +3,13 @@
3
  * Plugin Name: Checkout Plugins - Stripe for WooCommerce
4
  * Plugin URI: https://www.checkoutplugins.com/
5
  * Description: Stripe for WooCommerce delivers a simple, secure way to accept credit card payments in your WooCommerce store. Reduce payment friction and boost conversions using this free plugin!
6
- * Version: 1.4.6
7
  * Author: Checkout Plugins
8
  * Author URI: https://checkoutplugins.com/
9
  * License: GPLv2 or later
10
  * Text Domain: checkout-plugins-stripe-woo
 
 
11
  *
12
  * @package checkout-plugins-stripe-woo
13
  */
@@ -20,6 +22,6 @@ define( 'CPSW_FILE', __FILE__ );
20
  define( 'CPSW_BASE', plugin_basename( CPSW_FILE ) );
21
  define( 'CPSW_DIR', plugin_dir_path( CPSW_FILE ) );
22
  define( 'CPSW_URL', plugins_url( '/', CPSW_FILE ) );
23
- define( 'CPSW_VERSION', '1.4.6' );
24
 
25
  require_once 'autoloader.php';
3
  * Plugin Name: Checkout Plugins - Stripe for WooCommerce
4
  * Plugin URI: https://www.checkoutplugins.com/
5
  * Description: Stripe for WooCommerce delivers a simple, secure way to accept credit card payments in your WooCommerce store. Reduce payment friction and boost conversions using this free plugin!
6
+ * Version: 1.4.7
7
  * Author: Checkout Plugins
8
  * Author URI: https://checkoutplugins.com/
9
  * License: GPLv2 or later
10
  * Text Domain: checkout-plugins-stripe-woo
11
+ * WC requires at least: 3.0
12
+ * WC tested up to: 7.1.0
13
  *
14
  * @package checkout-plugins-stripe-woo
15
  */
22
  define( 'CPSW_BASE', plugin_basename( CPSW_FILE ) );
23
  define( 'CPSW_DIR', plugin_dir_path( CPSW_FILE ) );
24
  define( 'CPSW_URL', plugins_url( '/', CPSW_FILE ) );
25
+ define( 'CPSW_VERSION', '1.4.7' );
26
 
27
  require_once 'autoloader.php';
gateway/abstract-payment-gateway.php CHANGED
@@ -430,7 +430,9 @@ abstract class Abstract_Payment_Gateway extends WC_Payment_Gateway {
430
  'client_secret' => $intent->client_secret,
431
  ];
432
 
433
- update_post_meta( $order_id, '_cpsw_intent_secret', $intent_data );
 
 
434
  $client_secret = $intent->client_secret;
435
 
436
  return [
@@ -824,7 +826,9 @@ abstract class Abstract_Payment_Gateway extends WC_Payment_Gateway {
824
  'id' => $intent->id,
825
  'client_secret' => $intent->client_secret,
826
  ];
827
- update_post_meta( $order_id, '_cpsw_intent_secret', $intent_data );
 
 
828
 
829
  if ( 'requires_action' === $intent->status || 'requires_confirmation' === $intent->status ) {
830
  if ( isset( $intent->next_action->type ) && 'redirect_to_url' === $intent->next_action->type && ! empty( $intent->next_action->redirect_to_url->url ) ) {
@@ -1023,22 +1027,22 @@ abstract class Abstract_Payment_Gateway extends WC_Payment_Gateway {
1023
  /**
1024
  * Format amount from stripe as per currency
1025
  *
1026
- * @param object $balance_transaction stripe balance transaction object.
1027
- * @param int $amount fee or net amount to be formated.
1028
  * @return float
1029
  * @since 1.3.0
1030
  */
1031
- public function format_amount( $balance_transaction, $amount ) {
1032
- if ( ! is_object( $balance_transaction ) ) {
1033
  return;
1034
  }
1035
- $amount = $this->get_original_amount( $amount, $balance_transaction->currency );
1036
 
1037
  return number_format( $amount, 2, '.', '' );
1038
  }
1039
 
1040
  /**
1041
- * Returns amount received from stripe in woocomerce as per currency
1042
  *
1043
  * @since 1.3.0
1044
  *
@@ -1062,7 +1066,7 @@ abstract class Abstract_Payment_Gateway extends WC_Payment_Gateway {
1062
 
1063
  /**
1064
  * Create payment for saved payment method, and this function
1065
- * usefull for cartflows.
1066
  *
1067
  * @param array $request_args arguments.
1068
  *
@@ -1077,7 +1081,7 @@ abstract class Abstract_Payment_Gateway extends WC_Payment_Gateway {
1077
  *
1078
  * @param object $order WooCommerce Order.
1079
  * @param string $intent_id associated stripe intent id.
1080
- * @param boolean $initiate send true if this call will initiate balance transation update, use for intent creations only.
1081
  * @return void
1082
  * @since 1.3.0
1083
  */
430
  'client_secret' => $intent->client_secret,
431
  ];
432
 
433
+ $order = wc_get_order( $order_id );
434
+ $order->update_meta_data( '_cpsw_intent_secret', $intent_data );
435
+ $order->save();
436
  $client_secret = $intent->client_secret;
437
 
438
  return [
826
  'id' => $intent->id,
827
  'client_secret' => $intent->client_secret,
828
  ];
829
+
830
+ $order->update_meta_data( '_cpsw_intent_secret', $intent_data );
831
+ $order->save();
832
 
833
  if ( 'requires_action' === $intent->status || 'requires_confirmation' === $intent->status ) {
834
  if ( isset( $intent->next_action->type ) && 'redirect_to_url' === $intent->next_action->type && ! empty( $intent->next_action->redirect_to_url->url ) ) {
1027
  /**
1028
  * Format amount from stripe as per currency
1029
  *
1030
+ * @param object $order WooCommerce order object.
1031
+ * @param int $amount fee or net amount to be formatted.
1032
  * @return float
1033
  * @since 1.3.0
1034
  */
1035
+ public function format_amount( $order, $amount ) {
1036
+ if ( ! is_object( $order ) ) {
1037
  return;
1038
  }
1039
+ $amount = $this->get_original_amount( $amount, $order->get_currency() );
1040
 
1041
  return number_format( $amount, 2, '.', '' );
1042
  }
1043
 
1044
  /**
1045
+ * Returns amount received from stripe in WooCommerce as per currency
1046
  *
1047
  * @since 1.3.0
1048
  *
1066
 
1067
  /**
1068
  * Create payment for saved payment method, and this function
1069
+ * useful for CartFlows.
1070
  *
1071
  * @param array $request_args arguments.
1072
  *
1081
  *
1082
  * @param object $order WooCommerce Order.
1083
  * @param string $intent_id associated stripe intent id.
1084
+ * @param boolean $initiate send true if this call will initiate balance transaction update, use for intent creations only.
1085
  * @return void
1086
  * @since 1.3.0
1087
  */
gateway/stripe/card-payments.php CHANGED
@@ -374,7 +374,7 @@ $ */
374
  if ( 'succeeded' === $intent->status || 'requires_capture' === $intent->status ) {
375
  if ( ( isset( $_GET['save_card'] ) && '1' === $_GET['save_card'] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
376
  $user = $order->get_id() ? $order->get_user() : wp_get_current_user();
377
- $user_id = $user->ID;
378
  $payment_method = $intent->payment_method;
379
  $response = $stripe_api->payment_methods( 'retrieve', [ $payment_method ] );
380
  $payment_method = $response['success'] ? $response['data'] : false;
374
  if ( 'succeeded' === $intent->status || 'requires_capture' === $intent->status ) {
375
  if ( ( isset( $_GET['save_card'] ) && '1' === $_GET['save_card'] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
376
  $user = $order->get_id() ? $order->get_user() : wp_get_current_user();
377
+ $user_id = isset( $user->ID ) ? $user->ID : 0;
378
  $payment_method = $intent->payment_method;
379
  $response = $stripe_api->payment_methods( 'retrieve', [ $payment_method ] );
380
  $payment_method = $response['success'] ? $response['data'] : false;
gateway/stripe/frontend-scripts.php CHANGED
@@ -58,6 +58,10 @@ class Frontend_Scripts {
58
  * @return void
59
  */
60
  public function enqueue_scripts() {
 
 
 
 
61
  $public_key = ( 'live' === Helper::get_payment_mode() ) ? Helper::get_setting( 'cpsw_pub_key' ) : Helper::get_setting( 'cpsw_test_pub_key' );
62
 
63
  wp_register_script( $this->prefix . 'stripe-external', 'https://js.stripe.com/v3/', [], $this->version, true );
58
  * @return void
59
  */
60
  public function enqueue_scripts() {
61
+ if ( apply_filters( 'cpsw_exclude_frontend_scripts', ! is_product() && ! is_cart() && ! is_checkout() ) ) {
62
+ return;
63
+ }
64
+
65
  $public_key = ( 'live' === Helper::get_payment_mode() ) ? Helper::get_setting( 'cpsw_pub_key' ) : Helper::get_setting( 'cpsw_test_pub_key' );
66
 
67
  wp_register_script( $this->prefix . 'stripe-external', 'https://js.stripe.com/v3/', [], $this->version, true );
inc/traits/subscriptions.php CHANGED
@@ -326,7 +326,8 @@ trait Subscriptions {
326
  'id' => $intent->id,
327
  'client_secret' => $intent->client_secret,
328
  ];
329
- update_post_meta( $order_id, '_cpsw_intent_secret', $intent_data );
 
330
  } else {
331
  $intent = [
332
  'message' => isset( $response['message'] ) ? $response['message'] : __( 'Payment processing failed. Please retry.', 'checkout-plugins-stripe-woo' ),
@@ -433,15 +434,15 @@ trait Subscriptions {
433
  }
434
 
435
  foreach ( $subscriptions as $subscription ) {
436
- $subscription_id = $subscription->get_id();
437
- update_post_meta( $subscription_id, '_cpsw_customer_id', $source->customer );
438
-
439
  if ( ! empty( $source->payment_method ) ) {
440
- update_post_meta( $subscription_id, '_cpsw_source_id', $source->payment_method );
441
  } else {
442
- update_post_meta( $subscription_id, '_cpsw_source_id', $source->source );
443
  }
 
444
  }
 
445
  }
446
 
447
  /**
@@ -450,12 +451,13 @@ trait Subscriptions {
450
  * @param object $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription.
451
  */
452
  public function delete_resubscribe_meta( $resubscribe_order ) {
453
- delete_post_meta( $resubscribe_order->get_id(), '_cpsw_customer_id' );
454
- delete_post_meta( $resubscribe_order->get_id(), '_cpsw_source_id' );
455
- // For BW compat will remove in future.
456
- delete_post_meta( $resubscribe_order->get_id(), '_stripe_card_id' );
457
- // Delete payment intent ID.
458
- delete_post_meta( $resubscribe_order->get_id(), '_stripe_intent_id' );
 
459
  $this->delete_renewal_meta( $resubscribe_order );
460
  }
461
 
@@ -470,7 +472,10 @@ trait Subscriptions {
470
  $this->delete_stripe_net( $renewal_order );
471
 
472
  // Delete payment intent ID.
473
- delete_post_meta( $renewal_order->get_id(), '_stripe_intent_id' );
 
 
 
474
 
475
  return $renewal_order;
476
  }
@@ -486,10 +491,11 @@ trait Subscriptions {
486
  return false;
487
  }
488
 
489
- $order_id = $order->get_id();
490
-
491
- delete_post_meta( $order_id, '_stripe_fee' );
492
- delete_post_meta( $order_id, 'Stripe Fee' );
 
493
  }
494
 
495
  /**
@@ -503,10 +509,11 @@ trait Subscriptions {
503
  return false;
504
  }
505
 
506
- $order_id = $order->get_id();
507
-
508
- delete_post_meta( $order_id, 'stripe_net' );
509
- delete_post_meta( $order_id, 'Net Revenue From Stripe' );
 
510
  }
511
 
512
  /**
@@ -517,8 +524,9 @@ trait Subscriptions {
517
  * @return void
518
  */
519
  public function update_failing_payment_method( $subscription, $renewal_order ) {
520
- update_post_meta( $subscription->get_id(), '_cpsw_customer_id', $renewal_order->get_meta( '_cpsw_customer_id', true ) );
521
- update_post_meta( $subscription->get_id(), '_cpsw_source_id', $renewal_order->get_meta( '_cpsw_source_id', true ) );
 
522
  }
523
 
524
  /**
326
  'id' => $intent->id,
327
  'client_secret' => $intent->client_secret,
328
  ];
329
+ $order->update_meta_data( '_cpsw_intent_secret', $intent_data );
330
+ $order->save();
331
  } else {
332
  $intent = [
333
  'message' => isset( $response['message'] ) ? $response['message'] : __( 'Payment processing failed. Please retry.', 'checkout-plugins-stripe-woo' ),
434
  }
435
 
436
  foreach ( $subscriptions as $subscription ) {
437
+ $subscription->update_meta_data( '_cpsw_customer_id', $source->customer );
 
 
438
  if ( ! empty( $source->payment_method ) ) {
439
+ $subscription->update_meta_data( '_cpsw_source_id', $source->payment_method );
440
  } else {
441
+ $subscription->update_meta_data( '_cpsw_source_id', $source->source );
442
  }
443
+ $subscription->save();
444
  }
445
+
446
  }
447
 
448
  /**
451
  * @param object $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription.
452
  */
453
  public function delete_resubscribe_meta( $resubscribe_order ) {
454
+ $resubscribe_order->delete_meta_data( '_cpsw_customer_id' );
455
+ $resubscribe_order->delete_meta_data( '_cpsw_source_id' );
456
+
457
+ if ( is_callable( [ $resubscribe_order, 'save' ] ) ) {
458
+ $resubscribe_order->save();
459
+ }
460
+
461
  $this->delete_renewal_meta( $resubscribe_order );
462
  }
463
 
472
  $this->delete_stripe_net( $renewal_order );
473
 
474
  // Delete payment intent ID.
475
+ $renewal_order->delete_meta_data( '_stripe_intent_id' );
476
+ if ( is_callable( [ $renewal_order, 'save' ] ) ) {
477
+ $renewal_order->save();
478
+ }
479
 
480
  return $renewal_order;
481
  }
491
  return false;
492
  }
493
 
494
+ $order->delete_meta_data( '_stripe_fee' );
495
+ $order->delete_meta_data( 'Stripe Fee' );
496
+ if ( is_callable( [ $order, 'save' ] ) ) {
497
+ $order->save();
498
+ }
499
  }
500
 
501
  /**
509
  return false;
510
  }
511
 
512
+ $order->delete_meta_data( 'stripe_net' );
513
+ $order->delete_meta_data( 'Net Revenue From Stripe' );
514
+ if ( is_callable( [ $order, 'save' ] ) ) {
515
+ $order->save();
516
+ }
517
  }
518
 
519
  /**
524
  * @return void
525
  */
526
  public function update_failing_payment_method( $subscription, $renewal_order ) {
527
+ $subscription->update_meta_data( '_cpsw_customer_id', $renewal_order->get_meta( '_cpsw_customer_id', true ) );
528
+ $subscription->update_meta_data( '_cpsw_source_id', $renewal_order->get_meta( '_cpsw_source_id', true ) );
529
+ $subscription->save();
530
  }
531
 
532
  /**
languages/checkout-plugins-stripe-woo.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Checkout Plugins - Stripe for WooCommerce 1.4.6\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/checkout-plugins-stripe-woo\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-06-09T11:46:07+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: checkout-plugins-stripe-woo\n"
@@ -117,7 +117,7 @@ msgstr ""
117
 
118
  #: admin/admin-controller.php:297
119
  #: admin/admin-controller.php:322
120
- #: gateway/stripe/frontend-scripts.php:146
121
  #: gateway/stripe/payment-request-api.php:154
122
  #: inc/helper.php:84
123
  msgid "Pay now"
@@ -392,7 +392,7 @@ msgid "Stripe keys are reset successfully."
392
  msgstr ""
393
 
394
  #: admin/admin-controller.php:1218
395
- #: gateway/abstract-payment-gateway.php:1157
396
  msgid "Invalid Nonce"
397
  msgstr ""
398
 
@@ -720,7 +720,7 @@ msgid "Stripe charge complete (Charge ID: %s)"
720
  msgstr ""
721
 
722
  #: gateway/abstract-payment-gateway.php:340
723
- #: inc/traits/subscriptions.php:332
724
  msgid "Payment processing failed. Please retry."
725
  msgstr ""
726
 
@@ -738,56 +738,56 @@ msgstr ""
738
  msgid "An error has occurred internally, due to which you are not redirected to the order received page."
739
  msgstr ""
740
 
741
- #: gateway/abstract-payment-gateway.php:554
742
- #: gateway/abstract-payment-gateway.php:555
743
  msgid "Uncaptured Amount cannot be refunded"
744
  msgstr ""
745
 
746
  #. translators: order id
747
- #: gateway/abstract-payment-gateway.php:629
748
  msgid "Payment successful Order id - %1s"
749
  msgstr ""
750
 
751
- #: gateway/abstract-payment-gateway.php:633
752
  msgid "Payment Status: "
753
  msgstr ""
754
 
755
- #: gateway/abstract-payment-gateway.php:633
756
  msgid "Source: Payment is Completed via "
757
  msgstr ""
758
 
759
  #. translators: transaction id
760
- #: gateway/abstract-payment-gateway.php:636
761
  msgid "Charge authorized (Charge ID: %s). Process order to take payment, or cancel to remove the pre-authorization. Attempting to refund the order in part or in full will release the authorization and cancel the payment."
762
  msgstr ""
763
 
764
  #. translators: transaction id
765
- #: gateway/abstract-payment-gateway.php:638
766
  msgid "Charge authorized Order id - %1s"
767
  msgstr ""
768
 
769
  #. translators: %1$1s order id, %2$2s order total amount
770
- #: gateway/abstract-payment-gateway.php:783
771
  msgid "Begin processing payment with saved payment method for order %1$1s for the amount of %2$2s"
772
  msgstr ""
773
 
774
- #: gateway/abstract-payment-gateway.php:909
775
  msgid "Fee charged by stripe for this order."
776
  msgstr ""
777
 
778
- #: gateway/abstract-payment-gateway.php:910
779
  msgid "Stripe Fee:"
780
  msgstr ""
781
 
782
- #: gateway/abstract-payment-gateway.php:919
783
  msgid "Net amount that will be credited to your Stripe bank account."
784
  msgstr ""
785
 
786
- #: gateway/abstract-payment-gateway.php:920
787
  msgid "Stripe Payout:"
788
  msgstr ""
789
 
790
- #: gateway/abstract-payment-gateway.php:999
791
  msgid "Unable to update stripe transaction balance"
792
  msgstr ""
793
 
@@ -1142,43 +1142,43 @@ msgstr ""
1142
  msgid "%1$1s Test Mode Enabled:%2$2s Use demo card 4242424242424242 with any future date and CVV. Check more %3$3sdemo cards%4$4s"
1143
  msgstr ""
1144
 
1145
- #: gateway/stripe/frontend-scripts.php:110
1146
  msgid "MasterCard"
1147
  msgstr ""
1148
 
1149
- #: gateway/stripe/frontend-scripts.php:111
1150
  msgid "Visa"
1151
  msgstr ""
1152
 
1153
- #: gateway/stripe/frontend-scripts.php:112
1154
  msgid "American Express"
1155
  msgstr ""
1156
 
1157
- #: gateway/stripe/frontend-scripts.php:113
1158
  msgid "Discover"
1159
  msgstr ""
1160
 
1161
- #: gateway/stripe/frontend-scripts.php:114
1162
  msgid "JCB"
1163
  msgstr ""
1164
 
1165
- #: gateway/stripe/frontend-scripts.php:115
1166
  msgid "Diners Club"
1167
  msgstr ""
1168
 
1169
- #: gateway/stripe/frontend-scripts.php:116
1170
  msgid "UnionPay"
1171
  msgstr ""
1172
 
1173
- #: gateway/stripe/frontend-scripts.php:118
1174
  msgid "is not allowed"
1175
  msgstr ""
1176
 
1177
- #: gateway/stripe/frontend-scripts.php:133
1178
  msgid "Please enter a IBAN number to proceed."
1179
  msgstr ""
1180
 
1181
- #: gateway/stripe/frontend-scripts.php:134
1182
  msgid "Please select a bank to proceed."
1183
  msgstr ""
1184
 
@@ -1306,7 +1306,7 @@ msgstr ""
1306
  msgid "Begin processing payment with SEPA for order %1$1s for the amount of %2$2s"
1307
  msgstr ""
1308
 
1309
- #: gateway/stripe/stripe-api.php:61
1310
  msgid "Stripe not initialized"
1311
  msgstr ""
1312
 
@@ -1662,23 +1662,23 @@ msgstr ""
1662
 
1663
  #. translators: %s is the stripe charge Id
1664
  #: inc/traits/subscriptions.php:253
1665
- #: inc/traits/subscriptions.php:637
1666
  msgid "Stripe charge awaiting authentication by user: %s."
1667
  msgstr ""
1668
 
1669
- #: inc/traits/subscriptions.php:566
1670
  msgid "A \"Stripe Customer ID\" value is required."
1671
  msgstr ""
1672
 
1673
- #: inc/traits/subscriptions.php:569
1674
  msgid "Invalid customer ID. A valid \"Stripe Customer ID\" must begin with \"cus_\"."
1675
  msgstr ""
1676
 
1677
- #: inc/traits/subscriptions.php:579
1678
  msgid "Invalid source ID. A valid source \"Stripe Source ID\" must begin with \"src_\", \"pm_\", or \"card_\"."
1679
  msgstr ""
1680
 
1681
- #: inc/traits/subscriptions.php:760
1682
  msgid "Invalid payment method. Please input a new card number."
1683
  msgstr ""
1684
 
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Checkout Plugins - Stripe for WooCommerce 1.4.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/checkout-plugins-stripe-woo\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-11-08T03:45:31+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: checkout-plugins-stripe-woo\n"
117
 
118
  #: admin/admin-controller.php:297
119
  #: admin/admin-controller.php:322
120
+ #: gateway/stripe/frontend-scripts.php:150
121
  #: gateway/stripe/payment-request-api.php:154
122
  #: inc/helper.php:84
123
  msgid "Pay now"
392
  msgstr ""
393
 
394
  #: admin/admin-controller.php:1218
395
+ #: gateway/abstract-payment-gateway.php:1161
396
  msgid "Invalid Nonce"
397
  msgstr ""
398
 
720
  msgstr ""
721
 
722
  #: gateway/abstract-payment-gateway.php:340
723
+ #: inc/traits/subscriptions.php:333
724
  msgid "Payment processing failed. Please retry."
725
  msgstr ""
726
 
738
  msgid "An error has occurred internally, due to which you are not redirected to the order received page."
739
  msgstr ""
740
 
741
+ #: gateway/abstract-payment-gateway.php:556
742
+ #: gateway/abstract-payment-gateway.php:557
743
  msgid "Uncaptured Amount cannot be refunded"
744
  msgstr ""
745
 
746
  #. translators: order id
747
+ #: gateway/abstract-payment-gateway.php:631
748
  msgid "Payment successful Order id - %1s"
749
  msgstr ""
750
 
751
+ #: gateway/abstract-payment-gateway.php:635
752
  msgid "Payment Status: "
753
  msgstr ""
754
 
755
+ #: gateway/abstract-payment-gateway.php:635
756
  msgid "Source: Payment is Completed via "
757
  msgstr ""
758
 
759
  #. translators: transaction id
760
+ #: gateway/abstract-payment-gateway.php:638
761
  msgid "Charge authorized (Charge ID: %s). Process order to take payment, or cancel to remove the pre-authorization. Attempting to refund the order in part or in full will release the authorization and cancel the payment."
762
  msgstr ""
763
 
764
  #. translators: transaction id
765
+ #: gateway/abstract-payment-gateway.php:640
766
  msgid "Charge authorized Order id - %1s"
767
  msgstr ""
768
 
769
  #. translators: %1$1s order id, %2$2s order total amount
770
+ #: gateway/abstract-payment-gateway.php:785
771
  msgid "Begin processing payment with saved payment method for order %1$1s for the amount of %2$2s"
772
  msgstr ""
773
 
774
+ #: gateway/abstract-payment-gateway.php:913
775
  msgid "Fee charged by stripe for this order."
776
  msgstr ""
777
 
778
+ #: gateway/abstract-payment-gateway.php:914
779
  msgid "Stripe Fee:"
780
  msgstr ""
781
 
782
+ #: gateway/abstract-payment-gateway.php:923
783
  msgid "Net amount that will be credited to your Stripe bank account."
784
  msgstr ""
785
 
786
+ #: gateway/abstract-payment-gateway.php:924
787
  msgid "Stripe Payout:"
788
  msgstr ""
789
 
790
+ #: gateway/abstract-payment-gateway.php:1003
791
  msgid "Unable to update stripe transaction balance"
792
  msgstr ""
793
 
1142
  msgid "%1$1s Test Mode Enabled:%2$2s Use demo card 4242424242424242 with any future date and CVV. Check more %3$3sdemo cards%4$4s"
1143
  msgstr ""
1144
 
1145
+ #: gateway/stripe/frontend-scripts.php:114
1146
  msgid "MasterCard"
1147
  msgstr ""
1148
 
1149
+ #: gateway/stripe/frontend-scripts.php:115
1150
  msgid "Visa"
1151
  msgstr ""
1152
 
1153
+ #: gateway/stripe/frontend-scripts.php:116
1154
  msgid "American Express"
1155
  msgstr ""
1156
 
1157
+ #: gateway/stripe/frontend-scripts.php:117
1158
  msgid "Discover"
1159
  msgstr ""
1160
 
1161
+ #: gateway/stripe/frontend-scripts.php:118
1162
  msgid "JCB"
1163
  msgstr ""
1164
 
1165
+ #: gateway/stripe/frontend-scripts.php:119
1166
  msgid "Diners Club"
1167
  msgstr ""
1168
 
1169
+ #: gateway/stripe/frontend-scripts.php:120
1170
  msgid "UnionPay"
1171
  msgstr ""
1172
 
1173
+ #: gateway/stripe/frontend-scripts.php:122
1174
  msgid "is not allowed"
1175
  msgstr ""
1176
 
1177
+ #: gateway/stripe/frontend-scripts.php:137
1178
  msgid "Please enter a IBAN number to proceed."
1179
  msgstr ""
1180
 
1181
+ #: gateway/stripe/frontend-scripts.php:138
1182
  msgid "Please select a bank to proceed."
1183
  msgstr ""
1184
 
1306
  msgid "Begin processing payment with SEPA for order %1$1s for the amount of %2$2s"
1307
  msgstr ""
1308
 
1309
+ #: gateway/stripe/stripe-api.php:62
1310
  msgid "Stripe not initialized"
1311
  msgstr ""
1312
 
1662
 
1663
  #. translators: %s is the stripe charge Id
1664
  #: inc/traits/subscriptions.php:253
1665
+ #: inc/traits/subscriptions.php:645
1666
  msgid "Stripe charge awaiting authentication by user: %s."
1667
  msgstr ""
1668
 
1669
+ #: inc/traits/subscriptions.php:574
1670
  msgid "A \"Stripe Customer ID\" value is required."
1671
  msgstr ""
1672
 
1673
+ #: inc/traits/subscriptions.php:577
1674
  msgid "Invalid customer ID. A valid \"Stripe Customer ID\" must begin with \"cus_\"."
1675
  msgstr ""
1676
 
1677
+ #: inc/traits/subscriptions.php:587
1678
  msgid "Invalid source ID. A valid source \"Stripe Source ID\" must begin with \"src_\", \"pm_\", or \"card_\"."
1679
  msgstr ""
1680
 
1681
+ #: inc/traits/subscriptions.php:768
1682
  msgid "Invalid payment method. Please input a new card number."
1683
  msgstr ""
1684
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: brainstormforce
3
  Tags: stripe, credit card, apple pay, google pay, express checkout
4
  Requires at least: 5.4
5
- Tested up to: 6.0
6
- Stable tag: 1.4.6
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -113,6 +113,10 @@ We understand the need for a quality product backed by dedicated support that ca
113
  4. Express Checkout Button on Checkout Page
114
 
115
  == Changelog ==
 
 
 
 
116
 
117
  = 1.4.6 - THURSDAY, 9TH JUNE 2022 =
118
  * Fix: Add payment method console error.
2
  Contributors: brainstormforce
3
  Tags: stripe, credit card, apple pay, google pay, express checkout
4
  Requires at least: 5.4
5
+ Tested up to: 6.1
6
+ Stable tag: 1.4.7
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
113
  4. Express Checkout Button on Checkout Page
114
 
115
  == Changelog ==
116
+ = 1.4.7 - TUESDAY, 8TH NOVEMBER 2022 =
117
+ * Improvement: Added filter 'cpsw_exclude_frontend_scripts' to prevent frontend script loading.
118
+ * Improvement: Added WooCommerce HPOS compatibility.
119
+ * Fix: Updated WooCommerce deprecated function.
120
 
121
  = 1.4.6 - THURSDAY, 9TH JUNE 2022 =
122
  * Fix: Add payment method console error.