Interface OrderPaymentConfirmationStrategy
- All Known Implementing Classes:
OrderPaymentConfirmationStrategyImpl
public interface OrderPaymentConfirmationStrategy
Implementation to "confirm" an unconfirmed transaction.
Default implementation is to:
- If it is an unconfirmed PaymentType.CREDIT_CARD,
then it will attempt to either "Authorize" or "Authorize and Capture" it at this time.
- If the transaction is of any other type, it will attempt to call the implementing gateway's
PaymentGatewayTransactionConfirmationService.confirmTransaction(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO)
- If the system is configured to handle PENDING payments during a checkout, it will create that in the interim.
- Author:
- Elbert Bautista (elbertbautista)
-
Method Summary
Modifier and TypeMethodDescriptionStrategy to determine how to "confirm" a PENDING OrderPayment post-checkoutconfirmTransaction(PaymentTransaction tx, ProcessContext<CheckoutSeed> context) Strategy to determine how to "confirm" an OrderPayment at checkout
-
Method Details
-
confirmTransaction
PaymentResponseDTO confirmTransaction(PaymentTransaction tx, ProcessContext<CheckoutSeed> context) throws PaymentException, WorkflowException, CheckoutException Strategy to determine how to "confirm" an OrderPayment at checkout -
confirmPendingTransaction
PaymentResponseDTO confirmPendingTransaction(PaymentTransaction tx, ProcessContext<CheckoutSeed> context) throws PaymentException, WorkflowException, CheckoutException Strategy to determine how to "confirm" a PENDING OrderPayment post-checkout
-