Class CheckOutEvents
- java.lang.Object
-
- org.apache.ofbiz.order.shoppingcart.CheckOutEvents
-
public class CheckOutEvents extends java.lang.Object
Events used for processing checkout and orders.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
static java.lang.String
resource_error
-
Constructor Summary
Constructors Constructor Description CheckOutEvents()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
calcTax(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
cartNotEmpty(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
checkExternalCheckout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
checkExternalPayment(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
checkOrderBlacklist(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
checkoutValidation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
checkPaymentMethods(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
checkShipmentNeeded(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
createOrder(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
createReplacementOrder(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Create a replacement order from an existing order against a lost shipment etc.static java.lang.String
determineInitialCheckOutPage(ShoppingCart cart)
Method to determine the initial checkout page based on requirements.static java.lang.String
determineNextFinalizeStep(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static boolean
explodeOrderItems(Delegator delegator, ShoppingCart cart)
static java.lang.String
failedBlacklistCheck(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
finalizeOrderEntry(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
finalizeOrderEntryError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>
getSelectedPaymentMethods(javax.servlet.http.HttpServletRequest request)
static java.lang.String
processPayment(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
setCartShipToCustomerParty(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
setCheckOutError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
setCheckOutOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
setCheckOutPages(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
setPartialCheckOutOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static java.lang.String
setQuickCheckOutOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Use for quickcheckout submit.
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
resource_error
public static final java.lang.String resource_error
- See Also:
- Constant Field Values
-
-
Method Detail
-
cartNotEmpty
public static java.lang.String cartNotEmpty(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
setCheckOutPages
public static java.lang.String setCheckOutPages(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
determineInitialCheckOutPage
public static java.lang.String determineInitialCheckOutPage(ShoppingCart cart)
Method to determine the initial checkout page based on requirements. This will also set any cart variables necessary to satisfy the requirements, such as setting the shipment method according to the type of items in the cart.
-
setCheckOutError
public static java.lang.String setCheckOutError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
setQuickCheckOutOptions
public static java.lang.String setQuickCheckOutOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Use for quickcheckout submit. It calculates the tax before setting the payment options. Shipment option should already be set by the quickcheckout form.
-
setPartialCheckOutOptions
public static java.lang.String setPartialCheckOutOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
setCartShipToCustomerParty
public static java.lang.String setCartShipToCustomerParty(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
checkPaymentMethods
public static java.lang.String checkPaymentMethods(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
getSelectedPaymentMethods
public static java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> getSelectedPaymentMethods(javax.servlet.http.HttpServletRequest request)
-
setCheckOutOptions
public static java.lang.String setCheckOutOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
checkoutValidation
public static java.lang.String checkoutValidation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
createOrder
public static java.lang.String createOrder(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
calcTax
public static java.lang.String calcTax(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
explodeOrderItems
public static boolean explodeOrderItems(Delegator delegator, ShoppingCart cart)
-
checkShipmentNeeded
public static java.lang.String checkShipmentNeeded(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
processPayment
public static java.lang.String processPayment(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
checkOrderBlacklist
public static java.lang.String checkOrderBlacklist(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
failedBlacklistCheck
public static java.lang.String failedBlacklistCheck(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
checkExternalCheckout
public static java.lang.String checkExternalCheckout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
checkExternalPayment
public static java.lang.String checkExternalPayment(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
finalizeOrderEntry
public static java.lang.String finalizeOrderEntry(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
determineNextFinalizeStep
public static java.lang.String determineNextFinalizeStep(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
finalizeOrderEntryError
public static java.lang.String finalizeOrderEntryError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
createReplacementOrder
public static java.lang.String createReplacementOrder(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Create a replacement order from an existing order against a lost shipment etc.
-
-