• Resolved chiragjainascure

    (@chiragjainascure)


    Hi Team,

    I’m using the Subscriptions for WooCommerce plugin, and I create a 1 day subscription and place new order and create new order on the next billing date. I have to payment option one is paypal and second is credit card option using stripe. I place the order using Credit Card option (stripe). Currently test mode is enable doesn’t setup the account for stripe.

    I am currently facing an issue where I create custom entries when an order is placed using the ‘woocommerce_payment_complete’ action hook. However, this hook does not trigger for recurring orders when the next billing payment is processed.

    Could you please let me know which hook is used to generate a new order for recurring payments on the next billing cycle?

    Additionally, could you please clarify whether the order status needs to be set to “Completed” for the recurring payment to work, or will it also process successfully if the status remains “Processing”?

    This link will help you to go checkout page, select subscription plan from here website.

Viewing 1 replies (of 1 total)
  • Hello,

    Insted of ‘woocommerce_payment_complete‘ you need to use this do_action( ‘wps_sfw_compatible_points_and_rewards’, $order_id ); this will fire once renewal order is done and its payment is also completed , where $order_id is renewal order id.  and hook ‘woocommerce_payment_complete’ is not working because renewal order is not a normal order , it is created from our plugin automatically and its payment is done through custom code due to this hook is not working.

    And as you asked Additionally, could you please clarify whether the order status needs to be set to “Completed” for the recurring payment to work, or will it also process successfully if the status remains “Processing”?

    So on this when order contain virtual or downloaded product then order status will automatically goes into completed but if it not then order status goes into processing similary like woocommerce functionality . but this will done only once payment is completed

    Thank you

Viewing 1 replies (of 1 total)

The topic ‘Recurring Payment Issue’ is closed to new replies.