Adding supports Subscriptions
-
Hello,
I was wondering if you could add the functionality of supporting the custom payment gateway with subscriptions. I now add manualy the following code in class-woocommerce-other-payment-gateway.php, but after an update I (of course) have to add the code again, since it overwrites. I’ve tried to write a code snippet, but this didn’t work out. Om my site i use woocommerce subscriptions and created a custom payment type for my subscriptions. If this is not possible, could you help me out with a code snippet that works with your plugin?
This is the code I add after ‘products’ in the array:$this->supports = array(
‘products’,
‘subscriptions’,
‘subscription_cancellation’,
‘subscription_suspension’,
‘subscription_reactivation’,
‘subscription_amount_changes’,
‘subscription_date_changes’,
‘subscription_payment_method_change’,
‘subscription_payment_method_change_customer’,
‘subscription_payment_method_change_admin’,
‘multiple_subscriptions’,
);
- You must be logged in to reply to this topic.