WooCommerce Deposits - Partial Payments Plugin

The problem with WooCommerce stripe gateway plugin not being compatible with WooCommerce Deposits is because Stripe gateway plugin gets cart total directly from cart->total property which does not go through woocommerce filters, that makes WooCommerce Deposits unable of correcting the amount and overriding deposit amount instead of total amount.

A fix can be implemented by doing the following :

we need to modify stripe gateway plugin in order to get the data via a filter-enabled function. to do that, open file

~/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php

find function payment_fields() and add the following code snippet below the line “$total = WC()->cart->total;

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *