Shopify/active_merchant — pull request #282 by joelcogen (2012-02-28 09:33:57+00:00)
Title: Ogone: add store method

**This is a continuation of https://github.com/Shopify/active_merchant/pull/276**
I have changed branch (sorry)

Ok, so I have taken all your comments into account and made the following changes:

* renamed the method to `store`
* support a blank alias by using the Ogone ALIASOPERATION parameter, which will make Ogone generate a alias for us (or return an existing one if the credit card is already saved)

I still have a few issues on which I would like your comments:

* Ogone doesn't seem to support `unstore` except in batch operations, so I guess this won't be implemented
* `store` is currently used in the gateway instead of `billing_id`, so I kept that. Should I rename it to `billing_id` and update the rest of the gateway as well?
* the response contains an `ALIAS` parameter, so we can always return the response and the generated alias can be recovered using `response.params['ALIAS']`. This is good because I really don't like returning a different object depending on circumstances, but also very ugly. Should I create an `OgoneResponse` class, which would extend `Reponse`?

Thanks for all your input!