Esempio n. 1
0
 public void setCommunication(Communications communication)
 {
     this.communication = communication;
 }
Esempio n. 2
0
 public void SetCommunication(Communications communication)
 {
     this._communication = communication;
 }
Esempio n. 3
0
 /*
  * Creates a CNP Online object.
  */
 public CnpOnline(ConfigManager config)
 {
     this.communication = new Communications();
     this.config        = config;
 }
Esempio n. 4
0
 /**
  * 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();
 }