/** * Constructor * * Inits the appropriate endpoint and httpconnector objects * Sets all of the Payments class properties * * @param \Beanstream\Configuration $config */ function __construct(Configuration $config) { //init endpoint $this->_endpoint = new Endpoints($config->getPlatform(), $config->getApiVersion()); //init http connector $this->_connector = new HttpConnector(base64_encode($config->getMerchantId() . ':' . $config->getApiKey())); //set merchant id from config (only needed for unreferenced return) $this->_merchantId = $config->getMerchantId(); }
/** * Constructor * * Inits the appropriate endpoint and httpconnector objects * Sets all of the Profiles class properties * * @param \Beanstream\Configuration $config */ function __construct(Configuration $config) { //init endpoint $this->_endpoint = new Endpoints($config->getPlatform(), $config->getApiVersion()); //init http connector $this->_connector = new HttpConnector(base64_encode($config->getMerchantId() . ':' . $config->getApiKey())); }