C# Class eWAY.Rapid.RapidClientFactory

Factory class to create an instance of IRapidSdkClient
Datei anzeigen Open project: eWAYPayment/eway-rapid-net

Public Methods

Method Description
NewRapidClient ( string apiKey, string password, string rapidEndpoint ) : IRapidClient

Static method to create a new Rapid SDK Client configured to communicate with eWAY's Rapid API

UserDisplayMessage ( string errorCode, string language ) : string

This static/utility method will provide a message suitable for display to a user corresponding to a given Rapid Code/language.

Method Details

NewRapidClient() public static method

Static method to create a new Rapid SDK Client configured to communicate with eWAY's Rapid API
public static NewRapidClient ( string apiKey, string password, string rapidEndpoint ) : IRapidClient
apiKey string Rapid API Key
password string Password for the API Key
rapidEndpoint string Possible values ("Production", "Sandbox", or a URL) Production and sandbox will default to the Global Rapid API Endpoints.
return IRapidClient

UserDisplayMessage() public static method

This static/utility method will provide a message suitable for display to a user corresponding to a given Rapid Code/language.
public static UserDisplayMessage ( string errorCode, string language ) : string
errorCode string Rapid API Error Code e.g. "V6023"
language string Language Code, e.g. "EN" (default) or "ES"
return string