config = $config; $this->cart = $cart; } /** * Retrieve assoc array of checkout configuration * * @return array */ public function getConfig() { $storeId = $this->cart->getStoreId(); return [ 'payment' => [ Config::METHOD => [ 'clientKey' => $this->config->getClientKey($storeId), 'apiLoginID' => $this->config->getLoginId($storeId), 'environment' => $this->config->getEnvironment($storeId), 'useCvv' => $this->config->isCvvEnabled($storeId), ] ] ]; } }