@Service(value="blPayPalCheckoutConfiguration") public class PayPalCheckoutConfigurationImpl extends org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfiguration implements PayPalCheckoutConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected int |
failureReportingThreshold |
protected boolean |
performAuthorizeAndCapture |
protected org.broadleafcommerce.common.config.service.SystemPropertiesService |
propertiesService |
protected org.broadleafcommerce.common.web.BaseUrlResolver |
urlResolver |
| Constructor and Description |
|---|
PayPalCheckoutConfigurationImpl() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAdditionalConfig()
See the PayPal API to see what additional configs you can set:
https://developer.paypal.com/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/
|
Map<String,String> |
getAdditionalCustomFields()
The Paypal NVP API only allows a single field with custom logic in it: PAYMENTREQUEST_n_CUSTOM.
|
String |
getCancelUrl()
URL to which the buyer is returned if the buyer does not approve the use of PayPal to pay you.
|
String |
getCheckoutRestClientId() |
String |
getCheckoutRestMode() |
String |
getCheckoutRestSecret() |
int |
getFailureReportingThreshold() |
org.broadleafcommerce.common.payment.PaymentGatewayType |
getGatewayType() |
String |
getPaymentDescription() |
String |
getReturnUrl()
URL to which the buyer's browser is returned after choosing to pay with PayPal.
|
PayPalShippingDisplayType |
getShippingDisplayType()
For digital goods, this field is required and must be set to 1.
|
String |
getSmartPaymentEnvironment() |
String |
getTotalType()
Type declaration for the label to be displayed in MiniCart for UX.
|
String |
getWebProfileId()
Gets the the property driven id of the WebProfile to be used when creating payments.
|
boolean |
handlesAuthorize() |
boolean |
handlesAuthorizeAndCapture() |
boolean |
handlesCapture() |
boolean |
handlesMultiplePayments() |
boolean |
handlesMultipleShipment() |
boolean |
handlesPartialCapture() |
boolean |
handlesRecurringPayment() |
boolean |
handlesRefund() |
boolean |
handlesReverseAuthorize() |
boolean |
handlesSavedCustomerPayment() |
boolean |
handlesVoid() |
boolean |
isPerformAuthorizeAndCapture() |
void |
setFailureReportingThreshold(int failureReportingThreshold) |
void |
setPerformAuthorizeAndCapture(boolean performAuthorizeAndCapture) |
protected org.broadleafcommerce.common.web.BaseUrlResolver urlResolver
@Autowired protected org.broadleafcommerce.common.config.service.SystemPropertiesService propertiesService
protected int failureReportingThreshold
protected boolean performAuthorizeAndCapture
public String getReturnUrl()
PayPalCheckoutConfigurationgetReturnUrl in interface PayPalCheckoutConfigurationpublic String getCancelUrl()
PayPalCheckoutConfigurationgetCancelUrl in interface PayPalCheckoutConfigurationpublic String getWebProfileId()
PayPalCheckoutConfigurationhttps://developer.paypal.com/docs/integration/direct/payment-experience/
PayPalWebProfileService#getWebProfileId() should be used instead if you want to find the web profile id to create a payment since it has the ability to create new WebProfiles based on injected beans along with using this methodgetWebProfileId in interface PayPalCheckoutConfigurationpublic String getPaymentDescription()
getPaymentDescription in interface PayPalCheckoutConfigurationpublic String getSmartPaymentEnvironment()
getSmartPaymentEnvironment in interface PayPalCheckoutConfigurationpublic PayPalShippingDisplayType getShippingDisplayType()
PayPalCheckoutConfigurationgetShippingDisplayType in interface PayPalCheckoutConfigurationpublic String getTotalType()
PayPalCheckoutConfigurationgetTotalType in interface PayPalCheckoutConfigurationpublic Map<String,String> getAdditionalConfig()
PayPalCheckoutConfigurationSee the PayPal API to see what additional configs you can set: https://developer.paypal.com/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/
e.g. Map
This adds additional NVP items to the Paypal request that are ONLY pre-specified in the Paypal API docs.
Any other fields will be ignored. If you want to use completely custom fields, see PayPalCheckoutConfiguration.getAdditionalCustomFields()
getAdditionalConfig in interface PayPalCheckoutConfigurationpublic Map<String,String> getAdditionalCustomFields()
PayPalCheckoutConfigurationThe Paypal NVP API only allows a single field with custom logic in it: PAYMENTREQUEST_n_CUSTOM. Because of this, all of the fields returned here are serialized together like so:
ccoc=true_12345|key1=value1|key2=value2|key3=value3
Note that Broadleaf uses a piece of this to determine if we should complete checkout on callback or not. This is done
as "ccoc=true_12345" where true is the value of PaymentRequestDTO.isCompleteCheckoutOnCallback(). So,
the minimum string that will be contained in the custom field is ccoc=true_12345, plus whatever other fields you have.
Also note that the entire custom field string after serialization is 256 characters. An IllegalArgumentException will be thrown otherwise.
getAdditionalCustomFields in interface PayPalCheckoutConfigurationpublic String getCheckoutRestClientId()
getCheckoutRestClientId in interface PayPalCheckoutConfigurationpublic String getCheckoutRestSecret()
getCheckoutRestSecret in interface PayPalCheckoutConfigurationpublic String getCheckoutRestMode()
getCheckoutRestMode in interface PayPalCheckoutConfigurationpublic boolean handlesAuthorize()
handlesAuthorize in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationhandlesAuthorize in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic boolean handlesCapture()
handlesCapture in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationhandlesCapture in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic boolean handlesAuthorizeAndCapture()
handlesAuthorizeAndCapture in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationhandlesAuthorizeAndCapture in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic boolean handlesReverseAuthorize()
handlesReverseAuthorize in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationhandlesReverseAuthorize in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic boolean handlesVoid()
handlesVoid in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationhandlesVoid in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic boolean handlesRefund()
handlesRefund in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationhandlesRefund in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic boolean handlesPartialCapture()
handlesPartialCapture in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationhandlesPartialCapture in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic boolean handlesMultipleShipment()
handlesMultipleShipment in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationhandlesMultipleShipment in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic boolean handlesRecurringPayment()
handlesRecurringPayment in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationhandlesRecurringPayment in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic boolean handlesSavedCustomerPayment()
handlesSavedCustomerPayment in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationhandlesSavedCustomerPayment in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic boolean isPerformAuthorizeAndCapture()
isPerformAuthorizeAndCapture in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationisPerformAuthorizeAndCapture in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic void setPerformAuthorizeAndCapture(boolean performAuthorizeAndCapture)
setPerformAuthorizeAndCapture in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationsetPerformAuthorizeAndCapture in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic int getFailureReportingThreshold()
getFailureReportingThreshold in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationgetFailureReportingThreshold in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic void setFailureReportingThreshold(int failureReportingThreshold)
setFailureReportingThreshold in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationsetFailureReportingThreshold in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic boolean handlesMultiplePayments()
handlesMultiplePayments in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationhandlesMultiplePayments in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationpublic org.broadleafcommerce.common.payment.PaymentGatewayType getGatewayType()
getGatewayType in interface org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationgetGatewayType in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayConfigurationCopyright © 2025. All rights reserved.