org.broadleafcommerce.vendor.paypal.service.payment
Class PayPalRequestGeneratorImpl

java.lang.Object
  extended by org.broadleafcommerce.vendor.paypal.service.payment.PayPalRequestGeneratorImpl
All Implemented Interfaces:
PayPalRequestGenerator

public class PayPalRequestGeneratorImpl
extends Object
implements PayPalRequestGenerator

Author:
Jeff Fischer

Field Summary
protected  Map<String,String> additionalConfig
           
protected  String cancelUrl
           
protected  String libVersion
           
protected  String password
           
protected  String returnUrl
           
protected  PayPalShippingDisplayType shippingDisplayType
           
protected  String signature
           
protected  String user
           
 
Constructor Summary
PayPalRequestGeneratorImpl()
           
 
Method Summary
 List<org.apache.commons.httpclient.NameValuePair> buildRequest(PayPalRequest request)
           
 Map<String,String> getAdditionalConfig()
           
 String getCancelUrl()
           
 String getLibVersion()
           
 String getPassword()
           
 String getReturnUrl()
           
 String getShippingDisplayType()
           
 String getSignature()
           
 String getUser()
           
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

user

protected String user

password

protected String password

signature

protected String signature

libVersion

protected String libVersion

returnUrl

protected String returnUrl

cancelUrl

protected String cancelUrl

shippingDisplayType

protected PayPalShippingDisplayType shippingDisplayType

additionalConfig

protected Map<String,String> additionalConfig
Constructor Detail

PayPalRequestGeneratorImpl

public PayPalRequestGeneratorImpl()
Method Detail

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)

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


Copyright © 2012. All Rights Reserved.