nimafire Posted September 11, 2018 Share Posted September 11, 2018 Hello 2 payment gateways are enable in our system. first one is main gateway and second one is for backup.is it possible (with hook) to disable one of main one in 10PM and enable second one untill 2 AM? (for every day) to force users use second gateway from 10-2 ? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 11, 2018 Share Posted September 11, 2018 are you thinking purely in terms of the cart checkout? it should just need to check what the current time is and if it's between 10-2, you disable G1, and outside of those times you disable G2... disabling in this respect is just removing that gateway from the gateways array - effectively, they should only ever see 1 option at checkout, G1 or G2, depending on what time of day it is (with respect to PHP time on the server). 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.