Class CartOperationCheckoutProperties
java.lang.Object
com.broadleafcommerce.cartoperation.properties.DiscriminatedProperties<CartOperationCheckoutProperties>
com.broadleafcommerce.cartoperation.service.checkout.CartOperationCheckoutProperties
@Validated
@ConfigurationProperties("broadleaf.cartoperation.service.checkout")
public class CartOperationCheckoutProperties
extends DiscriminatedProperties<CartOperationCheckoutProperties>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Guest token properties. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCheckoutPaymentMethodOptions
(String applicationId, String tenantId) Gets the value ofcheckoutPaymentMethodOptions
based on the given application and tenant id.getCheckoutTransactionType
(String gatewayType, String paymentType, String applicationId, String tenantId) getCheckoutTransactionTypeByGateway
(String gateway, String applicationId, String tenantId) Deprecated.getPaymentGatewayPriorities
(String applicationId, String tenantId) Gets the value ofpaymentGatewayPriorities
based on the given application and tenant id.boolean
boolean
boolean
Whether or not to validate payment methods during checkout activity workflowboolean
isCheckoutTransactionExternalByGateway
(String gateway, String applicationId, String tenantId) void
setCheckoutLookup3dsTransactionsEnabled
(Map<String, Boolean> checkoutLookup3dsTransactionsEnabled) Whether or not to lookup the results of pending 3DS transactions during the checkout workflow.void
setCheckoutLookupExternalTransactionsEnabled
(Map<String, Boolean> checkoutLookupExternalTransactionsEnabled) Whether or not to lookup the results of pending external transactions during the checkout workflow.void
setCheckoutPaymentMethodOptions
(List<CheckoutPaymentMethodOption> checkoutPaymentMethodOptions) A list of configured payment methods that are available during checkout.void
setCheckoutPaymentMethodValidationEnabled
(boolean checkoutPaymentMethodValidationEnabled) Whether or not to validate payment methods during checkout activity workflowvoid
setCheckoutTransactionExternal
(Map<String, Boolean> checkoutTransactionExternal) Whether the checkout transaction occurs externally such as for transparent redirect.void
setCheckoutTransactionTypes
(Map<String, String> checkoutTransactionTypes) Set theTransactionType
that should be performed during checkout.void
void
setPaymentGatewayPriorities
(List<String> paymentGatewayPriorities) A list ofPaymentGatewayTypes
defining the order by which payments will be processed during checkout.Methods inherited from class com.broadleafcommerce.cartoperation.properties.DiscriminatedProperties
getApplication, getApplicationIdFromContext, getField, getTenant, getTenantIdFromContext, setApplication, setTenant
-
Constructor Details
-
CartOperationCheckoutProperties
public CartOperationCheckoutProperties()
-
-
Method Details
-
getCheckoutTransactionType
-
getCheckoutTransactionTypeByGateway
@Deprecated public String getCheckoutTransactionTypeByGateway(String gateway, @Nullable String applicationId, @Nullable String tenantId) Deprecated.Gathers the checkoutTransactionType
by gateway type- Parameters:
gateway
- name of the gatewayapplicationId
- the application IDtenantId
- the tenant ID- Returns:
- the checkout
TransactionType
-
isCheckoutTransactionExternalByGateway
-
isCheckoutLookup3DSTransactionsEnabled
-
isCheckoutLookupExternalTransactionsEnabled
-
getPaymentGatewayPriorities
public List<String> getPaymentGatewayPriorities(@Nullable String applicationId, @Nullable String tenantId) Gets the value ofpaymentGatewayPriorities
based 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
paymentGatewayPriorities
based on the given application and tenant id
-
getCheckoutPaymentMethodOptions
public List<CheckoutPaymentMethodOption> getCheckoutPaymentMethodOptions(@Nullable String applicationId, @Nullable String tenantId) Gets the value ofcheckoutPaymentMethodOptions
based 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
checkoutPaymentMethodOptions
based on the given application and tenant id
-
setCheckoutTransactionTypes
Set theTransactionType
that should be performed during checkout. Typically, this will beDefaultTransactionTypes.AUTHORIZE_AND_CAPTURE
orDefaultTransactionTypes.AUTHORIZE
. Map is keyed by payment gateway name. -
setCheckoutTransactionExternal
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. -
setCheckoutLookupExternalTransactionsEnabled
public void setCheckoutLookupExternalTransactionsEnabled(Map<String, Boolean> checkoutLookupExternalTransactionsEnabled) Whether or not to lookup the results of pending external transactions during the checkout workflow. -
setPaymentGatewayPriorities
A list ofPaymentGatewayTypes
defining 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 -
getGuestToken
-
setGuestToken
-
getCheckoutTransactionType(String, String, String, String)