Handling testMode payment gateway var better