Checking if btnAction is a gateway
Correcting typo
The gateway is set in btnAction
Only set the flashdata if the btnAction is not checkout