Class ExternalPaymentTransactionCallbackDTO
java.lang.Object
com.broadleafcommerce.cartoperation.domain.payment.ExternalPaymentTransactionCallbackDTO
- All Implemented Interfaces:
Serializable
Object used to manage data throughout the processing of a callback from an external payment
interaction. For example, the customer could have just completed 3DS verification which led to a
redirect from the payment gateway's page to our CartOps app. This object helps to communicate the
information obtained from this redirect to CartOps, determine the current state of the cart's
payments, & communicate the result to the frontend app via a redirect from CartOps to the
frontend app.
- Author:
- mariestandeven
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Miscellaneous attributes that can be used throughout the processing of a callback.com.broadleafcommerce.cart.client.domain.Cart
getCart()
The resolved cart related to the payment transactionsThe cart's collection ofPaymentSummaries
The gateway type of this payment.The state of the cart's payments following the external payment interaction.The result of the payment interaction that was completed, causing the redirect to CartOps.Attributes to be returned with the redirect from CartOps to the frontendThe request body of the payment gateway redirect, if any.getRequestParam
(String paramName) The request params of the payment gateway redirect.int
hashCode()
boolean
Declares whether the request has been deemed valid.void
setAdditionalAttributes
(Map<String, Object> additionalAttributes) Miscellaneous attributes that can be used throughout the processing of a callback.void
setCart
(com.broadleafcommerce.cart.client.domain.Cart cart) The resolved cart related to the payment transactionsvoid
The ID of the cart.void
setCartPayments
(List<PaymentSummary> cartPayments) The cart's collection ofPaymentSummaries
void
setGatewayType
(String gatewayType) The gateway type of this payment.void
setPaymentFinalizationStatus
(String paymentFinalizationStatus) The state of the cart's payments following the external payment interaction.void
setPaymentResult
(String paymentResult) The result of the payment interaction that was completed, causing the redirect to CartOps.void
setRedirectAttributes
(Map<String, Object> redirectAttributes) Attributes to be returned with the redirect from CartOps to the frontendvoid
setRequestBody
(Map<String, Object> requestBody) The request body of the payment gateway redirect, if any.void
setRequestParams
(Map<String, String> requestParams) The request params of the payment gateway redirect.void
setValidRequest
(boolean validRequest) Declares whether the request has been deemed valid.toString()
-
Constructor Details
-
ExternalPaymentTransactionCallbackDTO
public ExternalPaymentTransactionCallbackDTO()
-
-
Method Details
-
getCartId
-
getRequestParam
-
isValidRequest
public boolean isValidRequest()Declares whether the request has been deemed valid. -
getCart
public com.broadleafcommerce.cart.client.domain.Cart getCart()The resolved cart related to the payment transactions -
getCartPayments
The cart's collection ofPaymentSummaries
-
getGatewayType
The gateway type of this payment. -
getRequestBody
The request body of the payment gateway redirect, if any. -
getRequestParams
The request params of the payment gateway redirect. Should contain the parameters that were passed on the callback URL and any that the gateway would add. -
getPaymentResult
The result of the payment interaction that was completed, causing the redirect to CartOps. Defaults toDefaultExternalPaymentInteractionResult.UNKNOWN
.- See Also:
-
getPaymentFinalizationStatus
The state of the cart's payments following the external payment interaction. This can communicate that all payments are finalized, a transaction failed requiring another form of payment, or that external interaction (e.g. 3DS verification or HPP interaction) is required for another one of the cart's payments. Defaults toDefaultPaymentFinalizationStatus.UNKNOWN
.- See Also:
-
getRedirectAttributes
Attributes to be returned with the redirect from CartOps to the frontend -
getAdditionalAttributes
Miscellaneous attributes that can be used throughout the processing of a callback. -
setValidRequest
public void setValidRequest(boolean validRequest) Declares whether the request has been deemed valid. -
setCartId
The ID of the cart. -
setCart
public void setCart(com.broadleafcommerce.cart.client.domain.Cart cart) The resolved cart related to the payment transactions -
setCartPayments
The cart's collection ofPaymentSummaries
-
setGatewayType
The gateway type of this payment. -
setRequestBody
The request body of the payment gateway redirect, if any. -
setRequestParams
The request params of the payment gateway redirect. Should contain the parameters that were passed on the callback URL and any that the gateway would add. -
setPaymentResult
The result of the payment interaction that was completed, causing the redirect to CartOps. Defaults toDefaultExternalPaymentInteractionResult.UNKNOWN
.- See Also:
-
setPaymentFinalizationStatus
The state of the cart's payments following the external payment interaction. This can communicate that all payments are finalized, a transaction failed requiring another form of payment, or that external interaction (e.g. 3DS verification or HPP interaction) is required for another one of the cart's payments. Defaults toDefaultPaymentFinalizationStatus.UNKNOWN
.- See Also:
-
setRedirectAttributes
Attributes to be returned with the redirect from CartOps to the frontend -
setAdditionalAttributes
Miscellaneous attributes that can be used throughout the processing of a callback. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-