Package paypal.payflow
Class CardTender
java.lang.Object
paypal.payflow.BaseTender
paypal.payflow.CardTender
Used for Card tender related information.
CreditCard, PurchaseCard and SwipeCard are the Payment devices associated with this tender type.
CreditCard
PurchaseCard
SwipeCard-
Constructor Summary
ConstructorsConstructorDescriptionCardTender(CreditCard card) This constructor is used to create a CardTender with CreditCard as the payment deviceCardTender(PurchaseCard purCard) This constructor is used to create a CardTender with PurchaseCard as the payment deviceCardTender(SwipeCard swpCard) This constructor is used to create a CardTender with SwipeCard as the payment device -
Method Summary
Modifier and TypeMethodDescriptionprotected Contextprotected StringBufferGets the Requestbuffer used for creating the actual request string.protected voidsetContext(Context context) protected voidsetRequestBuffer(StringBuffer value) sets the StringBuffer to hold the request string.Methods inherited from class paypal.payflow.BaseTender
generateRequest, getAuthType, getChkNum, getChkType, getDL, getSS, getTender, setAuthType, setChkNum, setChkType, setDL, setSS
-
Constructor Details
-
CardTender
This constructor is used to create a CardTender with CreditCard as the payment device- Parameters:
card- CreditCard Maps to Payflow Parameter: TENDER *............. //card is the populated CreditCard object. ............. *
//Create the Tender object CardTender tender = new CardTender(card);
-
CardTender
This constructor is used to create a CardTender with PurchaseCard as the payment device- Parameters:
purCard- PurchaseCard Maps to Payflow Parameter: TENDER *............. //purCard is the populated PurchaseCard object. ............. *
//Create the Tender object CardTender tender = new CardTender(purCard);
-
CardTender
This constructor is used to create a CardTender with SwipeCard as the payment device- Parameters:
swpCard- CardTender Maps to Payflow Parameter: TENDER *............. //swpCard is the populated SwipeCard object. ............. *
//Create the Tender object CardTender tender = new CardTender(swpCard);
-
-
Method Details
-
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
-