Transact3


Click here for a complete list of operations.

GenerateCardToken

Generate Card Token - Reserved for later use.
UserName : ID of authorized SecureDecrypt user making request
Password : Password of authorized SecureDecrypt user making request
CardNumber : Card Number to tokenize
ExtData : Additional, device-specific data in XML format
Returned Values
<TokenResponse>
   <Result></Result>
   <Message></Message>
   <Token>{Tokenized Card Number}</Token>
</TokenResponse>

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
UserName:
Password:
CardNumber:
ExtData:

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /SmartPayments/transact3.asmx HTTP/1.1
Host: gateway.itstgate.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://TPISoft.com/SmartPayments/GenerateCardToken"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GenerateCardToken xmlns="http://TPISoft.com/SmartPayments/">
      <UserName>string</UserName>
      <Password>string</Password>
      <CardNumber>string</CardNumber>
      <ExtData>string</ExtData>
    </GenerateCardToken>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GenerateCardTokenResponse xmlns="http://TPISoft.com/SmartPayments/">
      <GenerateCardTokenResult>
        <Result>int</Result>
        <Message>string</Message>
        <Message2>string</Message2>
        <Token>string</Token>
      </GenerateCardTokenResult>
    </GenerateCardTokenResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /SmartPayments/transact3.asmx HTTP/1.1
Host: gateway.itstgate.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GenerateCardToken xmlns="http://TPISoft.com/SmartPayments/">
      <UserName>string</UserName>
      <Password>string</Password>
      <CardNumber>string</CardNumber>
      <ExtData>string</ExtData>
    </GenerateCardToken>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GenerateCardTokenResponse xmlns="http://TPISoft.com/SmartPayments/">
      <GenerateCardTokenResult>
        <Result>int</Result>
        <Message>string</Message>
        <Message2>string</Message2>
        <Token>string</Token>
      </GenerateCardTokenResult>
    </GenerateCardTokenResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /SmartPayments/transact3.asmx/GenerateCardToken?UserName=string&Password=string&CardNumber=string&ExtData=string HTTP/1.1
Host: gateway.itstgate.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<TokenResponse xmlns="http://TPISoft.com/SmartPayments/">
  <Result>int</Result>
  <Message>string</Message>
  <Message2>string</Message2>
  <Token>string</Token>
</TokenResponse>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /SmartPayments/transact3.asmx/GenerateCardToken HTTP/1.1
Host: gateway.itstgate.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

UserName=string&Password=string&CardNumber=string&ExtData=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<TokenResponse xmlns="http://TPISoft.com/SmartPayments/">
  <Result>int</Result>
  <Message>string</Message>
  <Message2>string</Message2>
  <Token>string</Token>
</TokenResponse>