Needs work
Project:
Commerce Card on File
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
19 Apr 2012 at 11:02 UTC
Updated:
20 Jun 2015 at 12:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedMy bad on the first one, reverse order in my git diff. New file attached.
Comment #2
berdirGenerally agree with this. In my case (Commerce Saferpay), the credit card form is on the redirect pane, because it's a direct POST to the payment provider, to avoid storing the CC info, even temporarly.
However, when removing the condition, the problem is it shows the checkbox already on the payment selection page, before entering the cc data, which is weird. So what I did is re-add the setting on my own, then save it myself and return an empty credit_card container with #access FALSE. Obviously hacky.
So what I'm thinking is to do this:
- Move the credit card element check one level down and only check it when trying to display the checkbox.
- Move the form element into a helper function, so that modules that do not follow the credit_card pseudo standard can easily add it on their own, how they want it.
Hint: When submitting a patch, remember to set the issue to needs review.
Comment #2.0
berdirMy bad, forgot array check