public class ValidateAndConfirmPaymentActivity extends BaseActivity<ProcessContext<CheckoutSeed>>
Verifies that there is enough payment on the order via the successful amount on PaymentTransactionType.AUTHORIZE and
PaymentTransactionType.AUTHORIZE_AND_CAPTURE transactions. This will also confirm any PaymentTransactionType.UNCONFIRMED transactions
that exist on am OrderPayment.
If there is an exception (either in this activity or later downstream) the confirmed payments are rolled back via ConfirmPaymentsRollbackHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIRMED_TRANSACTIONS
Used by the
ConfirmPaymentsRollbackHandler to roll back transactions that this activity confirms. |
protected static org.apache.commons.logging.Log |
LOG |
protected OrderPaymentService |
orderPaymentService |
protected OrderToPaymentRequestDTOService |
orderToPaymentRequestService |
protected PaymentGatewayConfigurationServiceProvider |
paymentConfigurationServiceProvider |
automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfiguration| Constructor and Description |
|---|
ValidateAndConfirmPaymentActivity() |
| Modifier and Type | Method and Description |
|---|---|
ProcessContext<CheckoutSeed> |
execute(ProcessContext<CheckoutSeed> context)
Called by the encompassing processor to activate
the execution of the Activity
|
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecuteprotected static final org.apache.commons.logging.Log LOG
public static final String CONFIRMED_TRANSACTIONS
ConfirmPaymentsRollbackHandler to roll back transactions that this activity confirms.@Autowired(required=false) @Qualifier(value="blPaymentGatewayConfigurationServiceProvider") protected PaymentGatewayConfigurationServiceProvider paymentConfigurationServiceProvider
protected OrderToPaymentRequestDTOService orderToPaymentRequestService
protected OrderPaymentService orderPaymentService
public ProcessContext<CheckoutSeed> execute(ProcessContext<CheckoutSeed> context) throws Exception
Activitycontext - - process context for this workflowExceptionCopyright © 2014. All Rights Reserved.