public interface PaymentConfirmationService
payments
in the context of a checkout submission.PaymentSummaryService#shouldConfirmPayment(Payment)
Modifier and Type | Method and Description |
---|---|
com.broadleafcommerce.cart.client.domain.Cart |
confirmCartPayments(com.broadleafcommerce.cart.client.domain.Cart cart,
String requestId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Intended to confirm all unconfirmed, active
payments related to the provided
Cart . |
com.broadleafcommerce.cart.client.domain.Cart |
confirmCartPayments(com.broadleafcommerce.cart.client.domain.Cart cart,
String requestId,
Map<String,String> securityCodes,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Intended to confirm all unconfirmed, active
payments related to the provided
Cart . |
List<com.broadleafcommerce.order.common.domain.Payment> |
getConfirmedPaymentsToRollback(com.broadleafcommerce.cart.client.domain.Cart cart,
String requestId)
Gather confirmed payments that have a successful transactions tied to the provided requestId
|
com.broadleafcommerce.cart.client.domain.Cart |
rollbackConfirmedPayments(com.broadleafcommerce.cart.client.domain.Cart cart,
String requestId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Intended to roll back all authorized, active
payments related to the provided
Cart . |
com.broadleafcommerce.cart.client.domain.Cart confirmCartPayments(com.broadleafcommerce.cart.client.domain.Cart cart, String requestId, Map<String,String> securityCodes, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
payments
related to the provided
Cart
. Ultimately the confirmation of each unconfirmed payment should lead to a
payment gateway transaction (usually an DefaultTransactionTypes.AUTHORIZE
transaction) & the recording of a PaymentTransaction
on the cart.cart
- the cart that owns the list of paymentsrequestId
- the id representing the customer's request to confirm their paymentssecurityCodes
- The map of card security codes keyed by payment id for processing saved
paymentscontextInfo
- Context information around sandbox and multitenant state.com.broadleafcommerce.paymentgateway.service.exception.PaymentException
- thrown if an error is encountered while processing the paymentscom.broadleafcommerce.cart.client.domain.Cart confirmCartPayments(com.broadleafcommerce.cart.client.domain.Cart cart, String requestId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
payments
related to the provided
Cart
. Ultimately the confirmation of each unconfirmed payment should lead to a
payment gateway transaction (usually an DefaultTransactionTypes.AUTHORIZE
transaction) & the recording of a PaymentTransaction
on the cart.cart
- the cart that owns the list of paymentsrequestId
- the id representing the customer's request to confirm their paymentscontextInfo
- Context information around sandbox and multitenant state.com.broadleafcommerce.paymentgateway.service.exception.PaymentException
- thrown if an error is encountered while processing the paymentsList<com.broadleafcommerce.order.common.domain.Payment> getConfirmedPaymentsToRollback(com.broadleafcommerce.cart.client.domain.Cart cart, String requestId)
cart
- The cart whose checkout submission is being processedrequestId
- the unique identifier of this checkout attemptcom.broadleafcommerce.cart.client.domain.Cart rollbackConfirmedPayments(com.broadleafcommerce.cart.client.domain.Cart cart, String requestId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
payments
related to the provided
Cart
. The rollback of each authorized payment should lead to a
DefaultTransactionTypes.REVERSE_AUTH
payment gateway transaction & an updating of the
relevant PaymentTransaction
to have a unconfirmed status.cart
- the cart that owns the list of payments that are to be rolled backrequestId
- the id representing the customer's request to confirm their paymentscontextInfo
- Context information around sandbox and multitenant state.com.broadleafcommerce.paymentgateway.service.exception.PaymentException
- thrown if an error is encountered while processing the payment
rollbacksCopyright © 2021. All rights reserved.