Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2007
    Posts
    342
    Plugin Contributions
    7

    Default PayPal ipn UnDefined issue

    PHP 7.3
    Request URI: /ipn_main_handler.php, IP address:
    --> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALWPP_REFUNDED_STATUS_ID - assumed 'MODULE_PAYMENT_PAYPALWPP_REFUNDED_STATUS_ID' (this will throw an Error in a future version of PHP) in /var/www/vhosts/domain.com/httpdocs/ipn_main_handler.php on line 446.
    I am seeing the above when a refund has been carried out. Strange on another site the issue does not appear to be showing up. Can anyone help, thanks.
    PHP Code:
         //payment_status=Refunded or payment_status=Voided          $new_status = MODULE_PAYMENT_PAYPALWPP_REFUNDED_STATUS_ID;          if (defined('MODULE_PAYMENT_PAYPAL_REFUND_ORDER_STATUS_ID') && (int)MODULE_PAYMENT_PAYPAL_REFUND_ORDER_STATUS_ID > 0 && !$isECtransaction) $new_status = MODULE_PAYMENT_PAYPAL_REFUND_ORDER_STATUS_ID;          break;        case 'echeck-denied':        case 'denied-echeck':        case 'failed-echeck': 

  2. #2
    Join Date
    Jul 2007
    Posts
    342
    Plugin Contributions
    7

    Default Re: PayPal ipn UnDefined issue

    Thinking about this should
    PHP Code:
    $new_status MODULE_PAYMENT_PAYPALWPP_REFUNDED_STATUS_ID
    be this
    PHP Code:
    $new_status MODULE_PAYMENT_PAYPAL_REFUNDED_STATUS_ID

  3. #3
    Join Date
    Oct 2007
    Location
    Stevenage, GB
    Posts
    70
    Plugin Contributions
    0

    Default Re: PayPal ipn UnDefined issue

    PAYPALWPP is part of code from different module.
    - Freelance Software Developer

  4. #4
    Join Date
    Jul 2007
    Posts
    342
    Plugin Contributions
    7

    Default Re: PayPal ipn UnDefined issue

    Quote Originally Posted by web-project View Post
    PAYPALWPP is part of code from different module.
    Thank you for the guidance and your reply

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,668
    Plugin Contributions
    11

    Default Re: PayPal ipn UnDefined issue

    Quote Originally Posted by web-project View Post
    PAYPALWPP is part of code from different module.
    i'm not really sure how this helps.

    the error is coming from the IPN handler. which as far as i can tell handles transactions for 2 different payment modules: the paypal payments standard and paypal express checkout.

    this undefined constant is part of the paypal express checkout. is that module enabled and are you using it? if you are, i would re-install as you are missing a configuration value in your database.

    if you are not using express checkout, then i would compare your code with the released code for your version. if your code is the same as the released version, than i would suggest you have found a bug in the handler.

    i am not sure where you came up with this suggestion:

    PHP Code:
    $new_status MODULE_PAYMENT_PAYPAL_REFUNDED_STATUS_ID
    that's not a configuration value that i see in v156, and would do nothing except provide a new undefined constant error.

    good luck.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,621
    Plugin Contributions
    123

    Default Re: PayPal ipn UnDefined issue

    This key might have somehow gotten clobbered. If you go to Admin > Modules > Payment, select Express Checkout, note your settings, then remove and re-install the module, that might fix it.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Jul 2007
    Posts
    342
    Plugin Contributions
    7

    Default Re: PayPal ipn UnDefined issue

    Quote Originally Posted by swguy View Post
    This key might have somehow gotten clobbered. If you go to Admin > Modules > Payment, select Express Checkout, note your settings, then remove and re-install the module, that might fix it.
    Thanks but this site is not using Express Checkout

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,621
    Plugin Contributions
    123

    Default Re: PayPal ipn UnDefined issue

    oh ok. Then you might need to wrap the assignment in a check. Something like

    if ($isECtransaction) {
    $new_status = MODULE_PAYMENT_PAYPALWPP_REFUNDED_STATUS_ID;
    }

    or perhaps

    if (defined('MODULE_PAYMENT_PAYPALWPP_REFUNDED_STATUS_ID')) {
    $new_status = MODULE_PAYMENT_PAYPALWPP_REFUNDED_STATUS_ID;
    }
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  9. #9
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,668
    Plugin Contributions
    11

    Default Re: PayPal ipn UnDefined issue

    Quote Originally Posted by swguy View Post
    oh ok. Then you might need to wrap the assignment in a check. Something like

    if ($isECtransaction) {
    $new_status = MODULE_PAYMENT_PAYPALWPP_REFUNDED_STATUS_ID;
    }

    or perhaps

    if (defined('MODULE_PAYMENT_PAYPALWPP_REFUNDED_STATUS_ID')) {
    $new_status = MODULE_PAYMENT_PAYPALWPP_REFUNDED_STATUS_ID;
    }
    i am confused. why would the OP need to do anything? is this not part of the base code? or are we not supporting paypal payments standard?

    if we are not supporting paypal payments standard then should it not be moved out of the distribution? or if we are supporting it, should we not correct it for the next release?

    what am i missing?
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  10. #10
    Join Date
    Jul 2007
    Posts
    342
    Plugin Contributions
    7

    Default Re: PayPal ipn UnDefined issue

    Quote Originally Posted by swguy View Post
    oh ok. Then you might need to wrap the assignment in a check. Something like

    if ($isECtransaction) {
    $new_status = MODULE_PAYMENT_PAYPALWPP_REFUNDED_STATUS_ID;
    }



    or perhaps

    if (defined('MODULE_PAYMENT_PAYPALWPP_REFUNDED_STATUS_ID')) {
    $new_status = MODULE_PAYMENT_PAYPALWPP_REFUNDED_STATUS_ID;
    }
    Not sure if this helps, but I checked another site also using PayPal standard and compared the files from both sites (Zencart 1.5.6c) they are the same and database configuration are the same the only difference the site not showing the error has refund set to Update while the other site is set to Pending, but I wouldn't think that would make a difference. I guess I could try removing the PayPal Standard on the site showing the PHP error and re-install. Its not causing any big issue refunds appear to be going through its just the PHP Warning in the Log. Thanks for a speedy response.

 

 

Similar Threads

  1. Paypal IPN issue
    By alepia in forum Addon Payment Modules
    Replies: 2
    Last Post: 16 May 2011, 03:13 PM
  2. Paypal IPN Issue
    By xx300xxtt3 in forum PayPal Website Payments Pro support
    Replies: 5
    Last Post: 15 Mar 2010, 02:07 AM
  3. PayPal IPN issue
    By Jack28 in forum PayPal Website Payments Pro support
    Replies: 5
    Last Post: 27 Jan 2010, 09:53 PM
  4. Paypal IPN issue - e-check issue...
    By Rasyr in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Jan 2008, 06:07 PM
  5. PayPal IPN issue
    By admcompa in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 31 Jul 2007, 03:38 AM

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