getCreditCardToken

Retrieve card info using token.

Syntax

TransactionObject getCreditCardToken ( ueSecurityToken Token, string CardRef )

Arguments

Type Name Description
ueSecurityToken Token Merchant security token: used to identify merchant and validate transaction.
string CardRef Unique token representing card

Return Value

Type Description
CreditCardToken Returns object containing card token data (including card ref)

Examples

PHP

For directions on how to set up the WSDL link, create "$token" and "$client", go to PHP Soap How-to.



    try {
      $CardRef="ifhvz42iz6kg49qi";

      $res=$client->getCreditCardToken($token, $CardRef);
      print_r($res);

    }

    catch (SoapFault $e){
      die("getCreditCardToken failed :" .$e->getMessage());
    }

XML

Request:

<?xml version="1.0" encoding="UTF-8"?>
   <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:usaepay" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <SOAP-ENV:Body>
         <ns1:getCreditCardToken>
            <Token xsi:type="ns1:ueSecurityToken">
               <ClientIP xsi:type="xsd:string">123.123.123.123</ClientIP>
               <PinHash xsi:type="ns1:ueHash">
                  <HashValue xsi:type="xsd:string">31a3b09805e0f55e210dc5bf0e978a3456b8d121fdfbbfd30d02a6610ddcb31e</HashValue>
                  <Seed xsi:type="xsd:string">15390164391550852671sadfpouhasodf8uh</Seed>
                  <Type xsi:type="xsd:string">sha256</Type>
               </PinHash>
               <SourceKey xsi:type="xsd:string">chwl7EPgI56G8X76a0ME509Vc2z3BGge</SourceKey>
            </Token>
            <CardRef xsi:type="xsd:string">ifhvz42iz6kg49qi</CardRef>
         </ns1:getCreditCardToken>
      </SOAP-ENV:Body>
   </SOAP-ENV:Envelope>

Response:

<?xml version="1.0" encoding="UTF-8"?>
   <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:usaepay" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <SOAP-ENV:Body>
         <ns1:getCreditCardTokenResponse>
            <getCreditCardTokenReturn xsi:type="ns1:CreditCardToken">
               <CardRef xsi:type="xsd:string">ifhv-z42i-z6kg-49qi</CardRef>
               <CardExpiration xsi:type="xsd:string">2020-09</CardExpiration>
               <CardNumber xsi:type="xsd:string">XXXXXXXXXXXX7779</CardNumber>
               <CardType xsi:type="xsd:string">Visa</CardType>
            </getCreditCardTokenReturn>
         </ns1:getCreditCardTokenResponse>
      </SOAP-ENV:Body>
   </SOAP-ENV:Envelope>

Change Log

Version Change
1.7 Added Method