Support » Plugin: Subscriptions for WooCommerce » Turn off scheduler?

  • Resolved emsa16



    The payment gateway that we are using (SogeCommerce) have their own system for handling recurring payments, and all the scheduling and transactions happen automatically on their site after setting up the subscription. This means that the scheduler in this plugin is not needed and in fact it changes the status of the payment to failed, because it is not able to perform the transaction.

    Is it possible to turn off the scheduler?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @emsa16,

    Unfortunately. it’s not possible to turn off the scheduler for the recurring payments.

    Hi @markhf,

    Thanks for your quick response. That is unfortunate. I am trying to find a way to integrate the payment gateway with your plugin, but since I have not yet been able to actually test the scheduler, I need to ask about some details regarding it.

    When a scheduled payment is executed, I guess that some payment information needs to be stored in the subscription so that a new transaction can be made? If a payment token is stored for the customer/subscription/order, will that work? I have looked quite a bit at the code as I have needed to extend the functionality of the plugin, but the scheduler remains a bit mysterious to me.

    I hope you can help shed some light on how the scheduler works so that we can integrate it with our payment gateway.

    Hi @emsa16

    The payment plugin should contain an action like below.
    add_action( 'woocommerce_scheduled_subscription_payment_' . $this->id, array( $this, 'do_scheduled_subscription_payment' ), 10, 2 );

    On subscription renewal, the scheduler will trigger this action woocommerce_scheduled_subscription_payment_mypaymentpluginid with order details.

    You can check this hook in the plugin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Turn off scheduler?’ is closed to new replies.