Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    23
    Plugin Contributions
    0

    Default Re: Credit card number in E-mail order confirmation

    Any suggestions???

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Credit card number in E-mail order confirmation

    Quote Originally Posted by SanchoPanza View Post
    only - credit card type and credit card number in the form like 4111XXXXXXXX1111, so the customer can remember what credit card he uses as he usually has a number of them.
    Is this a complaint you get from your customers on a regular basis?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Credit card number in E-mail order confirmation

    /includes/classes/order.php
    line 942:
    Code:
        if (is_object($GLOBALS[$_SESSION['payment']])) {
          $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
          EMAIL_SEPARATOR . "\n";
          $payment_class = $_SESSION['payment'];
          $email_order .= $GLOBALS[$payment_class]->title . "\n\n";
          $email_order .= (isset($this->info['cc_type']) && $this->info['cc_type'] != '') ? $this->info['cc_type'] . "\n\n" : '';
          $email_order .= ($GLOBALS[$payment_class]->email_footer) ? $GLOBALS[$payment_class]->email_footer . "\n\n" : '';
        } else {
          $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
          EMAIL_SEPARATOR . "\n";
          $email_order .= PAYMENT_METHOD_GV . "\n\n";
        }
        $html_msg['PAYMENT_METHOD_TITLE']  = EMAIL_TEXT_PAYMENT_METHOD;
        $html_msg['PAYMENT_METHOD_DETAIL'] = (is_object($GLOBALS[$_SESSION['payment']]) ? $GLOBALS[$payment_class]->title : PAYMENT_METHOD_GV );
        $html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']]) && $GLOBALS[$payment_class]->email_footer != '') ? nl2br($GLOBALS[$payment_class]->email_footer) : $this->info['cc_type'];
    change to:
    Code:
        if (is_object($GLOBALS[$_SESSION['payment']])) {
          $cc_num_display = (isset($this->info['cc_number']) && $this->info['cc_number'] != '') ? substr($this->info['cc_number'], 0, 4) . str_repeat('X', (strlen($this->info['cc_number']) - 8)) . substr($this->info['cc_number'], -4) . "\n\n" : '';
          $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
          EMAIL_SEPARATOR . "\n";
          $payment_class = $_SESSION['payment'];
          $email_order .= $GLOBALS[$payment_class]->title . "\n\n";
          $email_order .= (isset($this->info['cc_type']) && $this->info['cc_type'] != '') ? $this->info['cc_type'] . ' ' . $cc_num_display . "\n\n" : '';
          $email_order .= ($GLOBALS[$payment_class]->email_footer) ? $GLOBALS[$payment_class]->email_footer . "\n\n" : '';
        } else {
          $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
          EMAIL_SEPARATOR . "\n";
          $email_order .= PAYMENT_METHOD_GV . "\n\n";
        }
        $html_msg['PAYMENT_METHOD_TITLE']  = EMAIL_TEXT_PAYMENT_METHOD;
        $html_msg['PAYMENT_METHOD_DETAIL'] = (is_object($GLOBALS[$_SESSION['payment']]) ? $GLOBALS[$payment_class]->title : PAYMENT_METHOD_GV );
        $html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']]) && $GLOBALS[$payment_class]->email_footer != '') ? nl2br($GLOBALS[$payment_class]->email_footer) : (isset($this->info['cc_type']) && $this->info['cc_type'] != '' ? $this->info['cc_type'] . ' ' . $cc_num_display . "\n\n" : '');
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Mar 2008
    Location
    Finland
    Posts
    15
    Plugin Contributions
    0

    Default Re: Credit card number in E-mail order confirmation

    I can't find the code from that file DrByte wrote???
    I have 1.38a.

  5. #5
    Join Date
    Feb 2007
    Posts
    819
    Plugin Contributions
    0

    Default Re: Credit card number in E-mail order confirmation

    Hi,

    I have version 1.3.8a. Regarding cc# in the email confirmation. My email confirmations used to say just this:

    Payment Method
    ------------------------------------------------------
    Credit Card

    MasterCard
    Now they say this:
    Payment Method
    ------------------------------------------------------
    Credit Card

    Visa 1111XXXXXXXX1111
    How do I change it back to the way it was, or at least change it to:
    Payment Method
    ------------------------------------------------------
    Credit Card

    Visa XXXXXXXXXXXX1111
    Thanks.

  6. #6
    Join Date
    Feb 2007
    Posts
    819
    Plugin Contributions
    0

    Default Re: Credit card number in E-mail order confirmation

    Anyone know how to edit 1.3.8a to show cc info in the confirmation with just the last 4 numbers showing?

    Payment Method
    ------------------------------------------------------
    Credit Card

    Visa XXXXXXXXXXXX1111

    Thanks.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Credit card number in E-mail order confirmation

    You could just do the reverse of what I posted above for the person who wanted it the way you don't seem to want it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Feb 2007
    Posts
    819
    Plugin Contributions
    0

    Default Re: Credit card number in E-mail order confirmation

    Thanks for the reply. I was wondering about that. So is that the way 1.3.7 used to handle it and it was changed in 1.3.8a?

    Was there any reason the format was changed in 1.3.8a? Was it done to comply with new standards? Or do both formats comply with current standards?

    Thanks.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 21 Aug 2012, 07:16 AM
  2. Replies: 5
    Last Post: 29 Nov 2010, 06:28 AM
  3. Full Credit Card Number in e-mail
    By quantum in forum Built-in Shipping and Payment Modules
    Replies: 21
    Last Post: 10 May 2007, 04:23 AM
  4. Credit card number from last order reused
    By DataDeskGuy in forum Managing Customers and Orders
    Replies: 1
    Last Post: 18 Oct 2006, 07:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg