Hi. I created payment gateway module. What it does is to redirect after checkout to the gateway page. But while page cache is enabled the method for getting last real order id is returning null(it is used to get order id from session). When I this type of cache it is working.
Is there any way to use my module without disabling page cache? Thanks in advance.
There are 2 simple steps to use your module without disabling page cache.
Please see the detailed instruction here: