I'm trying to create a custom payment method with direct action as well as in magento 1
here is the code i'm trying to do the redirect after clicked "place order button"
/*jshint jquery:true*/
define(
[
'jquery',
'Magento_Checkout/js/model/quote',
'Magento_Checkout/js/model/url-builder',
'mage/storage',
'Magento_Checkout/js/model/error-processor',
'Magento_Customer/js/model/customer',
'Magento_Checkout/js/model/full-screen-loader'
],
function ($, quote, urlBuilder, storage, errorProcessor, customer, fullScreenLoader) {
'use strict';
return function (messageContainer) {
$.mage.redirect("/test/redirect"); //url is your url
};
}
);
but my question is how to get the order details in /test/redirect controller?