Package paypal.payflow
Class ExpressCheckoutRequest
java.lang.Object
paypal.payflow.ExpressCheckoutRequest
- Direct Known Subclasses:
ECDoRequest,ECGetRequest,ECSetRequest,ECUpdateBARequest
This class serves as base class of all ExpressCheckout request classes.
Each request object is associated with a particular type of expressChecout operation.
Following are the request objects associated with different operations of ExpressCheckout:
*
ExpressCheckout operation. Request data object
SET operation for ExpressCheckout ExpressCheckoutResponse
GET operation for ExpressCheckout ECGetResponse
DO operation for ExpressCheckout ECDoResponse
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExpressCheckoutRequest(String Action) protectedExpressCheckoutRequest(String Action, String Token) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected ContextGets the recountryCodeturnurl parameter.Gets the doReauthorization parameter.Gets the postalCode parameter.protected StringBufferGets the Requestbuffer used for creating the actual request string.getToken()Gets the token parameter.protected voidsetContext(Context context) voidsetCountryCode(String countryCode) Sets the countryCode parameter.voidsetDoReauthorization(String doReauthorization) Sets the postalCode parameter.voidsetPostalCode(String postalCode) Sets the postalCode parameter.protected voidsetRequestBuffer(StringBuffer value) sets the StringBuffer to hold the request string.voidSets the token parameter.
-
Constructor Details
-
ExpressCheckoutRequest
-
ExpressCheckoutRequest
-
-
Method Details
-
getToken
Gets the token parameter.- Returns:
- - String
Maps to Payflow Parameter: TOKEN
-
setToken
Sets the token parameter.- Parameters:
token- - StringMaps to Payflow Parameter: TOKEN
-
getCountryCode
Gets the recountryCodeturnurl parameter.- Returns:
- - String
Maps to Payflow Parameter: COUNTRYCODE
-
setCountryCode
Sets the countryCode parameter.- Parameters:
countryCode- - StringMaps to Payflow Parameter: COUNTRYCODE
-
getPostalCode
Gets the postalCode parameter.- Returns:
- - String
Maps to Payflow Parameter: POSTALCODE
-
setPostalCode
Sets the postalCode parameter.- Parameters:
postalCode- - StringMaps to Payflow Parameter: POSTALCODE
-
getDoReauthorization
Gets the doReauthorization parameter.- Returns:
- - String
Maps to Payflow Parameter: DOREAUTHORIZATION
-
setDoReauthorization
Sets the postalCode parameter.- Parameters:
doReauthorization- - StringMaps to Payflow Parameter: DOREAUTHORIZATION
-
generateRequest
protected void generateRequest() -
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
-