Package paypal.payflow
Class SwipeCard
java.lang.Object
paypal.payflow.SwipeCard
Used for swipe card information
*
Used to pass the Track 1 or Track 2 data (the card's magnetic stripe information) for card-present transactions. Include either Track 1 or Track 2 data'not both. If Track 1 is physically damaged, the POS application can send Track 2 data instead. *
SwipeCard is associated with CardTender. CardTender
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGenerates the transaction request.getAcct()gets the Account holder's account number.protected ContextgetMagTek(MagTekInfo mT) getName()gets the account holder's name.protected StringBufferGets the Requestbuffer used for creating the actual request string.protected voidsetContext(Context context) voidgets the MagTek Encrypted Swipe Data.voidgets the account holder's name.protected voidsetRequestBuffer(StringBuffer value) sets the StringBuffer to hold the request string.
-
Constructor Details
-
SwipeCard
Constructor for SwipeCard- Parameters:
swipe- Card Swipe value *This is used as Payment Device for the CardTender.
Maps to Payflow Parameter: SWIPE *
//Create the SwipeCard object SwipeCard payDevice = new SwipeCard("XXXXXXXXXXXXXXXXXXXXXXXXXXX");
-
-
Method Details
-
generateRequest
protected void generateRequest()Generates the transaction request. -
getAcct
gets the Account holder's account number.- Returns:
- String Maps to Payflow Parameters as follows: ACCT - Transactions with CreditCard, PurchaseCard, BankAcct payment devices MICR - Transactions with CheckPayment SWIPE - Transactions with SwipeCard
-
getName
gets the account holder's name.- Returns:
- String
*
Maps to Payflow Parameters as follows: NAME
-
setName
gets the account holder's name.- Parameters:
name- *Maps to Payflow Parameters as follows: NAME
-
getMagTek
-
setMagtek
gets the MagTek Encrypted Swipe Data.- Parameters:
magtek- Magtek Encrypted Swipe Data
-
getContext
-
setContext
-
getRequestBuffer
Gets the Requestbuffer used for creating the actual request string.- Returns:
- mRequestBuffer StringBuffer
-
setRequestBuffer
sets the StringBuffer to hold the request string.- Parameters:
value- StringBuffer
-