+ Reply to Thread
Results 1 to 6 of 6

Thread: PayAsYouGoCredits does not show expiration date

  1. #1

    PayAsYouGoCredits does not show expiration date

    Hello flynax team....New PayAsYouGoCredits plugin does not show expiration date.
    I checked it with demo using Bank transfer payment gateway for buying credits.
    It was showing expiration date at previous version using all kind of payment gateways.
    Attached Images Attached Images
    Last edited by Bahram Soltanirad; September 4, 2019 at 11:36 AM.

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    It seems that the plugin has been updated incorrectly

    create a ticket to investigate the problem

  3. #3
    Hello Rudi, i checked it with fresh installation in demo. Please check with demo

  4. #4
    Although, flynax is not kind to me sometimes, but I always try to help.

    Solution:
    Go to Plugins/PayAsYouGoCredits/rlCredits.class.php
    Find below code:

    Code:
    Only registered members can view the code.
    It uses php time() function which is a Unix time number, while paygc_pay_date is a mysql date column.
    So just change
    Code:
    Only registered members can view the code.
    to
    Code:
    Only registered members can view the code.

  5. #5
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello Bahram,

    Yes, the problem really exists although it was fixed but somehow passed by the last update

    it's enough to use 'NOW()' instead of date('Y-m-d H:i:s',time())

    Sorry for the inconveniences!
    Last edited by Rudi; September 12, 2019 at 09:11 AM.

  6. #6
    Yes, good point. Thanks

    Quote Originally Posted by Rudi View Post
    Hello Bahram,

    it's enough to use 'NOW()' instead of date('Y-m-d H:i:s',time())

+ Reply to Thread