'Split payment into product and shipping, is it possible?

Our customers receives "miles" after they purchase some product with us, but I need to restrict them from paying the shipping cost of an order with this miles, but I need to allow them to use this to buy the product.

For example: Customer wants to buy a t-shirt that costs $10 and the shipping cost is $5. I need that he can pay $10 with his miles and the remaining $5 with any other gateway.

The plugin I'm using to control miles allow partial payments, but only if there is not enough balance, not for payment gateway restrictions by shipping.

I also tried to block payment gateways by shipping type, but it blocks full payment.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source