Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2011
    Posts
    15
    Plugin Contributions
    0

    Default problems with cybersource payment module

    so in tpl_checkout_payment_default.php, there's this line:

    <div class="messageStackError"><?php echo zen_output_string_protected($_GET['credit_class_error']); ?></div>


    it seems like when i have longer errors, this craps out.
    i.e.:
    http://MyDomain/index.php?main_page=...er+credit+card

    errors out (i.e. blank page) but if you trim that to:

    http://MyDomain/index.php?main_page=...ing+with++was+

    it's fine. is there something with zen_output_string_protected that would choke on longer strings?

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

    Default Re: problem with zen_output_string_protected? using in payment page

    The problem is not with zen_output_string_protected.

    Your problem is that you're using a payment module written for an old version of Zen Cart, and it's passing very long error messages via the URL instead of via the $messageStack.

    Rewrite your module to use current methods and you'll be fine.
    .

    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
    Mar 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: problem with zen_output_string_protected? using in payment page

    thanks. we are using cybersource, and followed this guide:

    http://www.zen-cart.com/forum/showthread.php?t=55738

    is there a newer guide to implementing cybersource?

  4. #4
    Join Date
    Mar 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: problems with cybersource payment module

    also, can i get an example of how to implement the $messagestack->add_session?
    i tried looking around and attempted this:

    $messagestack->add_session('checkout_payment', 'hello world','error');

    but this gives me a 500 server error

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: problems with cybersource payment module

    Here's an example of it from one of the authorize.net modules:
    Code:
        global $messageStack;
        $messageStack->add_session('checkout_payment', MODULE_PAYMENT_AUTHORIZENET_TEXT_ERROR_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.

  6. #6
    Join Date
    Mar 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: problems with cybersource payment module

    Thanks!

 

 

Similar Threads

  1. Cybersource payment module
    By Loundry in forum Addon Payment Modules
    Replies: 4
    Last Post: 8 May 2008, 04:15 AM
  2. CyberSource + Canadian Payment! Anyone got similar problems?
    By jack911 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 7 Dec 2006, 09:33 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