Litle.Sdk.LitleOnline.RegisterToken C# (CSharp) Method

RegisterToken() public method

public RegisterToken ( registerTokenRequestType tokenRequest ) : registerTokenResponse
tokenRequest registerTokenRequestType
return registerTokenResponse
        public registerTokenResponse RegisterToken(registerTokenRequestType tokenRequest)
        {
            litleOnlineRequest request = createLitleOnlineRequest();
            fillInReportGroup(tokenRequest);
            request.registerTokenRequest = tokenRequest;

            litleOnlineResponse response = sendToLitle(request);
            registerTokenResponse registerTokenResponse = (registerTokenResponse)response.registerTokenResponse;
            return registerTokenResponse;
        }

Usage Example

コード例 #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);
 }
All Usage Examples Of Litle.Sdk.LitleOnline::RegisterToken