public ClientContext(MerchantCredentials _credentials, string _basePath) { credentials = _credentials; config = new Configuration(_basePath); client = new ApiClient(); }
public ClientContext(MerchantCredentials _credentials, bool _production) { credentials = _credentials; config = _production ? new Configuration(PRODUCTION_URL) : new Configuration(SANDBOX_URL); client = new ApiClient(); }
public ClientContext(MerchantCredentials _credentials) { config = new Configuration(); client = new ApiClient(); credentials = _credentials; }
public static ClientContext Create(MerchantCredentials _credentials) { return(new ClientContext(_credentials)); }
public static Gateway Create(MerchantCredentials _credentials, string _basePath) { return(new Gateway(new ClientContext(_credentials, _basePath))); }
public static Gateway Create(MerchantCredentials _credentials, bool _production) { return(new Gateway(new ClientContext(_credentials, _production))); }