I think it would be very handy to have some minimal rules that would allow users to query the stored profile entities in order to select ones that are soon to expire, and notify users periodically of their expiring card.

Rules can handle the email part, this module would just need to provide the action to load card entities and perhaps some some tokens so the user can identify which profile is expiring.

Comments

dwkitchen’s picture

Assigned: Unassigned » dwkitchen

Was already on my todo list. A big wanted feature when using Card on File with recurring.

DaneMacaulay’s picture

put together a sandbox module to do this.

https://drupal.org/sandbox/DaneMacaulay/2064173

think this could probably belong inside of cof, but a few things are up for debate as far as implementation.

would be happy to work this in, and or hear other ideas.

DaneMacaulay’s picture

hmmm, actually this is a good place to use rules scheduler on cardonfile entity save event.
would be much cleaner than my previous implementation

DaneMacaulay’s picture

iwant2fly’s picture

I think that this module is probably what you are looking for. https://drupal.org/project/commerce_dunning

bojanz’s picture

Issue summary: View changes
Status: Active » Fixed

Dunning is the module that you want.
Once the charge fails because of an expired card the user is notified and the charge is automatically retried.
Of course, you could always extend it to notify before the charge as well if desired.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.