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()
|
String |
getReturnUrl()
|
String |
getSignature()
|
String |
getUser()
|
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 |
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 |
user
protected String user
password
protected String password
signature
protected String signature
libVersion
protected String libVersion
returnUrl
protected String returnUrl
cancelUrl
protected String cancelUrl
additionalConfig
protected Map<String,String> additionalConfig
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)
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
Copyright © 2012. All Rights Reserved.