Page 27 of 27 FirstFirst ... 17252627
Results 261 to 269 of 269
  1. #261
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,448
    Plugin Contributions
    11

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by lat9 View Post
    You've apparently got Configuration / Minimum Values / Credit Card Number set to 18 (for whatever reason).
    The option has the following code embedded.
    Code:
    18)    {redacted}
    How it got there is anyone's guess.
    Last edited by lat9; 21 Apr 2025 at 08:13 PM. Reason: redacted unwanted information

  2. #262
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,813
    Plugin Contributions
    0

    Default Re: PayPal RESTful API Payment Module

    That redacted stuff is an old javascript injection via the validation that is at minimum 3 years old, and the domain they were posting to has been offline at least that long
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #263
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,192
    Plugin Contributions
    63

    Default Re: PayPal RESTful API Payment Module

    Zen Cart 2.1.0
    PHP 8.3
    Bootstrap 3.7.4
    PayPal RESTful 1.1.0

    The credit card expiration field, the month of March is there twice, and there is## no expiration option for the month of February.

    Name:  Image2.jpg
Views: 21
Size:  32.9 KB
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  4. #264
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,347
    Plugin Contributions
    94

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by mprough View Post
    Zen Cart 2.1.0
    PHP 8.3
    Bootstrap 3.7.4
    PayPal RESTful 1.1.0

    The credit card expiration field, the month of March is there twice, and there is## no expiration option for the month of February.

    Name:  Image2.jpg
Views: 21
Size:  32.9 KB
    I'm guessing that if you use the browser's developers' tools to inspect that dropdown, there's an 02 id for February but the text reads March. That's a weird date-related issue with the base Zen Cart zcDate class.

  5. #265
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,347
    Plugin Contributions
    94

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by lat9 View Post
    I'm guessing that if you use the browser's developers' tools to inspect that dropdown, there's an 02 id for February but the text reads March. That's a weird date-related issue with the base Zen Cart zcDate class.
    Yep, if you navigate to the admin's index.php?cmd=banner_statistics&page=0&bID=0&type=monthly&month=4, you'll see that "Mar" is repeated there, too.

  6. #266
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    199
    Plugin Contributions
    6

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by lat9 View Post
    Yep, if you navigate to the admin's index.php?cmd=banner_statistics&page=0&bID=0&type=monthly&month=4, you'll see that "Mar" is repeated there, too.
    I found the origin of this problem, and it is not ZcDate class, but the way it is used. It is generally called like this:
    PHP Code:
    $zcDate->output('%b'mktime(000$i))); 
    Where $i is the month number. Day and year are not given as parameter which means the actual date day and year are used.
    Problem is when actual date day is higher than the last day of a month. For PHP it is next month, like 30th of February is actually 2nd of March.
    This bug only appears at the end of the month, from 29 to 31! The 31th of the month is worse case where all month less than 31 days (Feb., April, June,Sept. and Nov.) will be set to next month...

    Solution is to call zcDate class output like this:
    PHP Code:
    $zcDate->output('%b'mktime(000$i,1))); 
    There might be other places in ZC where this needs to be modified...
    For this plugin, file paypalr.php needs to be modified on lines 782 and 1269. Line 874 might need it too, not sure yet.

  7. #267
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    199
    Plugin Contributions
    6

    Default Re: PayPal RESTful API Payment Module

    No modification needed on line 874!

  8. #268
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,347
    Plugin Contributions
    94

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by pilou2 View Post
    I found the origin of this problem, and it is not ZcDate class, but the way it is used. It is generally called like this:
    PHP Code:
    $zcDate->output('%b'mktime(000$i))); 
    Where $i is the month number. Day and year are not given as parameter which means the actual date day and year are used.
    Problem is when actual date day is higher than the last day of a month. For PHP it is next month, like 30th of February is actually 2nd of March.
    This bug only appears at the end of the month, from 29 to 31! The 31th of the month is worse case where all month less than 31 days (Feb., April, June,Sept. and Nov.) will be set to next month...

    Solution is to call zcDate class output like this:
    PHP Code:
    $zcDate->output('%b'mktime(000$i,1))); 
    There might be other places in ZC where this needs to be modified...
    For this plugin, file paypalr.php needs to be modified on lines 782 and 1269. Line 874 might need it too, not sure yet.
    Yep, thanks for the follow-up.

  9. #269
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,192
    Plugin Contributions
    63

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by lat9 View Post
    I'm guessing that if you use the browser's developers' tools to inspect that dropdown, there's an 02 id for February but the text reads March. That's a weird date-related issue with the base Zen Cart zcDate class.
    That's a negative ghost rider =) Looks like PayPal fixed it =)
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

 

 
Page 27 of 27 FirstFirst ... 17252627

Similar Threads

  1. v158 UPS Shipping using RESTful/OAuth API [Support Thread]
    By lat9 in forum Addon Shipping Modules
    Replies: 147
    Last Post: 8 Mar 2025, 06:38 PM
  2. IPower & FirstData API Payment Module
    By spence in forum Addon Payment Modules
    Replies: 6
    Last Post: 7 Jul 2011, 06: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