Changeset 3451310
- Timestamp:
- 02/01/2026 10:12:21 AM (2 months ago)
- Location:
- subscription
- Files:
-
- 12 edited
- 1 copied
-
tags/1.8.18 (copied) (copied from subscription/trunk)
-
tags/1.8.18/changelog.txt (modified) (1 diff)
-
tags/1.8.18/includes/Illuminate/Gateways/Stripe/Stripe.php (modified) (5 diffs)
-
tags/1.8.18/includes/functions.php (modified) (1 diff)
-
tags/1.8.18/languages/subscription.pot (modified) (2 diffs)
-
tags/1.8.18/subscription.php (modified) (2 diffs)
-
tags/1.8.18/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/includes/Illuminate/Gateways/Stripe/Stripe.php (modified) (5 diffs)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/languages/subscription.pot (modified) (2 diffs)
-
trunk/subscription.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
subscription/tags/1.8.18/changelog.txt
r3441854 r3451310 1 1 *** WPSubscription Changelog *** 2 3 2026-02-01 - version 1.8.18 4 * fix: Function return type error. 5 * fix: Stripe deprecated functions. 2 6 3 7 2026-01-18 - version 1.8.17 -
subscription/tags/1.8.18/includes/Illuminate/Gateways/Stripe/Stripe.php
r3428836 r3451310 86 86 * 87 87 * @param \WC_Order $renewal_order Renewal order. 88 * @throws \WC_Stripe_Exception $e except tion.88 * @throws \WC_Stripe_Exception $e exception. 89 89 */ 90 90 public function pay_renew_order( $renewal_order ) { … … 93 93 94 94 try { 95 $this->validate_minimum_order_amount( $renewal_order ); 95 $stripe_order_helper = new \WC_Stripe_Order_Helper(); 96 $stripe_order_helper->validate_minimum_order_amount( $renewal_order ); 96 97 97 98 $amount = $renewal_order->get_total(); … … 105 106 } 106 107 107 \WC_Stripe_Logger:: log( "Info:Begin processing subscription payment for order {$order_id} for the amount of {$amount}" );108 \WC_Stripe_Logger::info( "Begin processing subscription payment for order {$order_id} for the amount of {$amount}" ); 108 109 109 110 $intent = $this->create_intent( $renewal_order, $prepared_source ); 110 111 111 112 if ( empty( $intent->error ) ) { 112 $ this->lock_order_payment( $renewal_order, $intent );113 $stripe_order_helper->lock_order_payment( $renewal_order, $intent ); 113 114 // Only confirm if Stripe still requires confirmation. 114 115 if ( \WC_Stripe_Intent_Status::REQUIRES_CONFIRMATION === $intent->status ) { … … 120 121 $this->maybe_remove_non_existent_customer( $intent->error, $renewal_order ); 121 122 122 $ this->unlock_order_payment( $renewal_order );123 $stripe_order_helper->unlock_order_payment( $renewal_order ); 123 124 $this->throw_localized_message( $intent, $renewal_order ); 124 125 } … … 129 130 $this->process_response( $response, $renewal_order ); 130 131 } 131 $this->unlock_order_payment( $renewal_order ); 132 $stripe_order_helper->unlock_order_payment( $renewal_order ); 133 132 134 } catch ( \WC_Stripe_Exception $e ) { 133 \WC_Stripe_Logger:: log( 'Error: ' . $e->getMessage() );135 \WC_Stripe_Logger::error( 'Error: ' . $e->getMessage() ); 134 136 135 137 $log_message = "Error processing renewal order #{$renewal_order->get_id()}: " . $e->getMessage(); -
subscription/tags/1.8.18/includes/functions.php
r3441854 r3451310 511 511 * @deprecated 1.8.17 Use SpringDevs\Subscription\Illuminate\Subscription\Subscription::get_subs_product(). 512 512 */ 513 function sdevs_get_subscription_product( $product ) : Product|false{513 function sdevs_get_subscription_product( $product ) { 514 514 // Deprecated notice. 515 515 _deprecated_function( 'sdevs_get_subscription_product', '1.8.17', 'SpringDevs\Subscription\Illuminate\Subscription\Subscription::get_subs_product' ); -
subscription/tags/1.8.18/languages/subscription.pot
r3441854 r3451310 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-0 1-18T10:42:47+00:00\n"12 "POT-Creation-Date: 2026-02-01T10:01:34+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 1412 1412 msgstr "" 1413 1413 1414 #: includes/Illuminate/Gateways/Stripe/Stripe.php:10 41414 #: includes/Illuminate/Gateways/Stripe/Stripe.php:105 1415 1415 msgid "Customer not found" 1416 1416 msgstr "" -
subscription/tags/1.8.18/subscription.php
r3441854 r3451310 7 7 * Description: WPSubscription allow WooCommerce to enables recurring payments, subscriptions, and auto-renewals for digital and physical products. Supports Stripe, PayPal, Paddle, and more. 8 8 * 9 * Version: 1.8.1 79 * Version: 1.8.18 10 10 * 11 11 * Author: ConversWP … … 51 51 * @var string 52 52 */ 53 const version = '1.8.1 7';53 const version = '1.8.18'; 54 54 55 55 /** -
subscription/tags/1.8.18/vendor/composer/installed.php
r3441854 r3451310 2 2 'root' => array( 3 3 'name' => 'converswp/subscription', 4 'pretty_version' => '1.8.1 7',5 'version' => '1.8.1 7.0',6 'reference' => ' 34764694540988abb46d6dffb74cabdbc2febaee',4 'pretty_version' => '1.8.18', 5 'version' => '1.8.18.0', 6 'reference' => 'fd790119d3575032a416edadc6402c9b827485da', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'converswp/subscription' => array( 14 'pretty_version' => '1.8.1 7',15 'version' => '1.8.1 7.0',16 'reference' => ' 34764694540988abb46d6dffb74cabdbc2febaee',14 'pretty_version' => '1.8.18', 15 'version' => '1.8.18.0', 16 'reference' => 'fd790119d3575032a416edadc6402c9b827485da', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
subscription/trunk/changelog.txt
r3441854 r3451310 1 1 *** WPSubscription Changelog *** 2 3 2026-02-01 - version 1.8.18 4 * fix: Function return type error. 5 * fix: Stripe deprecated functions. 2 6 3 7 2026-01-18 - version 1.8.17 -
subscription/trunk/includes/Illuminate/Gateways/Stripe/Stripe.php
r3428836 r3451310 86 86 * 87 87 * @param \WC_Order $renewal_order Renewal order. 88 * @throws \WC_Stripe_Exception $e except tion.88 * @throws \WC_Stripe_Exception $e exception. 89 89 */ 90 90 public function pay_renew_order( $renewal_order ) { … … 93 93 94 94 try { 95 $this->validate_minimum_order_amount( $renewal_order ); 95 $stripe_order_helper = new \WC_Stripe_Order_Helper(); 96 $stripe_order_helper->validate_minimum_order_amount( $renewal_order ); 96 97 97 98 $amount = $renewal_order->get_total(); … … 105 106 } 106 107 107 \WC_Stripe_Logger:: log( "Info:Begin processing subscription payment for order {$order_id} for the amount of {$amount}" );108 \WC_Stripe_Logger::info( "Begin processing subscription payment for order {$order_id} for the amount of {$amount}" ); 108 109 109 110 $intent = $this->create_intent( $renewal_order, $prepared_source ); 110 111 111 112 if ( empty( $intent->error ) ) { 112 $ this->lock_order_payment( $renewal_order, $intent );113 $stripe_order_helper->lock_order_payment( $renewal_order, $intent ); 113 114 // Only confirm if Stripe still requires confirmation. 114 115 if ( \WC_Stripe_Intent_Status::REQUIRES_CONFIRMATION === $intent->status ) { … … 120 121 $this->maybe_remove_non_existent_customer( $intent->error, $renewal_order ); 121 122 122 $ this->unlock_order_payment( $renewal_order );123 $stripe_order_helper->unlock_order_payment( $renewal_order ); 123 124 $this->throw_localized_message( $intent, $renewal_order ); 124 125 } … … 129 130 $this->process_response( $response, $renewal_order ); 130 131 } 131 $this->unlock_order_payment( $renewal_order ); 132 $stripe_order_helper->unlock_order_payment( $renewal_order ); 133 132 134 } catch ( \WC_Stripe_Exception $e ) { 133 \WC_Stripe_Logger:: log( 'Error: ' . $e->getMessage() );135 \WC_Stripe_Logger::error( 'Error: ' . $e->getMessage() ); 134 136 135 137 $log_message = "Error processing renewal order #{$renewal_order->get_id()}: " . $e->getMessage(); -
subscription/trunk/includes/functions.php
r3441854 r3451310 511 511 * @deprecated 1.8.17 Use SpringDevs\Subscription\Illuminate\Subscription\Subscription::get_subs_product(). 512 512 */ 513 function sdevs_get_subscription_product( $product ) : Product|false{513 function sdevs_get_subscription_product( $product ) { 514 514 // Deprecated notice. 515 515 _deprecated_function( 'sdevs_get_subscription_product', '1.8.17', 'SpringDevs\Subscription\Illuminate\Subscription\Subscription::get_subs_product' ); -
subscription/trunk/languages/subscription.pot
r3441854 r3451310 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-0 1-18T10:42:47+00:00\n"12 "POT-Creation-Date: 2026-02-01T10:01:34+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 1412 1412 msgstr "" 1413 1413 1414 #: includes/Illuminate/Gateways/Stripe/Stripe.php:10 41414 #: includes/Illuminate/Gateways/Stripe/Stripe.php:105 1415 1415 msgid "Customer not found" 1416 1416 msgstr "" -
subscription/trunk/subscription.php
r3441854 r3451310 7 7 * Description: WPSubscription allow WooCommerce to enables recurring payments, subscriptions, and auto-renewals for digital and physical products. Supports Stripe, PayPal, Paddle, and more. 8 8 * 9 * Version: 1.8.1 79 * Version: 1.8.18 10 10 * 11 11 * Author: ConversWP … … 51 51 * @var string 52 52 */ 53 const version = '1.8.1 7';53 const version = '1.8.18'; 54 54 55 55 /** -
subscription/trunk/vendor/composer/installed.php
r3441854 r3451310 2 2 'root' => array( 3 3 'name' => 'converswp/subscription', 4 'pretty_version' => '1.8.1 7',5 'version' => '1.8.1 7.0',6 'reference' => ' 34764694540988abb46d6dffb74cabdbc2febaee',4 'pretty_version' => '1.8.18', 5 'version' => '1.8.18.0', 6 'reference' => 'fd790119d3575032a416edadc6402c9b827485da', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'converswp/subscription' => array( 14 'pretty_version' => '1.8.1 7',15 'version' => '1.8.1 7.0',16 'reference' => ' 34764694540988abb46d6dffb74cabdbc2febaee',14 'pretty_version' => '1.8.18', 15 'version' => '1.8.18.0', 16 'reference' => 'fd790119d3575032a416edadc6402c9b827485da', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.