Skip to content

Instantly share code, notes, and snippets.

@trullock
Created June 7, 2012 09:50
Show Gist options
  • Save trullock/2887918 to your computer and use it in GitHub Desktop.
Save trullock/2887918 to your computer and use it in GitHub Desktop.
using (var wsddid = new WSDDID())
{
var ddUserData = new DDUserData
{
UKData = new DDUKData
{
Address1 = new DDAddress
{
Line1 = "xxxxxxx",
Line8 = "XXX XXX"
}
},
Basic = new DDBasic
{
Title = "Mr",
Forename = "Andrew",
Surname = "Bullock"
},
BankAccount = new BankAccount
{
AccountNumber = "xxxxxxxx",
SortCode = "xxxxxx"
},
};
try
{
var authenticateResult = wsddid.Authenticate("", ddUserData, "0b2bf72b-0dba-4e0d-8778-5eb81f9dea98", "999-0123456789", "xxxxxxx");
return authenticateResult.AccountStatus == BankAccountStatus.Valid;
}
catch (Exception e)
{
errorReporter.Error(e);
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment