Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
It would be great to be able to show credit card icons for the accepted cards, similar to the way it's displayed in uc_credit.
Comment | File | Size | Author |
---|---|---|---|
#5 | 1306260-credit-card-icons-authnet-5.patch | 1.61 KB | rickmanelius |
#4 | commerce_authnet_credit_icons.patch | 1.67 KB | michelle.ichinco |
Comments
Comment #1
johnodonnell@mac.com CreditAttribution: johnodonnell@mac.com commented+1
Comment #2
johnodonnell@mac.com CreditAttribution: johnodonnell@mac.com commentedI was able to add some markup to the form by using hook_form_alter()
It would be nicer if the pane had an option to add some markup.
Comment #3
michelle.ichinco CreditAttribution: michelle.ichinco commentedAgreed.
Comment #4
michelle.ichinco CreditAttribution: michelle.ichinco commentedI added credit card icons this way, where you have to change $payment_methods to include the credit cards you want to display.
Comment #5
rickmanelius CreditAttribution: rickmanelius commentedThis sounds cool! But you'd also have to supply the icons along with the patch.
At a glance, this doesn't look too hairy. First step is a re-roll of the current patch as it doesn't apply properly. I'll add this for now as a placeholder.
Comment #6
rszrama CreditAttribution: rszrama commentedI'm torn. We do this in PayPal, but we use the theme function to generate the HTML for images. However, this causes problems when entity_get_info() is called before the theme is initialized.
Regardless, now that we have a card types checkboxes setting in the payment method, we should base the visible icons on that.
Comment #7
spazfoxAnother solution is to simply use the String Overrides module to replace "Credit card" with "Credit card +
<img>
tags to the icons" etc.