Modify gateway extension for subscriptions
-
I am modifying an existing extension for Verotel to handle subscriptions by following this documentation
https://docs.woocommerce.com/document/subscriptions/develop/payment-gateway-integration/
However, I am stuck on one area. It seems the method most gateways use is storing a token locally. WooCommerce runs a scheduled task to charge that token.
Verotel and some others work in a different way where they have the scheduled tasks on their end. Verotel does a rebill request to the site that setup the subscription after the automatic recharge has been made.Eg.
This brings up two questions
Since WooCommerce will want to do its own automatic renewing on its end, is there something I need to turn off or do to prevent this?
Second is, what call do I need to make when the rebill request comes in to make WooCommerce renew the subscription, generate the invoice, email, etc? Is there a single call in the WooSubscriptions module which handles all of this?
I did find this function WC_Subscriptions_Manager::process_subscription_payments_on_order( $order ) but I don’t think it does what I am after
The topic ‘Modify gateway extension for subscriptions’ is closed to new replies.