org.broadleafcommerce.vendor.paypal.service.payment
Class PayPalRequestGeneratorImpl
java.lang.Object
org.broadleafcommerce.vendor.paypal.service.payment.PayPalRequestGeneratorImpl
- All Implemented Interfaces:
- PayPalRequestGenerator
public class PayPalRequestGeneratorImpl
- extends Object
- implements PayPalRequestGenerator
- Author:
- Jeff Fischer
|
Method Summary |
List<org.apache.commons.httpclient.NameValuePair> |
buildRequest(PayPalRequest request)
|
Map<String,String> |
getAdditionalConfig()
|
String |
getCancelUrl()
|
String |
getLibVersion()
|
String |
getPassword()
|
protected String |
getRequestedServerPrefix()
|
String |
getReturnUrl()
|
String |
getShippingDisplayType()
|
String |
getSignature()
|
String |
getUser()
|
Boolean |
getUseRelativeUrls()
|
protected String |
handleZeroConversionForMoney(org.broadleafcommerce.common.money.Money money)
|
protected String |
replaceNumericBoundProperty(String property,
Integer[] number,
String[] positions)
|
void |
setAdditionalConfig(Map<String,String> additionalConfig)
|
protected void |
setBaseNvps(List<org.apache.commons.httpclient.NameValuePair> nvps)
|
void |
setCancelUrl(String cancelUrl)
|
protected void |
setCostNvps(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalPaymentRequest paymentRequest)
|
void |
setLibVersion(String libVersion)
|
protected void |
setNvpsForCapture(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalPaymentRequest paymentRequest)
|
protected void |
setNvpsForCheckoutOrAuth(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalPaymentRequest paymentRequest,
String payPalAction)
|
protected void |
setNvpsForDetails(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalDetailsRequest paymentRequest)
|
protected void |
setNvpsForProcess(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalPaymentRequest paymentRequest)
|
protected void |
setNvpsForRefund(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalPaymentRequest paymentRequest)
|
protected void |
setNvpsForVoid(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalPaymentRequest paymentRequest)
|
void |
setPassword(String password)
|
void |
setReturnUrl(String returnUrl)
|
void |
setShippingDisplayType(String shippingDisplayType)
|
protected void |
setShippingNvps(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalPaymentRequest paymentRequest)
|
void |
setSignature(String signature)
|
void |
setUser(String user)
|
void |
setUseRelativeUrls(Boolean useRelativeUrls)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
user
protected String user
password
protected String password
signature
protected String signature
libVersion
protected String libVersion
useRelativeUrls
protected Boolean useRelativeUrls
returnUrl
protected String returnUrl
cancelUrl
protected String cancelUrl
shippingDisplayType
protected PayPalShippingDisplayType shippingDisplayType
additionalConfig
protected Map<String,String> additionalConfig
logger
protected org.apache.log4j.Logger logger
PayPalRequestGeneratorImpl
public PayPalRequestGeneratorImpl()
buildRequest
public List<org.apache.commons.httpclient.NameValuePair> buildRequest(PayPalRequest request)
- Specified by:
buildRequest in interface PayPalRequestGenerator
setNvpsForDetails
protected void setNvpsForDetails(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalDetailsRequest paymentRequest)
setNvpsForVoid
protected void setNvpsForVoid(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalPaymentRequest paymentRequest)
setNvpsForCapture
protected void setNvpsForCapture(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalPaymentRequest paymentRequest)
setNvpsForRefund
protected void setNvpsForRefund(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalPaymentRequest paymentRequest)
setNvpsForProcess
protected void setNvpsForProcess(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalPaymentRequest paymentRequest)
setBaseNvps
protected void setBaseNvps(List<org.apache.commons.httpclient.NameValuePair> nvps)
setNvpsForCheckoutOrAuth
protected void setNvpsForCheckoutOrAuth(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalPaymentRequest paymentRequest,
String payPalAction)
setCostNvps
protected void setCostNvps(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalPaymentRequest paymentRequest)
setShippingNvps
protected void setShippingNvps(List<org.apache.commons.httpclient.NameValuePair> nvps,
PayPalPaymentRequest paymentRequest)
handleZeroConversionForMoney
protected String handleZeroConversionForMoney(org.broadleafcommerce.common.money.Money money)
replaceNumericBoundProperty
protected String replaceNumericBoundProperty(String property,
Integer[] number,
String[] positions)
getRequestedServerPrefix
protected String getRequestedServerPrefix()
getAdditionalConfig
public Map<String,String> getAdditionalConfig()
- Specified by:
getAdditionalConfig in interface PayPalRequestGenerator
setAdditionalConfig
public void setAdditionalConfig(Map<String,String> additionalConfig)
- Specified by:
setAdditionalConfig in interface PayPalRequestGenerator
getCancelUrl
public String getCancelUrl()
- Specified by:
getCancelUrl in interface PayPalRequestGenerator
setCancelUrl
public void setCancelUrl(String cancelUrl)
- Specified by:
setCancelUrl in interface PayPalRequestGenerator
getLibVersion
public String getLibVersion()
- Specified by:
getLibVersion in interface PayPalRequestGenerator
setLibVersion
public void setLibVersion(String libVersion)
- Specified by:
setLibVersion in interface PayPalRequestGenerator
getPassword
public String getPassword()
- Specified by:
getPassword in interface PayPalRequestGenerator
setPassword
public void setPassword(String password)
- Specified by:
setPassword in interface PayPalRequestGenerator
getReturnUrl
public String getReturnUrl()
- Specified by:
getReturnUrl in interface PayPalRequestGenerator
setReturnUrl
public void setReturnUrl(String returnUrl)
- Specified by:
setReturnUrl in interface PayPalRequestGenerator
getSignature
public String getSignature()
- Specified by:
getSignature in interface PayPalRequestGenerator
setSignature
public void setSignature(String signature)
- Specified by:
setSignature in interface PayPalRequestGenerator
getUser
public String getUser()
- Specified by:
getUser in interface PayPalRequestGenerator
setUser
public void setUser(String user)
- Specified by:
setUser in interface PayPalRequestGenerator
getShippingDisplayType
public String getShippingDisplayType()
- Specified by:
getShippingDisplayType in interface PayPalRequestGenerator
setShippingDisplayType
public void setShippingDisplayType(String shippingDisplayType)
- Specified by:
setShippingDisplayType in interface PayPalRequestGenerator
getUseRelativeUrls
public Boolean getUseRelativeUrls()
- Specified by:
getUseRelativeUrls in interface PayPalRequestGenerator
setUseRelativeUrls
public void setUseRelativeUrls(Boolean useRelativeUrls)
- Specified by:
setUseRelativeUrls in interface PayPalRequestGenerator
Copyright © 2013. All Rights Reserved.