Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2006
    Posts
    4
    Plugin Contributions
    0

    Default error message when credit card module disabled

    i installed payflo pro to use as my all-in-1 paypal, credit card, etc. and am having some problems. if i turn off the credit card module and try to pay through pp, i get a page of:


    Warning: strstr() [function.strstr]: Empty delimiter. in /var/www/domains/store.sweetbeautyspa.com/docs/includes/modules/payment/payflowpro.php on line 337

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/domains/store.sweetbeautyspa.com/docs/includes/modules/payment/payflowpro.php:337) in /var/www/domains/store.sweetbeautyspa.com/docs/includes/functions/functions_general.php on line 41


    when i keep the credit card module ON, the option to pay by credit card shows up twice in my checkout. and if i try using the second credit card option i get a Result code: 127:

    help? thanks

  2. #2
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: error message when credit card module disabled

    Whats there at line 337 in /var/www/domains/store.sweetbeautyspa.com/docs/includes/modules/payment/payflowpro.php
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  3. #3
    Join Date
    Nov 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: error message when credit card module disabled

    The block of code around line 337 is:
    Code:
          // collapse array into string for command-line submission
          $parmList = '';
          foreach($transaction as $key=>$value) {
            if ($key == 'NAME' || strstr('&', $value) || strstr('=', $value)) {
              $parmList .= '&' .$key . '[' . strlen($value) . ']' . '='.$value;
            } else {
              $parmList .= '&' .$key . '='.$value;
            }
          }
    it's failing on the strstr() call, but I don't know what's in $value at that point.
    Incidentally: when I phoned PayPal about this, the tech said that he's never seen a successful integration from Zen to PayPal, that he has fielded lots of calls with this same error. There's got to be someone who's figured it out.

  4. #4
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: error message when credit card module disabled

    its becuase not all value of $value are getting submitted
    Again there should be something like
    if(empty(!$value))
    inside the for loop...just a suggestion
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

 

 

Similar Threads

  1. Credit Card Module disabled, yet order placed with "Credit Card"
    By retrobec in forum Built-in Shipping and Payment Modules
    Replies: 17
    Last Post: 2 Apr 2010, 03:22 AM
  2. Replies: 1
    Last Post: 26 Oct 2009, 03:30 AM
  3. Why do I have credit card fields when the credit card module is not enabled?
    By RayDube in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 8 Jan 2009, 07:39 PM
  4. wanting to style the error message when credit card declined
    By danwebman in forum General Questions
    Replies: 9
    Last Post: 26 Nov 2008, 09:15 AM

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