JacksonRiver/springboard_modules — pull request #28 by brockboland (2012-03-12 19:33:22+00:00)
Title: Added callback function to gateways to force them to test mode

A client needs some donation forms to use the gateway test mode on a one-off basis—that is, the gateway itself may be configured to make live transactions, but donations from a particular form should use test mode in order to test out that particular form.

To that end, I've added a callback that can be defined for a gateway in `hook_payment_gateway_managed()`. The callback function takes a gateway `$config` array byref, and sets whatever value needs to be set to make it use test mode. For example, the flag for authorize.net is `gm_authnet_aim_txn_mode`, while Cybersource uses `gm_cybersource_server` and Ogone uses `gm_ogone_transaction_mode`.