@Service(value="blOrderPaymentConfirmationStrategy") public class OrderPaymentConfirmationStrategyImpl extends Object implements OrderPaymentConfirmationStrategy
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.org.broadleafcommerce.core.checkout.service.workflow.ValidateAndConfirmPaymentActivity}| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
LOG |
protected OrderToPaymentRequestDTOService |
orderToPaymentRequestService |
protected PaymentGatewayConfigurationServiceProvider |
paymentConfigurationServiceProvider |
protected SecureOrderPaymentService |
secureOrderPaymentService |
protected SystemPropertiesService |
systemPropertiesService |
| Constructor and Description |
|---|
OrderPaymentConfirmationStrategyImpl() |
| Modifier and Type | Method and Description |
|---|---|
PaymentResponseDTO |
confirmPendingTransaction(PaymentTransaction tx,
ProcessContext<CheckoutSeed> context)
Strategy to determine how to "confirm" a PENDING OrderPayment post-checkout
|
PaymentResponseDTO |
confirmTransaction(PaymentTransaction tx,
ProcessContext<CheckoutSeed> context)
Strategy to determine how to "confirm" an OrderPayment at checkout
|
protected PaymentResponseDTO |
confirmTransactionInternal(PaymentTransaction tx,
ProcessContext<CheckoutSeed> context,
boolean isCheckout) |
protected String |
constructExpirationDate(Integer expMonth,
Integer expYear)
Default expiration date construction.
|
protected PaymentResponseDTO |
constructPendingTransaction(PaymentType paymentType,
PaymentGatewayType gatewayType,
PaymentRequestDTO confirmationRequest) |
protected boolean |
enablePendingPaymentsOnCheckoutConfirmation()
Set "gateway.config.global.enablePendingPayments" property to allow
confirmation of an "UNCONFIRMED" transaction into a "PENDING" state
instead of confirming into an AUTHORIZE or AUTHORIZE_AND_CAPTURE status.
|
protected String |
getGatewayExpirationDateFormat() |
protected boolean |
orderContainsMultipleFinalPayments(Order order)
determine whether or not this order contains multiple final payments.
|
protected void |
populateBillingAddressOnRequest(PaymentRequestDTO requestDTO,
OrderPayment payment) |
protected void |
populateCreditCardOnRequest(PaymentRequestDTO requestDTO,
OrderPayment payment) |
protected void |
populateCustomerOnRequest(PaymentRequestDTO requestDTO,
OrderPayment payment) |
protected void |
populateShippingAddressOnRequest(PaymentRequestDTO requestDTO,
OrderPayment payment) |
protected boolean |
transactionIsDetachedCreditRequest(PaymentTransaction transaction)
determine whether or not this transaction is a detached credit request.
|
protected static final org.apache.commons.logging.Log LOG
@Autowired(required=false) @Qualifier(value="blPaymentGatewayConfigurationServiceProvider") protected PaymentGatewayConfigurationServiceProvider paymentConfigurationServiceProvider
protected OrderToPaymentRequestDTOService orderToPaymentRequestService
protected SecureOrderPaymentService secureOrderPaymentService
protected SystemPropertiesService systemPropertiesService
public OrderPaymentConfirmationStrategyImpl()
public PaymentResponseDTO confirmTransaction(PaymentTransaction tx, ProcessContext<CheckoutSeed> context) throws PaymentException, WorkflowException, CheckoutException
OrderPaymentConfirmationStrategyconfirmTransaction in interface OrderPaymentConfirmationStrategyPaymentExceptionWorkflowExceptionCheckoutExceptionpublic PaymentResponseDTO confirmPendingTransaction(PaymentTransaction tx, ProcessContext<CheckoutSeed> context) throws PaymentException, WorkflowException, CheckoutException
OrderPaymentConfirmationStrategyconfirmPendingTransaction in interface OrderPaymentConfirmationStrategyPaymentExceptionWorkflowExceptionCheckoutExceptionprotected PaymentResponseDTO confirmTransactionInternal(PaymentTransaction tx, ProcessContext<CheckoutSeed> context, boolean isCheckout) throws PaymentException, WorkflowException, CheckoutException
protected boolean orderContainsMultipleFinalPayments(Order order)
order - protected boolean transactionIsDetachedCreditRequest(PaymentTransaction transaction)
transaction - protected PaymentResponseDTO constructPendingTransaction(PaymentType paymentType, PaymentGatewayType gatewayType, PaymentRequestDTO confirmationRequest)
protected void populateCreditCardOnRequest(PaymentRequestDTO requestDTO, OrderPayment payment) throws WorkflowException
WorkflowExceptionprotected void populateBillingAddressOnRequest(PaymentRequestDTO requestDTO, OrderPayment payment)
protected void populateCustomerOnRequest(PaymentRequestDTO requestDTO, OrderPayment payment)
protected void populateShippingAddressOnRequest(PaymentRequestDTO requestDTO, OrderPayment payment)
protected String constructExpirationDate(Integer expMonth, Integer expYear)
expMonth - expYear - protected String getGatewayExpirationDateFormat()
protected boolean enablePendingPaymentsOnCheckoutConfirmation()
Copyright © 2024. All rights reserved.