Commits
Thomas Tornevall authored af15ce48142
RWC-63 Implement RCO legacy (postMsg) #1 Including RWC-184 #3 * Added resurscheckoutjs framework for legacy handling. * Enabled generic logging entries for frontend events. * Removed todo for using nonces in RCO. nonces are already used through process_payment. * Initializing RCO Legacy only if checkoutType is of type RCO. * Added filter in pluginhandler to add an extra script if RCO legacy is detected (rbwc_js_loaders_checkout). * Initial handler for creating legacy payments is in place. We still need purchasefail and purchasedenied. * Using same API request to create legacy payments (resursbank_checkout_create_order) as v2/facelift do. * Added getCustomerFieldsTypeByLegacy to handle legacy delivery address and billing address fields where they look different in legacy. * Now storing paymentMethod in session and metadata to make data trackable. * Injecting proper payment method title via woocommerce_order_get_payment_method_title and get_title when in RCO (via configuration). * Now using generic function to validate cart content. * Now extracting origin hostname from RCO iframe url, since legacy is depending on it. * Added function to extract the session based payment method from session. #3 * Added config option rco_method_titling to make it possible to choose how payment methods are shown in RCO mode.