Closed (fixed)
Project:
Commerce Card on File
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2012 at 21:01 UTC
Updated:
21 Jun 2013 at 10:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
BenK commentedThis is definitely needed... any progress on this?
Comment #2
R.J. Steinert commentedNope, but I'm definitely going to need to tackle this soon..
Comment #3
SolomonGifford commentedWouldn't a better way to solve this be to create a commerce_card_on_file_reference field module that would allow a card_on_file to be attached to an order....
Then when modules do recurring orders, they grab the card on file associated with the order?
It seems to me that I may want my $10 recurring order on one card and my $20 recurring order on my other card.
Comment #4
develcuy commentedRecurring billing happens on cron run and is supposed to be automatic. So if I change my card or want to manage more than one, it would be a mess to change the card I wan to be billed to on every recurring order.
Comment #5
develcuy commentedIn the other hand, if nothing has changed, order should be billed to the card in the order, so a default card makes sense only when order's card fails. That should be an option: "Bill to user's default payment method if order's card fails".
Comment #6
develcuy commentedAttached patch adds field "is_default" to db table "commerce_card_data" via hook_schema and hook_update_N. There is another hook_update_N that sets the first card data as default card for each user.
The patch implements a new contextual link "set as default" in the user's profile "stored payment methods" tab.
Comment #7
recrit commented@develCuy: thanks for your work. In parallel, we've been working on a fork that incorporates a default card setting and various other improvements, @see http://drupal.org/sandbox/recrit/1810130. We're working on merging this fork to a 2.x branch. The default card handling is fairly close to your implementation with the addition of ensuring only 1 default per payment method instance and default can be set during checkout.
Comment #8
develcuy commented@recrit, can't wait to see it merged :)
Comment #9
dwkitchen commentedThis has now been included in the 2.x branch