Class Factory
Ingenico ePayments platform factory for several SDK components.
Inherited Members
Namespace: Ingenico.Connect.Sdk
Assembly: connect-sdk-dotnet.dll
Syntax
public static class Factory
Methods
CreateClient(Communicator)
Creates a Client based on the passed communicator.
Declaration
public static Client CreateClient(Communicator communicator)
Parameters
Type | Name | Description |
---|---|---|
Communicator | communicator | The shared communicator to use. |
Returns
Type | Description |
---|---|
Client |
CreateClient(CommunicatorConfiguration)
Creates a Client based on the passed configuration.
Declaration
public static Client CreateClient(CommunicatorConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
CommunicatorConfiguration | configuration |
Returns
Type | Description |
---|---|
Client |
CreateClient(Session)
Creates a Client based on the passed session.
Declaration
public static Client CreateClient(Session session)
Parameters
Type | Name | Description |
---|---|---|
Session | session | The shared session to use. |
Returns
Type | Description |
---|---|
Client |
CreateClient(IDictionary<string, string>, string, string)
Creates a Client based on the configuration values in
configurationDictionary
, apiKeyId
and secretApiKey
.
Declaration
public static Client CreateClient(IDictionary<string, string> configurationDictionary, string apiKeyId, string secretApiKey)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | configurationDictionary | Dictionary containing configuration. |
string | apiKeyId | The API key identifier. |
string | secretApiKey | The secret API key. |
Returns
Type | Description |
---|---|
Client |
CreateClient(string, string)
Creates a Client based on the configuration values in
your app.conf
or web.conf
file, apiKeyId
and secretApiKey
.
Declaration
public static Client CreateClient(string apiKeyId, string secretApiKey)
Parameters
Type | Name | Description |
---|---|---|
string | apiKeyId | The API key identifier. |
string | secretApiKey | The secret API key. |
Returns
Type | Description |
---|---|
Client |
CreateCommunicator(CommunicatorConfiguration)
Creates a Communicator based on the passed configuration.
Declaration
public static Communicator CreateCommunicator(CommunicatorConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
CommunicatorConfiguration | configuration |
Returns
Type | Description |
---|---|
Communicator |
CreateCommunicator(Session)
Creates a Communicator based on the passed session.
Declaration
public static Communicator CreateCommunicator(Session session)
Parameters
Type | Name | Description |
---|---|---|
Session | session | The shared session to use. |
Returns
Type | Description |
---|---|
Communicator |
CreateCommunicator(IDictionary<string, string>, string, string)
Creates a Communicator based on the configuration values
configurationDictionary
, apiKeyId
and secretApiKey
.
Declaration
public static Communicator CreateCommunicator(IDictionary<string, string> configurationDictionary, string apiKeyId, string secretApiKey)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | configurationDictionary | Dictionary containing configuration. |
string | apiKeyId | The API key identifier. |
string | secretApiKey | The secret API key. |
Returns
Type | Description |
---|---|
Communicator |
CreateCommunicator(string, string)
Creates a Communicator based on the configuration values in
your app.conf
or web.conf
file, apiKeyId
and secretApiKey
.
Declaration
public static Communicator CreateCommunicator(string apiKeyId, string secretApiKey)
Parameters
Type | Name | Description |
---|---|---|
string | apiKeyId | The API key identifier. |
string | secretApiKey | The secret API key. |
Returns
Type | Description |
---|---|
Communicator |
CreateConfiguration(IDictionary<string, string>, string, string)
Creates a CommunicatorConfiguration based on the configuration
values in configurationDictionary
, apiKeyId
and secretApiKey
.
Declaration
public static CommunicatorConfiguration CreateConfiguration(IDictionary<string, string> configurationDictionary, string apiKeyId, string secretApiKey)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | configurationDictionary | Dictionary containing configuration. |
string | apiKeyId | The API key identifier. |
string | secretApiKey | The secret API key. |
Returns
Type | Description |
---|---|
CommunicatorConfiguration | The communicator configuration that can still be changed. |
CreateConfiguration(string, string)
Creates a CommunicatorConfiguration based on the configuration values in
your app.conf
or web.conf
file, apiKeyId
and secretApiKey
.
Declaration
public static CommunicatorConfiguration CreateConfiguration(string apiKeyId, string secretApiKey)
Parameters
Type | Name | Description |
---|---|---|
string | apiKeyId | The API key identifier. |
string | secretApiKey | The secret API key. |
Returns
Type | Description |
---|---|
CommunicatorConfiguration | The communicator configuration that can still be changed. |
CreateSessionBuilder(CommunicatorConfiguration)
Creates a SessionBuilder based on the passed configuration.
Declaration
public static SessionBuilder CreateSessionBuilder(CommunicatorConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
CommunicatorConfiguration | configuration |
Returns
Type | Description |
---|---|
SessionBuilder |
CreateSessionBuilder(IDictionary<string, string>, string, string)
Creates a SessionBuilder based on the configuration
values in configurationDictionary
, apiKeyId
and secretApiKey
.
Declaration
public static SessionBuilder CreateSessionBuilder(IDictionary<string, string> configurationDictionary, string apiKeyId, string secretApiKey)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | configurationDictionary | Dictionary containing configuration. |
string | apiKeyId | The API key identifier. |
string | secretApiKey | The secret API key. |
Returns
Type | Description |
---|---|
SessionBuilder |
CreateSessionBuilder(string, string)
Creates a SessionBuilder based on the configuration values in
your app.conf
or web.conf
file, apiKeyId
and secretApiKey
.
Declaration
public static SessionBuilder CreateSessionBuilder(string apiKeyId, string secretApiKey)
Parameters
Type | Name | Description |
---|---|---|
string | apiKeyId | The API key identifier. |
string | secretApiKey | The secret API key. |
Returns
Type | Description |
---|---|
SessionBuilder |