Class Factory
Worldline Acquiring platform factory for several SDK components.
Inherited Members
Namespace: Worldline.Acquiring.Sdk
Assembly: Worldline.Acquiring.Sdk.dll
Syntax
public static class Factory
Methods
CreateClient(IDictionary<string, string>, string, string)
Creates a Client based on the configuration values in
configurationDictionary
, authorizationId
and authorizationSecret
.
Declaration
public static Client CreateClient(IDictionary<string, string> configurationDictionary, string authorizationId, string authorizationSecret)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | configurationDictionary | Dictionary containing configuration. |
string | authorizationId | The authorization id, e.g. the API key identifier. |
string | authorizationSecret | The authorization secret, e.g. 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, authorizationId
and authorizationSecret
.
Declaration
public static Client CreateClient(string authorizationId, string authorizationSecret)
Parameters
Type | Name | Description |
---|---|---|
string | authorizationId | The authorization id, e.g. the API key identifier. |
string | authorizationSecret | The authorization secret, e.g. the secret API key. |
Returns
Type | Description |
---|---|
Client |
CreateClient(Uri, IConnection, IAuthenticator, MetadataProvider)
Creates a Client based on the passed fields.
Declaration
public static Client CreateClient(Uri apiEndpoint, IConnection connection, IAuthenticator authenticator, MetadataProvider metadataProvider)
Parameters
Type | Name | Description |
---|---|---|
Uri | apiEndpoint | The payment platform API endpoint URI to use. |
IConnection | connection | The IConnection to use. |
IAuthenticator | authenticator | The IAuthenticator to use. |
MetadataProvider | metadataProvider | The MetadataProvider to use. |
Returns
Type | Description |
---|---|
Client |
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 |
CreateCommunicator(IDictionary<string, string>, string, string)
Creates a Communicator based on the configuration values
configurationDictionary
, authorizationId
and authorizationSecret
.
Declaration
public static Communicator CreateCommunicator(IDictionary<string, string> configurationDictionary, string authorizationId, string authorizationSecret)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | configurationDictionary | Dictionary containing configuration. |
string | authorizationId | The authorization id, e.g. the API key identifier. |
string | authorizationSecret | The authorization secret, e.g. 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, authorizationId
and authorizationSecret
.
Declaration
public static Communicator CreateCommunicator(string authorizationId, string authorizationSecret)
Parameters
Type | Name | Description |
---|---|---|
string | authorizationId | The authorization id, e.g. the API key identifier. |
string | authorizationSecret | The authorization secret, e.g. the secret API key. |
Returns
Type | Description |
---|---|
Communicator |
CreateCommunicator(Uri, IConnection, IAuthenticator, MetadataProvider)
Creates a Communicator based on the passed fields.
Declaration
public static Communicator CreateCommunicator(Uri apiEndpoint, IConnection connection, IAuthenticator authenticator, MetadataProvider metadataProvider)
Parameters
Type | Name | Description |
---|---|---|
Uri | apiEndpoint | The payment platform API endpoint URI to use. |
IConnection | connection | The IConnection to use. |
IAuthenticator | authenticator | The IAuthenticator to use. |
MetadataProvider | metadataProvider | The MetadataProvider to use. |
Returns
Type | Description |
---|---|
Communicator |
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 |
CreateCommunicatorBuilder(IDictionary<string, string>, string, string)
Creates a CommunicatorBuilder based on the configuration
values in configurationDictionary
, authorizationId
and authorizationSecret
.
Declaration
public static CommunicatorBuilder CreateCommunicatorBuilder(IDictionary<string, string> configurationDictionary, string authorizationId, string authorizationSecret)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | configurationDictionary | Dictionary containing configuration. |
string | authorizationId | The authorization id, e.g. the API key identifier. |
string | authorizationSecret | The authorization secret, e.g. the secret API key. |
Returns
Type | Description |
---|---|
CommunicatorBuilder |
CreateCommunicatorBuilder(string, string)
Creates a CommunicatorBuilder based on the configuration values in
your app.conf
or web.conf
file, authorizationId
and authorizationSecret
.
Declaration
public static CommunicatorBuilder CreateCommunicatorBuilder(string authorizationId, string authorizationSecret)
Parameters
Type | Name | Description |
---|---|---|
string | authorizationId | The authorization id, e.g. the API key identifier. |
string | authorizationSecret | The authorization secret, e.g. the secret API key. |
Returns
Type | Description |
---|---|
CommunicatorBuilder |
CreateCommunicatorBuilder(CommunicatorConfiguration)
Creates a CommunicatorBuilder based on the passed configuration.
Declaration
public static CommunicatorBuilder CreateCommunicatorBuilder(CommunicatorConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
CommunicatorConfiguration | configuration |
Returns
Type | Description |
---|---|
CommunicatorBuilder |
CreateConfiguration(IDictionary<string, string>, string, string)
Creates a CommunicatorConfiguration based on the configuration
values in configurationDictionary
, authorizationId
and authorizationSecret
.
Declaration
public static CommunicatorConfiguration CreateConfiguration(IDictionary<string, string> configurationDictionary, string authorizationId, string authorizationSecret)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | configurationDictionary | Dictionary containing configuration. |
string | authorizationId | The authorization id, e.g. the API key identifier. |
string | authorizationSecret | The authorization secret, e.g. 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, authorizationId
and authorizationSecret
.
Declaration
public static CommunicatorConfiguration CreateConfiguration(string authorizationId, string authorizationSecret)
Parameters
Type | Name | Description |
---|---|---|
string | authorizationId | The authorization id, e.g. the API key identifier. |
string | authorizationSecret | The authorization secret, e.g. the secret API key. |
Returns
Type | Description |
---|---|
CommunicatorConfiguration | The communicator configuration that can still be changed. |