Can you dynamically set Transaction Gateway info?
-
I have a rather unique requirement for a project and would just like to put it out there to see if anyone has any insight on what I’m attempting to do.
My company is being tasked with creating a new website for a mexican fast food chain. They would like the online order payments to be routed to each locations account, rather than a corporate account that they then need to pay each franchisee out off.
Each location already has it’s own First Data transaction gateway account. So my idea was to use Woocommerce and their First Data gateway extension to try to handle this.
The question is, is it possible to change the gateway info (gateway id, gateway password, key id, and key password) dynamically during the checkout process? At the beginning of the order process the user will select the store location, with that I can query the database for the gateway info, but I then need to pass that info to woocommerce/First Data Extension so that it is used for the processing.
Anyone ever try something like this? Looking at the documentation it seems I could choose one of many hooks during the checkout process to inject the changes, but the documentation doesn’t tell me anything about when the standard (saved in the woocommerce checkout settings) gateway info is loaded. Meaning I don’t know when/if it is pulled into a variable that I can then override.
If anyone has any thoughts/insight it would be much appreciated.
- The topic ‘Can you dynamically set Transaction Gateway info?’ is closed to new replies.