Class DefaultExternalPaymentFulfillmentCallbackService

java.lang.Object
com.broadleafcommerce.cartoperation.service.payment.DefaultExternalPaymentFulfillmentCallbackService
All Implemented Interfaces:
ExternalPaymentFulfillmentCallbackService

public class DefaultExternalPaymentFulfillmentCallbackService extends Object implements ExternalPaymentFulfillmentCallbackService
  • Constructor Details

  • Method Details

    • handleFulfillmentCallback

      public FulfillmentCallbackResponse handleFulfillmentCallback(@NonNull @NonNull ExternalFulfillmentCallbackDTO callbackDTO, @NonNull @NonNull com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: ExternalPaymentFulfillmentCallbackService
      Interprets the results of an external payment fulfillment callback, updates the cart fulfillment options & pricing, & communicates the current fulfillment state of the cart via the FulfillmentCallbackResponse.
      Specified by:
      handleFulfillmentCallback in interface ExternalPaymentFulfillmentCallbackService
      Parameters:
      callbackDTO - The DTO used to communicate the cart & fulfillment data provided by the callback request
      contextInfo - context information related to multitenancy
      Returns:
      a FulfillmentCallbackResponse containing the data to return to the gateway
    • setDefaultFulfillmentOptionsIfNecessary

      protected com.broadleafcommerce.cart.client.domain.Cart setDefaultFulfillmentOptionsIfNecessary(@NonNull @NonNull PaymentFulfillmentCallbackResponse paymentFulfillmentCallbackResponse, @NonNull @NonNull com.broadleafcommerce.fulfillment.common.domain.FulfillmentOptionResponse fulfillmentOptionResponse, @NonNull @NonNull com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • buildFulfillmentGroupRequestUpdates

      protected List<UpdateFulfillmentGroupRequest> buildFulfillmentGroupRequestUpdates(@NonNull @NonNull PaymentFulfillmentCallbackResponse paymentFulfillmentCallbackResponse, @NonNull @NonNull com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • buildUpdateFulfillmentGroupRequest

      protected UpdateFulfillmentGroupRequest buildUpdateFulfillmentGroupRequest(@NonNull @NonNull ExternalFulfillmentUpdate externalFulfillmentUpdate, @NonNull @NonNull com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • buildPricedFulfillmentOption

      protected com.broadleafcommerce.order.common.domain.PricedFulfillmentOption buildPricedFulfillmentOption(@NonNull @NonNull ExternalFulfillmentUpdate externalFulfillmentUpdate, @NonNull @NonNull com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • buildCartUnavailableErrorResponse

      protected FulfillmentCallbackResponse buildCartUnavailableErrorResponse()
    • getApplicationIdFromContext

      @Nullable protected String getApplicationIdFromContext(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • getTenantIdFromContext

      @Nullable protected String getTenantIdFromContext(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • getCheckoutService

      protected CheckoutService getCheckoutService()
    • getFulfillmentOptionRequestService

      protected FulfillmentOptionRequestService getFulfillmentOptionRequestService()
    • getCartOperationService

      protected CartOperationService getCartOperationService()
    • getCartProvider

      protected CartProvider getCartProvider()
    • getPaymentProvider

      protected PaymentProvider<PaymentSummary> getPaymentProvider()
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()