Closed (fixed)
Project:
Commerce Card on File
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Jul 2013 at 15:55 UTC
Updated:
1 Jan 2015 at 20:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
benjf commentedfound an issue with permissions, updated patch attached.
also, the related issue in commerce_authnet is #2051357: Add card on file outside of the checkout process
Comment #2
balintbrewsI refactored the current Card on File update functionality and incorporated the support of creating new card data. Thanks @benjf, your patch was a great starting point for this work!
Comment #3
dwkitchen commentedLooks like what I was thinking, I will give it a test with Amex and Sagepay
Comment #4
warmnoise commentedThese patches have been very helpful in getting an admin-centered workflow going in a CIM setup. I've been reviewing / testing with authorize.net and have success. One security issue that I found was that any user is able to view /users/%/cards. I propose that this type of redirect can help. Basically making sure that any user without access cannot see another user's cof profile area.
Comment #5
jpstrikesback commentedI think it would be nice if the "$op form callback" forms received the $op param just like the default form.
Comment #6
balintbrews@warmnoise: Thanks for pointing out this problem. It turned out that there was an argument validator handler in place that we can use to solve it. The handler just needed some small fixing. I also noticed that it was possible to add a new card on behalf of another user, this has also been fixed.
@jpstrikesback: Totally agree, thanks for the suggestion!
Comment #7
balintbrewsA small fix.
Comment #8
dwkitchen commentedThanks for the patch.
There is a change needed in any payment modules that have implemented a custom update for, but I think this is only Amex so far as you have based PayMill on this patch.
Comment #10
companyguy commentedI'm still not able to add new cards. Going to /user/%user/cards/add/ results in a "page not found" even though I can see the code for this patch in the newest dev release...
Comment #11
stefank commented@companyguy
You need to click the link for add new card, shown on the top in stored cards tab. The page is not found, because the link is always adding an hash after the /user/%user/cards/add/.
Hope that helps to clarify it.
Comment #12
favrik commentedIs it expected to not be able to add a card with Authorize.NET & CIM because there is to "create callback" in the commerce_payment_method_info() hook ?
Comment #13
jeremymcminn commentedWould anyone be able to provide a small snippet on how to add a class to the "Add new card details" link to make for easier CSS theming?
I've stuck this in, but as you can expect nothing came of it. More a site builder than a developer, any help would be appreciated.
Thanks
Comment #14
stefank commented@jeremymcminn
Had the same problem and sort it out by adding hook_form_alter into custom module.
Comment #15
jeremymcminn commentedAh brilliant, thanks!
I used a hacky version of CSS by theming the operation links on that particular page using a body class, but this would be much better.
Thanks
Comment #16
subu.purohit commented@stefank
I am not able to find that link. I am in "user/1/cards" but can see only:
"You do not have any stored credit cards on file for this account."
From where I can find that link? is there any way to create this button manually?
Comment #17
stefank commented@subu.purohit Just to mention this is a bad idea, but you can add the code to views header/footer with php field (http://site-name/admin/structure/views/view/commerce_card_on_file_user_c.... The add to card should work when u enable ur payment gateway. The code below is a hack.
hope it helps.
Comment #18
subu.purohit commented@ stefank
Thank you for getting back to me.
This is giving me a blank array:
$create_implements = commerce_cardonfile_payment_method_implements('create callback');thats why my code inside foreach loop is not executing. I have enabled authorized.net payment method.
Any idea?
Comment #19
stefank commentedHave you added the patch from https://drupal.org/node/1850100 ?
Comment #20
subu.purohit commentedThank you Stefank,
It brings me the link "Add a card for payments with Credit card" and it is working fine on my localhost. But when I deployed it in server it is giving me "Access denied" error. But if I use same hash code then it is coming properly. Any idea why I am getting this error with different hash code?
Comment #21
stefank commentedCheck that the user have permissions to add new card.
Comment #22
subu.purohit commentedI dont know why it was coming but when I removed that new button "Add card" from views then it is working properly.
After adding new card it is showing me the message "A new card has been added." but under stored card it is still showing me "You do not have any stored credit cards on file for this account."
I am using example visa card for authorized.net. Is there anything else I need to configure?
Comment #23
stefank commentedAny cards in http://[your_site]/admin/commerce/cards ?
Comment #24
subu.purohit commentedYes there are 4 cards stored and those are stored using checkout.
But the new testing card x-1111 is stored in some other user's account. is it an issue?
Comment #25
stefank commentedTry to open a new issue.
Comment #26
oystercrackher commented@subu.purohit for your error in #22,
Please try the suggestions here: https://drupal.org/node/2224063 (See #6)
Thanks
Comment #27
Gaurav.Singh commentedHi,
After creating a link for Add Card (Add a card for payments with Credit card) when i tried to add a demo credit card detail when the card detail should be accepted, I am getting the page for "No Data Recived" attaching the page
Comment #28
stefank commented@gaurav.singh
Any errors in logs?
Comment #29
Gaurav.Singh commentedYes it gives an error of malformed.
Comment #30
stefank commentedCould you submit the full error message please?
Comment #31
Gaurav.Singh commentedYes @stefank please see,
Type: commerce_authnet
Date: Monday, September 22, 2014 - 22:41
User: admin
Location: My URL
Referrer: My URL
Message: cURL error: url malformed
Severity: error
Hostname: My IP Address
Please help me out with this if anyone of you can.
Thanks in advance for your help.
Comment #32
sbasi commentedHi, I am looking to store credit card number as a node field. I know it won't be PCI compliant but I still need it. Any suggestions how I can use this module or any of the other payment modules to do so. I won't be integrating a payment gateway.
Comment #33
thermalmusic commentedHi,
I have cardonfile 7.x-2.0-Beta5+2-dev installed. I'm assuming that commerce_cardonfile-create-card-outside-checkout-7.patch is included in this version. But I do not see the 'Add card' link in any users 'Stored cards' tab, with or without added cards from checkout. All the card permissions are checked. Looked in the view for that link as well but do not see any reference to it. We are using authorize.net with CIM enabled.
Can anyone suggest what I am missing?
Thanks
Comment #34
sbasi commentedUpdate on https://www.drupal.org/node/2051331#comment-9405695
I was able to resolve this by adding a custom plugin to the field validation module with LUHN's algorithm.