Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2011
    Posts
    3
    Plugin Contributions
    0

    Default checkout_payment Error length limitation?

    I've been trying to address a traditional blank page problem for a day or so now. This has come up while trying to troubleshoot it.

    I am intentionally causing my cart to fail with a bad expiration date on the fake credit card I'm using. Instead of redirecting to the checkout_payment page and asking me to correct the problem, I am getting a blank page.

    [I am familiar with all the causes of blank pages and I have turned on error logging, to no avail. My host is not showing any errors in the logs. End tangent.]

    I can circumvent the blank page, though, once I reduce the length of the error message to 44 characters.

    For instance:

    http://www.website.com/zen/index.php?main_page=checkout_payment&payment_error=gateway_services_cc&error=The +expiration+date+entered+for+the+credit+card+is+invalid.+Please+check+the+date+a nd+try+again.

    Gives me a blank page, whereas this:

    http://www.website.com/zen/index.php?main_page=checkout_payment&payment_error=gateway_services_cc&error=The +expiration+date+entered+for+the+credit+

    Shows the correct page with the truncated error.

    I don't even know where to begin troubleshooting this or why this might occur. Obviously I'm using the Gateway Services CC payment module, but that seems to doing the redirect correctly. The tpl_checkout_payment_default.php is not overridden, and is identical to the 1.3.9h distributed version.

    Any help or insights would make my day! Thanks!
    HowToFoldSoup

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: checkout_payment Error length limitation?

    Yes. Error messages longer than 46 characters are treated as rogue activity, because that's how intruders work.

    The payment module you're using needs to be rewritten to pass the error message via the $messageStack instead of as a URL parameter in zen_href_link. Examples of proper operation can be found in the built-in payment modules.
    .

    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
    Feb 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: checkout_payment Error length limitation?

    Aw, man... I was concerned it was something like that.

    Thanks for your response. I have a feeling I'll be re-writing this myself.

    HowToFoldSoup

  4. #4
    Join Date
    Feb 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: checkout_payment Error length limitation?

    This is a related issue with the same configuration. I have re-written the page and am able to get the pre_confirmation_check() errors to display by using the message stack (thanks again for the insight).

    My new problem seems to be related to the way the credit card processor is sending to the return URL. For instance, this (a mockup)...

    http://www.website.com/zen/index.php?main_page=checkout_process&response=2&responsetext=DECLINED&authcode=& transactionid=12345678912&avsresponse=U&cvvresponse=+&orderid=&type=sale&respons e_code=200&username=12345678&time=20110225094125&amount=10.00&hash=9999999999999 99999999999999999

    ...shows nothing and generates no DEBUG files.

    On the other hand, this...

    http://www.website.com/zen/index.php?main_page=checkout_process&response=2&responsetext=DECLINED&authcode=& transactionid=12345678912&avsresponse=U&cvvresponse=+&orderid=&type=sale&respons e_code=200&username=12345678&time=20110225094125&amount=10.00

    ... returns the appropriate CC Declined message.

    Since the return URL that the gateway is using is beyond my control and something I have to speak with the Gateway about, can I assume the white screen of doom (catchy, eh?) is another reflection of the security measures taken to thwart suspicious behavior. Specifically, it seems to not like the "hash" query string item in particular (since if I remove that, it behaves as expected.)

    I'm just trying to get as much information about this as possible, so I'm armed to speak with support at the Gateway.

    Thanks in advance,
    HowToFoldSoup
    Last edited by HowToFoldSoup; 25 Feb 2011 at 11:19 AM. Reason: Had to turn off link-parsing

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: checkout_payment Error length limitation?

    If you're encountering a 406 response header when you get the blank page, then it's the internal security measures I mentioned earlier. Anything else suggests a bug.

    Specifically the parameter named "hash" is treated as spammy, and triggers the blocking.
    .

    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. v151 Values on Checkout_Payment are not retained after error
    By osulywan in forum General Questions
    Replies: 2
    Last Post: 10 Aug 2015, 06:04 PM
  2. checkout_payment error leads to blank page
    By dbeecken in forum General Questions
    Replies: 5
    Last Post: 26 Apr 2011, 07:20 PM
  3. 404 error on checkout_payment page
    By redduck in forum Built-in Shipping and Payment Modules
    Replies: 20
    Last Post: 23 Feb 2010, 06:54 PM
  4. SQL Error on checkout_payment
    By Fastserv in forum General Questions
    Replies: 0
    Last Post: 2 Oct 2007, 02:51 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