RegisterToken() 공개 메소드

public RegisterToken ( registerTokenRequestType tokenRequest ) : registerTokenResponse
tokenRequest registerTokenRequestType
리턴 registerTokenResponse
예제 #1
0
 public void SimpleTokenWithPayPage()
 {
     LitleOnline lOnlineObj = new LitleOnline();
     registerTokenRequestType registerTokenRequest = new registerTokenRequestType();
     registerTokenRequest.orderId = "12344";
     registerTokenRequest.paypageRegistrationId = "1233456789101112";
     registerTokenRequest.reportGroup = "Planets";
     registerTokenResponse rtokenResponse = lOnlineObj.RegisterToken(registerTokenRequest);
     StringAssert.AreEqualIgnoringCase("Account number was successfully registered", rtokenResponse.message);
 }
예제 #2
0
 public void SimpleTokenWithEcheck()
 {
     LitleOnline lOnlineObj = new LitleOnline();
     registerTokenRequestType registerTokenRequest = new registerTokenRequestType();
     registerTokenRequest.orderId = "12344";
     echeckForTokenType echeckObj = new echeckForTokenType();
     echeckObj.accNum = "12344565";
     echeckObj.routingNum = "123476545";
     registerTokenRequest.echeckForToken = echeckObj;
     registerTokenRequest.reportGroup = "Planets";
     registerTokenResponse rtokenResponse = lOnlineObj.RegisterToken(registerTokenRequest);
     StringAssert.AreEqualIgnoringCase("Account number was successfully registered", rtokenResponse.message);
 }
예제 #3
0
 public void TokenEcheckMissingRequiredField()
 {
     LitleOnline lOnlineObj = new LitleOnline();
     registerTokenRequestType registerTokenRequest = new registerTokenRequestType();
     registerTokenRequest.orderId = "12344";
     echeckForTokenType echeckObj = new echeckForTokenType();
     echeckObj.routingNum = "123476545";
     registerTokenRequest.echeckForToken = echeckObj;
     registerTokenRequest.reportGroup = "Planets";
     try
     {
         //expected exception;
         registerTokenResponse rtokenResponse = lOnlineObj.RegisterToken(registerTokenRequest);
     }
     catch (LitleOnlineException e)
     {
         Assert.True(e.Message.StartsWith("Error validating xml data against the schema"));
     }
 }