public function gatewayTypes() { $types = [GATEWAY_TYPE_CREDIT_CARD, GATEWAY_TYPE_TOKEN]; if ($this->accountGateway && $this->accountGateway->getAchEnabled()) { $types[] = GATEWAY_TYPE_BANK_TRANSFER; } return $types; }