public function getCheckouts(Customweb_Payment_ExternalCheckout_IContext $context) { $checkouts = $this->getCheckoutsUnfiltered(); $result = array(); foreach ($checkouts as $checkout) { if ($checkout->isActive() && $checkout->checkMinimalOrderTotal($context->getOrderAmountInDecimals()) && $checkout->checkMaximalOrderTotal($context->getOrderAmountInDecimals())) { $result[] = $checkout; } } return $result; }