Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2010
    Posts
    59
    Plugin Contributions
    0

    Default Credit Card Error Messages - How To Create?

    Good afternoon,

    Problem: When a customer attempts to checkout with the wrong CC information or insufficient funds, they progress to the checkout confirmation page and then they are sent back to the checkout payment page with no error when they confirm their order.

    I'm trying to add a define parameter in this array for the gateway_services_cc.php file.

    My objective is to create a generic credit card error message for users that enter in the incorrect card number or when their card is declined due to insufficient funds.

    I have a good idea on where and how to implement the code, I just don't know how to create the variables that would define the error so that Zen can pick up on it and que the error message.

    Any help you can provide would be much appreciated as always.

    ~Youngblood
    http://www.primevapor.com

    ZenCart 1.3.9h

  2. #2
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Credit Card Error Messages - How To Create?

    Use the $messageStack.
    An example from the Authorize.net module:
    Code:
        // If the response code is not 1 (approved) then redirect back to the payment page with the appropriate error message
        if ($response_code != '1') {
          $messageStack->add_session('checkout_payment', $response_msg_to_customer . ' - ' . MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_DECLINED_MESSAGE, 'error');
          zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
        }
    .

    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.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 28 Mar 2013, 01:55 PM
  2. declined card error messages is inconsistently passed back
    By ethical in forum PayPal Website Payments Pro support
    Replies: 3
    Last Post: 22 Dec 2010, 10:28 PM
  3. Replies: 5
    Last Post: 29 Nov 2010, 06:28 AM
  4. Credit Card Check Out error, help, can not process credit cards after Super Orders
    By ciscomemory_net in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 28 Jul 2009, 06:01 AM
  5. Create new accout error messages HELP!
    By troutette in forum Basic Configuration
    Replies: 2
    Last Post: 27 Aug 2007, 08:05 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR