burnbright/silverstripe-shop — pull request #272 by markguinn (2014-07-23 10:11:24+00:00)
Title: UNFINISHED: saved cards

This is submitted for discussion. It corresponds to and requires: https://github.com/burnbright/silverstripe-omnipay/pull/63. It also is branched off of https://github.com/burnbright/silverstripe-shop/pull/269 - sorry if that's confusing. No action is required at this time. I'll submit a final PR once the work is complete and tested. Comments welcome @jedateach, @halkyon, or @chillu (or anyone really).

Basically, this work would not change anything unless:

1. You are using a gateway that supports createCard
2. You set CheckoutConfig.save_credit_cards to true

If both of those conditions are met, it functions exactly like the addressbook does. It of course only stores the last 4 digits of the card and a card reference token.