Adapter initialization: PPI

The following code initializes PpiMessageAdapter and adds it to Connector.

var messageAdapter = new PpiMessageAdapter(Connector.TransactionIdGenerator)
{
	Key = "<key>".ToSecureString(),
	Secret = "<secret>".ToSecureString(),
	AuthorizedClient = "<id>",
	ClientKey = "<key>".ToSecureString(),
	IsDemo = true,
	Account = "<id>",
};

Connector.Adapter.InnerAdapters.Add(messageAdapter);

Set the credentials and any other required properties described on the Connector configuration page.

See also

Connector configuration

Connection settings window