Plugin Directory

Changeset 3451310


Ignore:
Timestamp:
02/01/2026 10:12:21 AM (2 months ago)
Author:
aushamim
Message:

Update to version 1.8.18 from GitHub

Location:
subscription
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • subscription/tags/1.8.18/changelog.txt

    r3441854 r3451310  
    11*** WPSubscription Changelog ***
     2
     32026-02-01 - version 1.8.18
     4* fix: Function return type error.
     5* fix: Stripe deprecated functions.
    26
    372026-01-18 - version 1.8.17
  • subscription/tags/1.8.18/includes/Illuminate/Gateways/Stripe/Stripe.php

    r3428836 r3451310  
    8686     *
    8787     * @param \WC_Order $renewal_order Renewal order.
    88      * @throws \WC_Stripe_Exception $e excepttion.
     88     * @throws \WC_Stripe_Exception $e exception.
    8989     */
    9090    public function pay_renew_order( $renewal_order ) {
     
    9393
    9494        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 );
    9697
    9798            $amount   = $renewal_order->get_total();
     
    105106            }
    106107
    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}" );
    108109
    109110            $intent = $this->create_intent( $renewal_order, $prepared_source );
    110111
    111112            if ( empty( $intent->error ) ) {
    112                 $this->lock_order_payment( $renewal_order, $intent );
     113                $stripe_order_helper->lock_order_payment( $renewal_order, $intent );
    113114                // Only confirm if Stripe still requires confirmation.
    114115                if ( \WC_Stripe_Intent_Status::REQUIRES_CONFIRMATION === $intent->status ) {
     
    120121                $this->maybe_remove_non_existent_customer( $intent->error, $renewal_order );
    121122
    122                 $this->unlock_order_payment( $renewal_order );
     123                $stripe_order_helper->unlock_order_payment( $renewal_order );
    123124                $this->throw_localized_message( $intent, $renewal_order );
    124125            }
     
    129130                $this->process_response( $response, $renewal_order );
    130131            }
    131             $this->unlock_order_payment( $renewal_order );
     132            $stripe_order_helper->unlock_order_payment( $renewal_order );
     133
    132134        } catch ( \WC_Stripe_Exception $e ) {
    133             \WC_Stripe_Logger::log( 'Error: ' . $e->getMessage() );
     135            \WC_Stripe_Logger::error( 'Error: ' . $e->getMessage() );
    134136
    135137            $log_message = "Error processing renewal order #{$renewal_order->get_id()}: " . $e->getMessage();
  • subscription/tags/1.8.18/includes/functions.php

    r3441854 r3451310  
    511511 * @deprecated 1.8.17 Use SpringDevs\Subscription\Illuminate\Subscription\Subscription::get_subs_product().
    512512 */
    513 function sdevs_get_subscription_product( $product ): Product|false {
     513function sdevs_get_subscription_product( $product ) {
    514514    // Deprecated notice.
    515515    _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  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-01-18T10:42:47+00:00\n"
     12"POT-Creation-Date: 2026-02-01T10:01:34+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    14121412msgstr ""
    14131413
    1414 #: includes/Illuminate/Gateways/Stripe/Stripe.php:104
     1414#: includes/Illuminate/Gateways/Stripe/Stripe.php:105
    14151415msgid "Customer not found"
    14161416msgstr ""
  • subscription/tags/1.8.18/subscription.php

    r3441854 r3451310  
    77 * Description: WPSubscription allow WooCommerce to enables recurring payments, subscriptions, and auto-renewals for digital and physical products. Supports Stripe, PayPal, Paddle, and more.
    88 *
    9  * Version: 1.8.17
     9 * Version: 1.8.18
    1010 *
    1111 * Author: ConversWP
     
    5151     * @var string
    5252     */
    53     const version = '1.8.17';
     53    const version = '1.8.18';
    5454
    5555    /**
  • subscription/tags/1.8.18/vendor/composer/installed.php

    r3441854 r3451310  
    22    'root' => array(
    33        'name' => 'converswp/subscription',
    4         'pretty_version' => '1.8.17',
    5         'version' => '1.8.17.0',
    6         'reference' => '34764694540988abb46d6dffb74cabdbc2febaee',
     4        'pretty_version' => '1.8.18',
     5        'version' => '1.8.18.0',
     6        'reference' => 'fd790119d3575032a416edadc6402c9b827485da',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'converswp/subscription' => array(
    14             'pretty_version' => '1.8.17',
    15             'version' => '1.8.17.0',
    16             'reference' => '34764694540988abb46d6dffb74cabdbc2febaee',
     14            'pretty_version' => '1.8.18',
     15            'version' => '1.8.18.0',
     16            'reference' => 'fd790119d3575032a416edadc6402c9b827485da',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • subscription/trunk/changelog.txt

    r3441854 r3451310  
    11*** WPSubscription Changelog ***
     2
     32026-02-01 - version 1.8.18
     4* fix: Function return type error.
     5* fix: Stripe deprecated functions.
    26
    372026-01-18 - version 1.8.17
  • subscription/trunk/includes/Illuminate/Gateways/Stripe/Stripe.php

    r3428836 r3451310  
    8686     *
    8787     * @param \WC_Order $renewal_order Renewal order.
    88      * @throws \WC_Stripe_Exception $e excepttion.
     88     * @throws \WC_Stripe_Exception $e exception.
    8989     */
    9090    public function pay_renew_order( $renewal_order ) {
     
    9393
    9494        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 );
    9697
    9798            $amount   = $renewal_order->get_total();
     
    105106            }
    106107
    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}" );
    108109
    109110            $intent = $this->create_intent( $renewal_order, $prepared_source );
    110111
    111112            if ( empty( $intent->error ) ) {
    112                 $this->lock_order_payment( $renewal_order, $intent );
     113                $stripe_order_helper->lock_order_payment( $renewal_order, $intent );
    113114                // Only confirm if Stripe still requires confirmation.
    114115                if ( \WC_Stripe_Intent_Status::REQUIRES_CONFIRMATION === $intent->status ) {
     
    120121                $this->maybe_remove_non_existent_customer( $intent->error, $renewal_order );
    121122
    122                 $this->unlock_order_payment( $renewal_order );
     123                $stripe_order_helper->unlock_order_payment( $renewal_order );
    123124                $this->throw_localized_message( $intent, $renewal_order );
    124125            }
     
    129130                $this->process_response( $response, $renewal_order );
    130131            }
    131             $this->unlock_order_payment( $renewal_order );
     132            $stripe_order_helper->unlock_order_payment( $renewal_order );
     133
    132134        } catch ( \WC_Stripe_Exception $e ) {
    133             \WC_Stripe_Logger::log( 'Error: ' . $e->getMessage() );
     135            \WC_Stripe_Logger::error( 'Error: ' . $e->getMessage() );
    134136
    135137            $log_message = "Error processing renewal order #{$renewal_order->get_id()}: " . $e->getMessage();
  • subscription/trunk/includes/functions.php

    r3441854 r3451310  
    511511 * @deprecated 1.8.17 Use SpringDevs\Subscription\Illuminate\Subscription\Subscription::get_subs_product().
    512512 */
    513 function sdevs_get_subscription_product( $product ): Product|false {
     513function sdevs_get_subscription_product( $product ) {
    514514    // Deprecated notice.
    515515    _deprecated_function( 'sdevs_get_subscription_product', '1.8.17', 'SpringDevs\Subscription\Illuminate\Subscription\Subscription::get_subs_product' );
  • subscription/trunk/languages/subscription.pot

    r3441854 r3451310  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-01-18T10:42:47+00:00\n"
     12"POT-Creation-Date: 2026-02-01T10:01:34+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    14121412msgstr ""
    14131413
    1414 #: includes/Illuminate/Gateways/Stripe/Stripe.php:104
     1414#: includes/Illuminate/Gateways/Stripe/Stripe.php:105
    14151415msgid "Customer not found"
    14161416msgstr ""
  • subscription/trunk/subscription.php

    r3441854 r3451310  
    77 * Description: WPSubscription allow WooCommerce to enables recurring payments, subscriptions, and auto-renewals for digital and physical products. Supports Stripe, PayPal, Paddle, and more.
    88 *
    9  * Version: 1.8.17
     9 * Version: 1.8.18
    1010 *
    1111 * Author: ConversWP
     
    5151     * @var string
    5252     */
    53     const version = '1.8.17';
     53    const version = '1.8.18';
    5454
    5555    /**
  • subscription/trunk/vendor/composer/installed.php

    r3441854 r3451310  
    22    'root' => array(
    33        'name' => 'converswp/subscription',
    4         'pretty_version' => '1.8.17',
    5         'version' => '1.8.17.0',
    6         'reference' => '34764694540988abb46d6dffb74cabdbc2febaee',
     4        'pretty_version' => '1.8.18',
     5        'version' => '1.8.18.0',
     6        'reference' => 'fd790119d3575032a416edadc6402c9b827485da',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'converswp/subscription' => array(
    14             'pretty_version' => '1.8.17',
    15             'version' => '1.8.17.0',
    16             'reference' => '34764694540988abb46d6dffb74cabdbc2febaee',
     14            'pretty_version' => '1.8.18',
     15            'version' => '1.8.18.0',
     16            'reference' => 'fd790119d3575032a416edadc6402c9b827485da',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.