Package paypal.payflow
Class PayPalTender
java.lang.Object
paypal.payflow.BaseTender
paypal.payflow.PayPalTender
Used for PayPal tender related information.
This tender takes in ExpressCheckoutRequest
ExpressCheckoutRequest
or a CreditCard CreditCard depending on the type of transaction.
This can be used for ExpressCheckout as well as Direct payments.-
Constructor Summary
ConstructorsConstructorDescriptionPayPalTender(CreditCard creditCard) This constructor is used to create a PayPalTender with CreditCard as the payment deviceThis constructor is used to create a PayPalTender with ExpressCheckoutRequest.This is used for a ExpressCheckout transaction. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGenerates the transaction request.protected 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
getAuthType, getChkNum, getChkType, getDL, getSS, getTender, setAuthType, setChkNum, setChkType, setDL, setSS
-
Constructor Details
-
PayPalTender
This constructor is used to create a PayPalTender with CreditCard as the payment device- Parameters:
creditCard- CreditCard Maps to Payflow Parameter: TENDER *............. //creditCard is the populated CreditCard object. ............. *
//Create the Tender object PayPalTender tender = new PayPalTender(creditCard);
-
PayPalTender
This constructor is used to create a PayPalTender with ExpressCheckoutRequest.This is used for a ExpressCheckout transaction.- Parameters:
ecReq- ExpressCheckoutRequest Maps to Payflow Parameter: TENDER *............. //ecReq is the populated ExpressCheckoutRequest object. ............. *
//Create the Tender object PayPalTender tender = new PayPalTender(ecReq);
-
-
Method Details
-
generateRequest
protected void generateRequest()Description copied from class:BaseTenderGenerates the transaction request.- Overrides:
generateRequestin classBaseTender
-
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
-