Class ECSetRequest
- Direct Known Subclasses:
ECSetBARequest
ECGetRequest
ECDoRequest-
Constructor Summary
ConstructorsModifierConstructorDescriptionECSetRequest(String ReturnUrl, String CancelUrl) Constructor for ECSetRequestECSetRequest(String ReturnUrl, String CancelUrl, String BillingType, String BA_Desc, String PaymentType, String BA_Custom) Constructor for ECSetRequestprotectedECSetRequest(String ReturnUrl, String CancelUrl, String BillingType, String BA_Desc, String PaymentType, String BA_Custom, String Action) ECSetRequest(String ReturnUrl, String CancelUrl, PayLater PayLater) Constructor for ECSetRequest -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGets the addrOverride parameter.Gets the allowNote parameter.Gets the paymentType parameter.Gets the ba_Desc parameter.Gets the noShipping parameter.Gets the cancelUrl parameter.protected ContextGets the headerBackColor parameter.Gets the headerBorderColor parameter.Gets the HeaderImg parameter.Gets the localecode parameter.Gets the maxAmt parameter.Gets the noShipping parameter.Gets the pageStyle parameter.Gets the payFlowColor parameter.Gets the paymentType parameter.Gets the reqBillingAddress parameter.Gets the reqConfirmShipping parameter.protected StringBufferGets the Requestbuffer used for creating the actual request string.Gets the returnurl parameter.Gets the shiptoName parameter.voidsetAddrOverride(String addrOverride) Sets the addrOverride parameter.voidsetallowNote(String allowNote) Sets the allowNote parameter.voidsetba_Custom(String ba_Custom) Sets the paymentType parameter.voidsetba_Desc(String ba_Desc) Sets the billingType parameter.voidsetbillingType(String billingType) Sets the billingType parameter.voidsetCancelUrl(String cancelUrl) Sets the cancelUrl parameter.protected voidsetContext(Context context) voidsetHeaderBackColor(String headerBackColor) Sets the headerBackColor parameter.voidsetHeaderBorderColor(String headerBorderColor) Sets the headerBorderColor parameter.voidsetHeaderImg(String headerImg) Sets the HeaderImg parameter.voidsetLocalecode(String localecode) Sets the localecode parameter.voidSets the maxAmt parameter.voidsetNoShipping(String noShipping) Sets the noShipping parameter.voidsetPageStyle(String pageStyle) Sets the pageStyle parameter.voidsetPayFlowColor(String payFlowColor) Sets the payFlowColor parameter.voidsetpaymentType(String paymentType) Sets the paymentType parameter.voidsetReqBillingAddress(String reqBillingAddress) Sets the reqBillingAddress parameter.voidsetReqConfirmShipping(String reqConfirmShipping) Sets the reqConfirmShipping parameter.protected voidsetRequestBuffer(StringBuffer value) sets the StringBuffer to hold the request string.voidsetReturnUrl(String returnUrl) Sets the Returnurl parameter.voidsetshiptoName(String shiptoName) Sets the shiptoName parameter.Methods inherited from class paypal.payflow.ExpressCheckoutRequest
getCountryCode, getDoReauthorization, getPostalCode, getToken, setCountryCode, setDoReauthorization, setPostalCode, setToken
-
Constructor Details
-
ECSetRequest
Constructor for ECSetRequest- Parameters:
ReturnUrl- - StringCancelUrl- - StringECSetRequest is used to set the data required for a Express Checkout SET operation. .............
//Create the ECSetRequest object ECSetRequest setEC = new ECSetRequest("http://www.yourwebsitereturnurl.com","http://www.yourwebsitecancelurl.com"); .............
-
ECSetRequest
Constructor for ECSetRequest- Parameters:
ReturnUrl- - StringCancelUrl- - StringPayLater- - String ECSetRequest is used to set the data required for a Express Checkout SET operation. .............//Create the ECSetRequest object ECSetRequest setEC = new ECSetRequest("http://www.yourwebsitereturnurl.com","http://www.yourwebsitecancelurl.com"); .............
-
ECSetRequest
public ECSetRequest(String ReturnUrl, String CancelUrl, String BillingType, String BA_Desc, String PaymentType, String BA_Custom) Constructor for ECSetRequest- Parameters:
ReturnUrl- - StringCancelUrl- - StringBillingType- - StringBA_Desc- - StringPaymentType- - StringBA_Custom- - String ECSetRequest is used to set the data required for a Express Checkout SET operation for Reference Transactions with Purchase. .............//Create the ECSetRequest object ECSetRequest setEC = new ECSetRequest("http://www.yourwebsitereturnurl.com","http://www.yourwebsitecancelurl.com", "MerchantInitiatedBilling", "Test Transaction", "any", "Something"); .............
-
ECSetRequest
-
-
Method Details
-
getReturnUrl
Gets the returnurl parameter.- Returns:
- - String
Maps to Payflow Parameter: RETURNURL
-
setReturnUrl
Sets the Returnurl parameter.- Parameters:
returnUrl- - StringMaps to Payflow Parameter: RETURNURL
-
getCancelUrl
Gets the cancelUrl parameter.- Returns:
- - String
Maps to Payflow Parameter: CANCELURL
-
setCancelUrl
Sets the cancelUrl parameter.- Parameters:
cancelUrl- - StringMaps to Payflow Parameter: CANCELURL
-
getReqConfirmShipping
Gets the reqConfirmShipping parameter.- Returns:
- - String
Maps to Payflow Parameter: REQCONFIRMSHIPPING
-
setReqBillingAddress
Sets the reqBillingAddress parameter.- Parameters:
reqBillingAddress- - StringMaps to Payflow Parameter: REQBILLNGADDRESS
-
getReqBillingAddress
Gets the reqBillingAddress parameter.- Returns:
- - String
Maps to Payflow Parameter: REQBILLNGADDRESS
-
setReqConfirmShipping
Sets the reqConfirmShipping parameter.- Parameters:
reqConfirmShipping- - StringMaps to Payflow Parameter: REQCONFIRMSHIPPING
-
getNoShipping
Gets the noShipping parameter.- Returns:
- - String
Maps to Payflow Parameter: NOSHIPPING
-
setNoShipping
Sets the noShipping parameter.- Parameters:
noShipping- - StringMaps to Payflow Parameter: NOSHIPPING
-
getAddrOverride
Gets the addrOverride parameter.- Returns:
- - String
Maps to Payflow Parameter: ADDOVERRIDE
-
setAddrOverride
Sets the addrOverride parameter.- Parameters:
addrOverride- - StringMaps to Payflow Parameter: ADDROVERRIDE
-
getLocalecode
Gets the localecode parameter.- Returns:
- - String
Maps to Payflow Parameter: LOCALECODE
-
setLocalecode
Sets the localecode parameter.- Parameters:
localecode- - StringMaps to Payflow Parameter: LOCALECODE
-
getMaxAmt
Gets the maxAmt parameter.- Returns:
- - currency
Maps to Payflow Parameter: MAXAMT
-
setMaxAmt
Sets the maxAmt parameter.- Parameters:
maxAmt- - CurrencyMaps to Payflow Parameter: MAXAMT
-
getPageStyle
Gets the pageStyle parameter.- Returns:
- - String
Maps to Payflow Parameter: PAGESTYLE
-
setPageStyle
Sets the pageStyle parameter.- Parameters:
pageStyle- - StringMaps to Payflow Parameter: PAGESTYLE
-
getHeaderImg
Gets the HeaderImg parameter.- Returns:
- - String
Maps to Payflow Parameter: HDRIMG
-
setHeaderImg
Sets the HeaderImg parameter.- Parameters:
headerImg- - StringMaps to Payflow Parameter: HDRIMG
-
getHeaderBorderColor
Gets the headerBorderColor parameter.- Returns:
- - String
Maps to Payflow Parameter: HDRBORDERCOLOR
-
setHeaderBorderColor
Sets the headerBorderColor parameter.- Parameters:
headerBorderColor- - StringMaps to Payflow Parameter: HDRBORDERCOLOR
-
getHeaderBackColor
Gets the headerBackColor parameter.- Returns:
- - headerBackColor String
Maps to Payflow Parameter: HDRBACKCOLOR
-
setHeaderBackColor
Sets the headerBackColor parameter.- Parameters:
headerBackColor- - StringMaps to Payflow Parameter: HDRBACKCOLOR
-
getPayFlowColor
Gets the payFlowColor parameter.- Returns:
- - String
Maps to Payflow Parameter: PAYFLOWCOLOR
-
setPayFlowColor
Sets the payFlowColor parameter.- Parameters:
payFlowColor- - StringMaps to Payflow Parameter: PAYFLOWCOLOR
-
getba_Custom
Gets the paymentType parameter.- Returns:
- - String
Maps to Payflow Parameter: BA_CUSTOM
-
setba_Custom
Sets the paymentType parameter.- Parameters:
ba_Custom- - StringMaps to Payflow Parameter: BA_CUSTOM
-
getpaymentType
Gets the paymentType parameter.- Returns:
- - String
Maps to Payflow Parameter: PAYMENTTYPE
-
setpaymentType
Sets the paymentType parameter.- Parameters:
paymentType- - StringMaps to Payflow Parameter: PAYMENTTYPE
-
getba_Desc
Gets the ba_Desc parameter.- Returns:
- - String
Maps to Payflow Parameter: BA_DESC
-
setba_Desc
Sets the billingType parameter.- Parameters:
ba_Desc- - StringMaps to Payflow Parameter: BA_DESC
-
getbillingType
Gets the noShipping parameter.- Returns:
- - String
Maps to Payflow Parameter: NOSHIPPING
-
setbillingType
Sets the billingType parameter.- Parameters:
billingType- - StringMaps to Payflow Parameter: BILLINGTYPE
-
getshiptoName
Gets the shiptoName parameter.- Returns:
- - string
Maps to Payflow Parameter: SHIPTONAME
-
setshiptoName
Sets the shiptoName parameter.- Parameters:
shiptoName- - StringMaps to Payflow Parameter: SHIPTONAME
-
getallowNote
Gets the allowNote parameter.- Returns:
- - string
Maps to Payflow Parameter: ALLOWNOTE
-
setallowNote
Sets the allowNote parameter.- Parameters:
allowNote- - StringMaps to Payflow Parameter: ALLOWNOTE
-
generateRequest
protected void generateRequest()- Overrides:
generateRequestin classExpressCheckoutRequest
-
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
-