CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • adding credit card types for event
Pages: [1]

Author Topic: adding credit card types for event  (Read 846 times)

saint android

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
adding credit card types for event
May 21, 2010, 02:01:09 pm
Hey guys, I'm dealing with civicrm 1.9 and am struggling on how to add AMEX as a credit card type that exists on the type selection dropdown (for civievent). I've been racking my brain on this one, and was wondering if anyone could hook me up with some solid advice on the issue. Thanks all!

Caleb

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: adding credit card types for event
May 21, 2010, 04:15:21 pm

in 1.9, the easiest place would be to

add it to the option values (civicrm_option_value) that belong to the civicrm_option_group: accept_creditcard

u can alternatively modify the code here:

CRM/Contribute/PseudoConstant.php, function &creditCard( )

lobo

p.s> thanx to git's super fast checkout, i could checkout the 1.9 codebase and check things out, something which i was reluctant to do with svn
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

saint android

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
Re: adding credit card types for event
May 24, 2010, 08:30:54 am
That's the issue, see I have already added AMEX to that option group. I navigated there through civicrm admin -> civicontribute -> Accepted Credit Cards

All credit card options we use are enabled, but only three of the four show. I am using Drupal in connection with this.

The odd thing is that when I run a contribution page, all credit card options are there. But when I run an event page, AMEX is missing form the options...

Any thoughts?

PS sorry for the lack of information in the first post.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: adding credit card types for event
May 24, 2010, 09:08:40 am

u'll need to dig into the code and figure out why starting with: CRM/Event/Form/Registration/Register.php

This also assumes your payment processor supports AMEX, so might want to double check that before you track down the issue

lobo

A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

saint android

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
Re: adding credit card types for event
May 25, 2010, 08:39:13 am
Alright so I've been spelunking in the dark, godless caves that is our code... Here's a question...

If a past employee of ours were to have placed code that dictates what shows up in the civievent dropdown menu for credit card types based on the payment processor being used, where would be a logical place to start looking for that godless string of code? I looked in the file you originally suggested, and I understand that without a working knowledge of how we set things up it might be difficult to provide any useful answer... but I thought I try anyways.

Thanks!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: adding credit card types for event
May 25, 2010, 02:20:59 pm

check:

CRM/Core/Payment/Form.php

search for creditCardType

i think the same was true in 1.9

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • adding credit card types for event

This forum was archived on 2017-11-26.