Class PurchaseCard
CardTender-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGenerate the Transaction request.getAcct()gets the Account holder's account number.Gets the cardIssueGets the cardOnFileGets the cardStartprotected ContextgetCvv2()Gets the CVV2 value.getMagTek(MagTekInfo mT) getName()gets the account holder's name.getParId()Gets the parprotected StringBufferGets the Requestbuffer used for creating the actual request string.getTxId()Gets the TxIdvoidsetCardIssue(String cardIssue) Sets the cardIssuevoidsetCardOnFile(String cardOnFile) Sets the cardOnFilevoidsetCardStart(String cardStart) Sets the cardStartprotected voidsetContext(Context context) voidSets the CVV2 value.voidgets the MagTek Encrypted Swipe Data.voidgets the account holder's name.voidSets the Payment Account Reference.protected voidsetRequestBuffer(StringBuffer value) sets the StringBuffer to hold the request string.voidSets the Transaction Id (stored credential).
-
Constructor Details
-
PurchaseCard
- Parameters:
acct- Purchase Card numberexpDate- Card expiry date (format mmyy)cardType- Purchase Card type (P - Personal, C - Corprate, B - Business) *Maps to Payflow Parameter: ACCT , EXPDATE , COMMCARD *
//Create the PaymentDevice object PurchaseCard payDevice = new PurchaseCard("XXXXXXXXXX","XXXX","C");
-
-
Method Details
-
generateRequest
protected void generateRequest()Generate the Transaction request. Overrides PaymentCard.generateRequest() -
getCvv2
Gets the CVV2 value. Card validation code. This is the 3 or 4 digit code present at the back side of the card.- Returns:
- CVV2 value
*
Maps to Payflow Parameters as follows: CVV2
-
setCvv2
Sets the CVV2 value. Card validation code. This is the 3 or 4 digit code present at the back side of the card.- Parameters:
cvv2- CVV2 value *Maps to Payflow Parameters as follows: CVV2
-
getCardIssue
Gets the cardIssueUsed in Switch/Solo cards
- Returns:
- cardIssue String
*
Maps to Payflow Parameter : CARDISSUE
-
setCardIssue
Sets the cardIssueUsed in Switch/Solo cards
- Parameters:
cardIssue- String *Maps to Payflow Parameter : CARDISSUE
-
getCardStart
Gets the cardStartUsed in Switch/Solo cards
- Returns:
- cardStart String
*
Maps to Payflow Parameter : CARDSTART
-
setCardStart
Sets the cardStartUsed in Switch/Solo cards
- Parameters:
cardStart- String *Maps to Payflow Parameter : CARDSTART
-
getCardOnFile
Gets the cardOnFileUsed to store credit card (stored credential)
- Returns:
- cardOnFile String
*
Maps to Payflow Parameter : CARDONFILE
-
setCardOnFile
Sets the cardOnFileUsed to store credit card (stored credential)
- Parameters:
cardOnFile- String *Maps to Payflow Parameter : CARDONFILE
-
getTxId
Gets the TxIdThe transaction Id to reference a stored credential.
- Returns:
- txId String
*
Maps to Payflow Parameter : TXID
-
setTxId
Sets the Transaction Id (stored credential).The transaction Id to reference a stored credential.
- Parameters:
txId- String *Maps to Payflow Parameter : TXID
-
getParId
Gets the parunique Primary Account Number (PAN)
- Returns:
- par String
*
Maps to Payflow Parameter : PAR
-
setPar
Sets the Payment Account Reference.A non-financial reference number assigned to each unique Primary Account Number (PAN) and mapped to all its affiliated Payment Tokens.
- Parameters:
par- String *Maps to Payflow Parameter : PAR
-
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
-