/** * This method sets the card handler by the given brand information and by a list of accepted brands. * * @param array $brandInformationMap * @param array|string $acceptedBrands A list of brands or a single brand name. * @param string $parameterKeyForMappedBrand The key name for the parameter to map the brands to. * @return Customweb_Payment_Authorization_Method_CreditCard_ElementBuilder */ public function setCardHandlerByBrandInformationMap($brandInformationMap, $acceptedBrands = null, $parameterKeyForMappedBrand = null) { $informationMap = Customweb_Payment_Authorization_Method_CreditCard_CardInformation::getCardInformationObjects($brandInformationMap, $acceptedBrands, $parameterKeyForMappedBrand); $this->cardHandler = new Customweb_Payment_Authorization_Method_CreditCard_CardHandler($informationMap); return $this; }