Class OrderPaymentConfirmationStrategyImpl

java.lang.Object
org.broadleafcommerce.core.checkout.service.strategy.OrderPaymentConfirmationStrategyImpl
All Implemented Interfaces:
OrderPaymentConfirmationStrategy

@Service("blOrderPaymentConfirmationStrategy") public class OrderPaymentConfirmationStrategyImpl extends Object implements OrderPaymentConfirmationStrategy
Strategy to handle confirming "UNCONFIRMED" transactions on an Order Payment during the checkout workflow.

The default implementation is to (based on the passed in payment type): - If PaymentType == CREDIT_CARD -> AUTHORIZE or AUTHORIZE_AND_CAPTURE based on configuration of the gateway - Otherwise -> call the configured gateways PaymentGatewayTransactionConfirmationService

However, if PENDING payments are enabled, then this logic will be by-passed and a new transaction will be created as the payment is marked to be charged offline or asynchronously.

Author:
Elbert Bautista (elbertbautista)