Access to add and change pages is restricted. See: https://cwiki.apache.org/confluence/display/OFBIZ/Wiki+access

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

What happens after the user hits "Submit" on the Checkout Review Screen

This is more of a note taking page while I go through everything so it will be a little messy today.

<@ofbizUrl>processorder</@ofbizUrl>

request: processorder, invoke: java event: CheckOutEvents: createOrder, responses = sales_order|work_order|error, values = checkBlacklist|checkBlackList|checkoutreview

request: checkBlacklist,  invoke java event: CheckOutEvents: checkOrderBlacklist, responses = success|failed|error, values = processpayment|failedBlacklist|checkoutreview

request: processpayment, invoke java event: CheckOutEvents:processPayment, responses = success|fail|error, values = clearcartfororder|checkouterror|checkoutreview

java: CheckOutEvents.processpayment

String processPayment(HttpServletRequest request, HttpServletResponse response)

3 return(failureCode) codes: "success = 0", "fail = 1", and "error = 2"

calls:if (!processPayment(request))

private static boolean processPayment(HttpServletRequest request)

calls:

  • ProductStoreWorker.getProductStore
  • checkOutHelper.processPayment

public Map processPayment(GenericValue productStore, GenericValue userLogin, boolean faceToFace, boolean manualHold)

calls:

public static Map processPayment(String orderId, BigDecimal orderTotal, String currencyUomId, GenericValue productStore, GenericValue userLogin, boolean faceToFace, boolean manualHold, LocalDispatcher dispatcher, GenericDelegator delegator)

  • allPaymentPreferences = delegator.findByAnd("OrderPaymentPreference", UtilMisc.toMap("orderId", orderId)) --> allPaymentPreferences = EntityUtil.filterByAnd(allPaymentPreferences, canExpr);
  • filters out items with "PAYMENT_CANCELLED" 
  • if "manualRefNum" has content then it processes/approves the order("serviceTypeEnum" = "PRDS_PAY_EXTERNAL") -->*SERVICE* dispatcher.runSync("processCaptureResult", captCtx)
  • then it looks for OrderPaymentPrefernce entries with statusId = "PAYMENT_NOT_AUTH"
  • *SERVICE*paymentResult = dispatcher.runSync("authOrderPayments", UtilMisc.<String, Object>toMap("orderId", orderId, "userLogin", userLogin), 180, false);

 


  • No labels