Plugin Directory

Changeset 3042950


Ignore:
Timestamp:
02/29/2024 08:30:20 AM (2 years ago)
Author:
starnetwork
Message:

fix subscription recurring payments

Location:
wc-smartpay/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wc-smartpay/trunk/README.md

    r3040769 r3042950  
    11=== SmartPay for WooCommerce ===
    2 Stable tag: 1.0.7
     2Stable tag: 1.0.8
    33Tested up to: 6.4
    44License: GPLv2 or later
  • wc-smartpay/trunk/includes/class-smartpay-payment-gateway.php

    r3040769 r3042950  
    6565        add_action( 'woocommerce_thankyou_' . self::METHOD_CODE, array( SmartPay_Iframe_Redirect_Renderer::class, 'render' ), 1, 1 );
    6666
    67         if ( class_exists( 'WC_Subscriptions_Order' ) ) {
     67        if ( class_exists( 'WC_Subscriptions_Order' )
     68            && !defined( 'SMARTPAY_SUBSCRIPTION_HANDLER_DEFINED' )
     69        ) {
    6870            add_action(
    6971                'woocommerce_scheduled_subscription_payment_' . $this->id,
     
    7274                2
    7375            );
     76            define( 'SMARTPAY_SUBSCRIPTION_HANDLER_DEFINED', true );
    7477        }
    7578    }
     
    372375     */
    373376    public function process_subscription( $amount_to_charge, $renewal_order ) {
     377
     378        SmartPay_Logger::instance()->log(
     379            $renewal_order->get_id(),
     380            'RENEWAL START',
     381            'Starting renewal creation'
     382        );
     383
    374384        $this->payment_processor()->capture( $renewal_order, $amount_to_charge );
    375385    }
  • wc-smartpay/trunk/smartpay.php

    r3040769 r3042950  
    44 * Plugin URI: https://smartpay.co.il/
    55 * Description: SmartPay payment plugin for WooCommerce
    6  * Version:     1.0.7
     6 * Version:     1.0.8
    77 * Author:      SmartPay
    88 * License:     GPLv2 or later
     
    1515defined( 'ABSPATH' ) || exit;
    1616
    17 define( 'SMARTPAY_VERSION', '1.0.7' );
     17define( 'SMARTPAY_VERSION', '1.0.8' );
    1818
    1919if ( ! defined( 'SMARTPAY_PLUGIN_FILE' ) ) {
Note: See TracChangeset for help on using the changeset viewer.