CreditCardData
This object contains credit card-specific information for a transaction.
Description
When retrieving stored credit card data from the gateway, many of the properties (such as CardNumber, CardExpiration, and MagStripe) will be masked for security reasons. Full, unmasked credit card data cannot be retrieved via the SOAP API.
Properties
Type | Name | Description |
---|---|---|
string | CardType | Describes card issuer (Visa, MC, Amex, Discover). Read-only property (ignored if sent as a parameter to transaction methods). required) |
string | CardNumber | Card number. (required) |
string | CardExpiration | Expiration date. Should be set to 4 digits (MMYY). (required) |
string | CardCode | CVV2/CID card code value from back of card. Set to -2 if the code is not legible; -9 if the code is not on the card. (optional) |
string | AvsStreet | Billing address associated with card, used by AVS. |
string | AvsZip | Billing zip code associated with card, used by AVS. |
string | MagStripe | Raw Track 1 and/or Track 2 data for swiped transactions. Base64 encode the raw data you are getting from the device (no need to parse it or clean it up), then put enc:// at the beginning and pass it the MagStripe field. |
string | DUKPT | DUKPT encrypted PIN block. Only required for PIN debit transactions. The first 16 characters are the encrypted PIN block, followed by the 6-character-long Key Set Identifier (KSID). The remaining characters are the PIN Pad serial number and transaction counter. |
string | Signature | Signature capture image. Base64-encoded. |
string | TermType | Terminal type (POS, StandAlone, Unattended, or Unkown). May be left blank if unknown. |
string | MagSupport | Indicates whether software has support for mag swipe (Yes, No, Unknown). |
boolean | CardPresent | Indicates if the card is present during the transaction (i.e., the card was swiped at a POS terminal). Used to indicate retail. (required) |
string | XID | XID value received from third-party Visa VPAS or MC UCAF. |
string | CAVV | CAVV value received from third-party Visa VPAS or MC UCAF. |
integer | ECI | ECI value. |
boolean | InternalCardAuth | Use gateway-based authentication for Visa VPAS or MC UCAF. (required) |
string | Pares | Pares returned by client after successful authentication. |
<?php
// for directions on how to set up the
// WSDL link and create "$token" and "$client,"
// see: http://wiki.eBizCharge.com/developer/soap/howto/php
$CreditCardData=array(
'CardNumber' => '4444555566667779',
'CardExpiration' => '0909',
'AvsStreet' => '1234 Main Street',
'AvsZip' => '99281',
'CardCode' => '999'
);
$Request=array(
'AccountHolder' => 'Example Creator',
'ClientIP' => '123.123.123.123',
'CustomerID' => '123456',
'Command' => 'Sale',
'Details' => array(
'Amount' => '29.00',
'Clerk' => 'John Doe',
'Currency' => '0',
'Description' => 'Example for CreditCardData object',
'Discount' => '1.00',
'Invoice' => '44539'),
'CreditCardData' => $CreditCardData
);
$Response=$this->client->runTransaction($this->token, $Request);
$TransactionObject=$this->client->getTransaction($this->token, $Response->RefNum);
echo $TransactionObject->CreditCardData->AvsZip;
?>
eBizCharge.TransactionRequestObject tran = new eBizCharge.TransactionRequestObject();
tran.CreditCardData = new eBizCharge.CreditCardData();
tran.CreditCardData.CardNumber = "4444555566667779";
tran.CreditCardData.CardExpiration = "0909";
<CreditCardData xsi:t
ype="ns1:CreditCardData">
<AvsStreet xsi:type="xsd:string">1234 Main Street</AvsStreet>
<AvsZip xsi:type="xsd:string">99281</AvsZip>
<CardCode xsi:type="xsd:string">XXX</CardCode>
<CardExpiration xsi:type="xsd:string">XXXX</CardExpiration>
<CardNumber xsi:type="xsd:string">XXXXXXXXXXXX7779</CardNumber>
<CardPresent xsi:type="xsd:boolean">false</CardPresent>
<CardType xsi:type="xsd:string">V</CardType>
<InternalCardAuth xsi:type="xsd:boolean">false</InternalCardAuth>
<MagStripe xsi:type="xsd:string"></MagStripe>
<MagSupport xsi:type="xsd:string"></MagSupport>
<Pares xsi:type="xsd:string"></Pares>
<TermType xsi:type="xsd:string"></TermType>
</CreditCardData>
Updated over 5 years ago