Class CartOperationCheckoutProperties
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.properties.DiscriminatedProperties<CartOperationCheckoutProperties>
-
- com.broadleafcommerce.cartoperation.service.checkout.CartOperationCheckoutProperties
-
@ConfigurationProperties("broadleaf.cartoperation.service.checkout") public class CartOperationCheckoutProperties extends DiscriminatedProperties<CartOperationCheckoutProperties>
-
-
Constructor Summary
Constructors Constructor Description CartOperationCheckoutProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CheckoutPaymentMethodOption>getCheckoutPaymentMethodOptions(String applicationId, String tenantId)Gets the value ofcheckoutPaymentMethodOptionsbased on the given application and tenant id.StringgetCheckoutTransactionTypeByGateway(String gateway, String applicationId, String tenantId)List<String>getPaymentGatewayPriorities(String applicationId, String tenantId)Gets the value ofpaymentGatewayPrioritiesbased on the given application and tenant id.booleanisCheckoutLookup3DSTransactionsEnabled(String gateway)booleanisCheckoutPaymentMethodValidationEnabled()Whether or not to validate payment methods during checkout activity workflowbooleanisCheckoutTransactionExternalByGateway(String gateway, String applicationId, String tenantId)voidsetCheckoutLookup3dsTransactionsEnabled(Map<String,Boolean> checkoutLookup3dsTransactionsEnabled)Whether or not to lookup the results of pending 3DS transactions during the checkout workflow.voidsetCheckoutPaymentMethodOptions(List<CheckoutPaymentMethodOption> checkoutPaymentMethodOptions)A list of configured payment methods that are available during checkout.voidsetCheckoutPaymentMethodValidationEnabled(boolean checkoutPaymentMethodValidationEnabled)Whether or not to validate payment methods during checkout activity workflowvoidsetCheckoutTransactionExternal(Map<String,Boolean> checkoutTransactionExternal)Whether the checkout transaction occurs externally such as for transparent redirect.voidsetCheckoutTransactionTypes(Map<String,String> checkoutTransactionTypes)Set theTransactionTypethat should be performed during checkout.voidsetPaymentGatewayPriorities(List<String> paymentGatewayPriorities)A list ofPaymentGatewayTypesdefining the order by which payments will be processed during checkout.-
Methods inherited from class com.broadleafcommerce.cartoperation.properties.DiscriminatedProperties
getApplication, getField, getTenant, setApplication, setTenant
-
-
-
-
Method Detail
-
getCheckoutTransactionTypeByGateway
public String getCheckoutTransactionTypeByGateway(String gateway, @Nullable String applicationId, @Nullable String tenantId)
-
isCheckoutTransactionExternalByGateway
public boolean isCheckoutTransactionExternalByGateway(String gateway, @Nullable String applicationId, @Nullable String tenantId)
-
isCheckoutLookup3DSTransactionsEnabled
public boolean isCheckoutLookup3DSTransactionsEnabled(String gateway)
-
getPaymentGatewayPriorities
public List<String> getPaymentGatewayPriorities(@Nullable String applicationId, @Nullable String tenantId)
Gets the value ofpaymentGatewayPrioritiesbased on the given application and tenant id.- Parameters:
applicationId- the current context's application idtenantId- the current context's tenant id- Returns:
- the value of
paymentGatewayPrioritiesbased on the given application and tenant id
-
getCheckoutPaymentMethodOptions
public List<CheckoutPaymentMethodOption> getCheckoutPaymentMethodOptions(@Nullable String applicationId, @Nullable String tenantId)
Gets the value ofcheckoutPaymentMethodOptionsbased on the given application and tenant id.- Parameters:
applicationId- the current context's application idtenantId- the current context's tenant id- Returns:
- the value of
checkoutPaymentMethodOptionsbased on the given application and tenant id
-
setCheckoutTransactionTypes
public void setCheckoutTransactionTypes(Map<String,String> checkoutTransactionTypes)
Set theTransactionTypethat should be performed during checkout. Typically, this will beDefaultTransactionTypes.AUTHORIZE_AND_CAPTUREorDefaultTransactionTypes.AUTHORIZE. Map is keyed by payment gateway name.
-
setCheckoutTransactionExternal
public void setCheckoutTransactionExternal(Map<String,Boolean> checkoutTransactionExternal)
Whether the checkout transaction occurs externally such as for transparent redirect. Otherwise, the transaction is created in Broadleaf during the checkout workflow. The system can use this when validating payments to make sure that they have been executed in the external service. Map is keyed by payment gateway name.
-
setCheckoutLookup3dsTransactionsEnabled
public void setCheckoutLookup3dsTransactionsEnabled(Map<String,Boolean> checkoutLookup3dsTransactionsEnabled)
Whether or not to lookup the results of pending 3DS transactions during the checkout workflow.
-
setPaymentGatewayPriorities
public void setPaymentGatewayPriorities(List<String> paymentGatewayPriorities)
A list ofPaymentGatewayTypesdefining the order by which payments will be processed during checkout.
-
setCheckoutPaymentMethodOptions
public void setCheckoutPaymentMethodOptions(List<CheckoutPaymentMethodOption> checkoutPaymentMethodOptions)
A list of configured payment methods that are available during checkout.
-
setCheckoutPaymentMethodValidationEnabled
public void setCheckoutPaymentMethodValidationEnabled(boolean checkoutPaymentMethodValidationEnabled)
Whether or not to validate payment methods during checkout activity workflow
-
isCheckoutPaymentMethodValidationEnabled
public boolean isCheckoutPaymentMethodValidationEnabled()
Whether or not to validate payment methods during checkout activity workflow
-
-