AddApplicationData

Description

This method is used to add a new application to EBizCharge.

Syntax

ApplicationDataResponse ApplicationDataResponse AddApplicationData(SecurityToken ueSecurityToken securityToken, string applicationId, string lookupKey, string base64String).

Arguments

TypeNameDescription
SecurityTokensecurityTokenMerchant security token: used to identify merchant and validate transaction. (required)
StringapplicationIdApplication ID. (required)
StringlookupKeyLook up key. (required)
Stringbase64StringBase 64 string encryption. (required)

Return Value

TypeDescription
ApplicationDataResponse ApplicationDataResponseReturns result of AddApplicationData request.

Example

public function AddApplicationData()
{
    $client = new SoapClient('End point URL');
    $securityToken = array(
        'SecurityId' => '******-454757-4567457-********',
        'UserId' => 'merchant1',
        'Password' => 'merchant1'
    );
    $response = $this->soapClient->AddApplicationData(array(
        'securityToken' => $securityToken,
        'applicationId' => '3453-4354-4354',
        'lookupKey' => '****-4354-4354-3454',
        'base64String' => 'dsfsdf454fg5565655555555555fgdfgdf',
    ));
    $result = $response->AddApplicationDataResult;
}
Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
   <soapenv:Header />
   <soapenv:Body>
      <ebiz:AddApplicationData>
         <ebiz:securityToken>
            <ebiz:SecurityId>********-55ee-434c-b126-********</ebiz:SecurityId>
            <ebiz:UserId>?</ebiz:UserId>
            <ebiz:Password>?</ebiz:Password>
         </ebiz:securityToken>
         <ebiz:applicationId>********-55ee-434c-b126-********</ebiz:applicationId>
         <ebiz:lookupKey>Salesforce</ebiz:lookupKey>
         <ebiz:base64String>f050411********4110551111</ebiz:base64String>
      </ebiz:AddApplicationData>
   </soapenv:Body>
</soapenv:Envelope>

Response: 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <AddApplicationDataResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
         <AddApplicationDataResult>
            <ApplicationDataInternalId>********-affe-4fa6-a6c3-********</ApplicationDataInternalId>
            <Status>Success</Status>
            <StatusCode>1</StatusCode>
            <Error />
            <ErrorCode>0</ErrorCode>
         </AddApplicationDataResult>
      </AddApplicationDataResponse>
   </s:Body>
</s:Envelope>
public void AddApplicationData()
        {
            eBizService apiClient = new eBizService();
            SecurityToken securityToken = new SecurityToken
            {
                SecurityId = "*******-c870-41b8-aa5c-********",
                UserId = "",
                Password = ""
            };
            var applicationId = "********-c2d7-4c37-80c7-********";
            var lookupKey = "Country";
            var base64String = "VVNB"; //Base64  encoded string
            var response = apiClient.AddApplicationData(securityToken,applicationId,lookupKey,base64String);
            Console.WriteLine(response.Status);
            Console.WriteLine(response.StatusCode);
            Console.WriteLine(response.Error);
            Console.WriteLine(response.ErrorCode);
            Console.ReadLine();
        }