Shopify/active_merchant — pull request #238 by requnix (2011-12-09 10:21:41+00:00)
Title: Added support for MyGate payment gateway.

It has a slightly different flow as it is required to do a 3D-Secure check beforehand, but everything is fully tested both remotely and with unit tests so it should be easy to see how to use it.

I couldn't find a reference implementation of how an established flow for 3D-Secure would work so I've left it up to the application that ActiveMerchant is embedded in. In the tests I tell the 3D-Secure service to post to redirect to PostBin and then I parse the results from that page using Mechanize as it would have no way to post to the machine running the tests reliably.

There is a slight concern where MyGate doesn't reference their own AuthorisationIDs, they reference a +transaction_index+. I've used the authorization parameter as other gateway implementations do, but I've renamed it to make it clear what to pass.

I've also tried to keep documentation plentiful and verbose so everything should be clear, but please get in touch if anything needs explanation or amending.