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) »
  • Credit card information not in receipt
Pages: [1]

Author Topic: Credit card information not in receipt  (Read 731 times)

gozer

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Wordpress 3.5
  • MySQL version: 5.5
  • PHP version: 5.3
Credit card information not in receipt
January 28, 2013, 10:20:35 am
We have several events setup for online registration.  All that works perfectly as does the integration with Moneris.  However, the default receipts do not show credit card information at all in either text or html emails.  But, the "Events - Registration Confirmation and Receipt (on-line)" templates have the code.  When I remove the IF statement that wraps the credit card information in the template, we do see the credit card information in the email receipts but its the entire credit card number and not just the last 4 digits.  Obviously, that's not safe.  The credit card information shows correctly for the online membership receipts and the template basically looks identical.  I've spent a few hours hunting through civi code to find out where/how this all happens, but can't find anything yet.

Could there be a configuration issue that does not allow the credit card information to be seen in the emails?  I've been through the event settings, but haven't found anything. 

And, if the credit card information is shown, how do I make sure its only the last 4 digits of the credit card number?

Any suggestion would be greatly appreciated.  I searched google and these forums for anyone else with the problem, but didn't find anything. I find it hard to believe we're the only ones?


Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Credit card information not in receipt
January 28, 2013, 11:39:31 am
I don't think it's a configuration issue - I think it's just that Civi isn't set up to show the last 4 digits of the credit card & I suspect no-one has been pushing for it since you didn't find it.

It looks like it Might be possible to use the substr function in smarty http://stackoverflow.com/questions/13377201/smarty-substr-string-skip-first-characters
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

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: Credit card information not in receipt
January 28, 2013, 02:27:10 pm

can you try using a dummy processor and see if you get the same results

not sure if this is an issue with moneris or the civi code, but that will help narrow things down

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

gozer

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Wordpress 3.5
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Credit card information not in receipt
January 30, 2013, 10:03:11 am
We get the same results with the dummy processor. 

Visa
4242424242424242
Expires: Array

We're also noticing missing data.  For example, we added a fax number (Phone - Primary - Fax) to the profile.  The fax number appears everywhere except in the email receipt.  The field label is shown, just no data.  I know the email templates loop over all the fields/values, but can't figure out why it would arbitrarily skip the display of one value.
« Last Edit: January 30, 2013, 11:29:09 am by gozer »

gozer

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Wordpress 3.5
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Credit card information not in receipt
January 30, 2013, 12:44:28 pm
Here's a similar problem with the default membership receipts and custom fields.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Credit card information not in receipt

This forum was archived on 2017-11-26.