Needs work
Project:
Commerce Beanstream
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
17 Jan 2017 at 21:13 UTC
Updated:
3 Jul 2018 at 19:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
momass@gmail.com commentedComment #3
momass@gmail.com commentedComment #4
momass@gmail.com commentedThe last patch I uploaded is broken, please do not use. Here's the correct patch.
Comment #5
momass@gmail.com commentedWhen a user adds a new card on the 'stored cards' tab and if the cardonfile setting is set to only allow users to store one card, the current card on file will be overwritten.
I've included in this patch a warning message on the 'stored cards' tab that this will occur. The message will only appear if the cardonfile setting is set to allow users to store one card only and if the user currently has one or more cards in the system.
Comment #6
momass@gmail.com commentedComment #7
momass@gmail.com commentedFound a bug in my previous patch.
If a user has multiple credit cards and if commerce_cardonfile has the setting to allow only one stored card, when a new card is added it is not set as the default card.
This latest patch corrects that.
Comment #8
spiderman@chirpy Thanks for this patch- I'm aware that in the deployment I was working on this module for originally, we didn't want to allow more than one card on file as it was confusing end users. Obviously I want to support this feature, but would like to validate with one of the other maintainers from that deployment that your patch doesn't break their use case. It may need to be reworked slightly to provide an option or something. Reassigning this to myself to come back to and test properly when I can get a proper test harness setup.
Comment #9
spidermanComment #10
momass@gmail.com commented@spiderman, I've tested the code with the setting to allow multiple credit cards turned off. We've been running it like this for the past year without issue. I have not tested it with multiple cards turned on but from what I understand commerce_beanstream wasn't respecting this cardonfile setting one way or the other and beanstream was saving multiple cards to payment profiles regardless.
I know allowing only one card works for us, allowing multiple needs testing.
Once you approve and commit the recurring patch, I will re-create this patch with the latest updates.