My custom payment is blocked by this core function for free orders:
in app/code/core/Mage/Payment/Model/Method/Abstract.php
public function isApplicableToQuote($quote, $checksBitMask) {
...
if ($checksBitMask & self::CHECK_ZERO_TOTAL) {
$total = $quote->getBaseSubtotal() + $quote->getShippingAddress()->getBaseShippingAmount();
if ($total < 0.0001 && $this->getCode() != 'free'
&& !($this->canManageRecurringProfiles() && $quote->hasRecurringItems())
) {
return false;
}
}
How can I bypass this? Do I need to overwrite the whole function?