public void setCommunication(Communications communication) { this.communication = communication; }
public void SetCommunication(Communications communication) { this._communication = communication; }
/* * Creates a CNP Online object. */ public CnpOnline(ConfigManager config) { this.communication = new Communications(); this.config = config; }
/** * Construct a CnpOnline specifying the configuration in code. This should be used by integration that have another way * to specify their configuration settings or where different configurations are needed for different instances of CnpOnline. * * Properties that *must* be set are: * url (eg https://payments.cnp.com/vap/communicator/online) * reportGroup (eg "Default Report Group") * username * merchantId * password * timeout (in seconds) * Optional properties are: * proxyHost * proxyPort * printxml (possible values "true" and "false" - defaults to false) */ public CnpOnline(Dictionary <string, string> config) { this._config = config; _communication = new Communications(); }