How to disable partial payment for products that cannot be purchased with wallet
-
Hello,
I have a subscription product where I want users to only pay with their bank cards not wallet. I am able to unset wallet payment for the subscription products with the following code.
// I added a payment product category to wallet product function paystack_gateway_disable($available_gateways) { if (!is_admin()) { if (payments_category_is_in_the_cart()) { unset($available_gateways['wallet']); } } return $available_gateways; } add_filter('woocommerce_available_payment_gateways', 'paystack_gateway_disable');
However, the problem I am facing is that, if a user has an amount that is below the subscription product price in their wallet. The partial payment options shows up for the user even though I have unset wallet for the product. My question now is how do I deactivate the partial payment option for my subscription products?
Kind regards,
Sadiq
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘How to disable partial payment for products that cannot be purchased with wallet’ is closed to new replies.