THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
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>
...
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);