Created
June 7, 2012 09:50
-
-
Save trullock/2887918 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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