• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

videos can still be watched after rental period over

[Solved]

Foliovision › Forums › FV Player › Bug Reports › videos can still be watched after rental period over

  • Ulf M. 1 year, 2 months ago

    Dear Martin,
    we are facing another issue. Oour rental period is not expiring. For testing we set rental period to 1 hour but the video is still visible and watchable even after 24 hours. It does not work.

    Any idea why rental period not expiring?
    Best
    Ulf

    bildschirmfoto-2024-03-29-um-09-15-53
    Bildschirmfoto-2024-03-29-um-09.15.53
    bildschirmfoto-2024-03-29-um-09-15-44
    Bildschirmfoto-2024-03-29-um-09.15.44
Viewing 10 replies - 1 through 10 (of 10 total)
  • Ulf M. 1 year ago

    Dear Martin,
    as we are working still on a test stage I am happy to share login credentials with you if needed so you can check directly in our wordpress.

    I raised the question to my developer if our custom code in widget could cause this issue: here is his answer:

    No, for making the order. I have used the WooCommerce default functionality. I have also tested by purchasing the movie with the default flow so that I can check if the issue was in my code.

    But no, when I ordered with the default flow, the order didn’t expire.

    Do we miss any setting in fv player or setting in product page?
    Best
    Ulf

    Ulf M. 1 year ago

    Dear Martin,
    we managaged to make it work. You can close this request.
    Thanks
    Ulf

    Martin 1 year ago

    Hello Ulf,

    Please let us know what was the issue. I wonder if anything was not clear in FV Player or if it was perhaps an issue with a cache plugin.

    Thanks,
    Martin

    Ulf M. 1 year ago

    Dear Martin,
    here the answer from my developer:

    The issue was:
    While we are renting a product, it will be rented for a certain amount of time. But after that time, the user was still able to access the video/product.

    To resolve this, when the user makes the payment, the order is successfully created. I get the order time and add the rented time to it. Which gives me the time on which the order is supposed to expire.

    Then I used WordPress scheduling to change the status of the order to expire (which is a custom status). And now the user is not able to access the video after the rental time has expired.

    Please let me know if there is anything that is confusing.

    I am unsure if this was the correct way to do it?
    I am not a developer, just the customer ;(
    Best
    Ulf

    Martin 1 year ago

    Hello Ulf,

    This must work out of the box and there’s no way you should have to create some custom scheduled jobs to expire the Pay Per View video.

    I was not able to reproduce the issue though.

    Does it happen for a real user or is it some test purchase where you are trying to adjust the purchase date to double-check that it will indeed expire and the buyer will no longer be able to watch the video?

    Thanks,
    Martin

    Ulf M. 1 year ago

    Dear Martin,
    it was not working out of the box in many test cases:

    a. set streaming period to 1 hour
    b. rent video
    c. wait one hour

    It was always not working in several tests with 1 hour, 12 hours, 24 hours. We did not adjust streaming period after purchasing/renting. For sure we are using stripe and paypal sandbox for payment testing still on dev stage.

    The way my developer implemented it now works now but it seams he used a work arround to accomplish this. More and more I get the fealing that he did many custom code adaption and not using the FV Player standards ;(

    Any suggestion on this?
    Best
    Ulf

    Martin 1 year ago

    Hello Ulf,

    Please let us know if you used a brand not user for the test or if it was any user of a Editor or Administrator user role.

    Let us know if you use any WordPress cache plugin too. If so, is it set to cache also logged in users?

    Are you using Cloudflare?

    Thanks,
    Martin

    Ulf M. 1 year ago

    Dear Martin,
    we tested both:

    admin users
    new registered users (subsribers)

    Both show same issue. Rental period not expiring.

    Here also again a note from my developer:

    I haven’t added the excessive custom code to the website. I have used the default flow of the plugin and just changed the design as you have provided. And I have only made the required changes. That needs to be done as per your provided design. I am not sure why some of the plugin’s functionality isn’t working. 

    And this is not because of my custom coding, as I have already checked the default flow after removing code. But the same issues were occurring. 

    We do not use caching plugin. But we use wp super minify to optomize.
    I can provide full list of plugins we use.
    We do not use cloudfare.

    Is it correct to have installed all three FV plugins?:
    FV Player
    FV Player Pro
    FV Player PayPerView WooCommerce
    Thanks
    Ulf

    Martin 1 year ago

    Hello Ulf,

    Please get a new FV Player Pay Per View for WooCommerce ZIP file from https://foliovision.com/my-licenses

    Then reinstall the plugin from that ZIP file and make sure you enable wp-admin -> Settings -> FV Player PPV -> Debug.

    Finally when you come to a video as the user you should see how the plugin sees the user purchase and what time is left to watch the video. You can check this on the browser JavaScript console and here’s an example of what it might look like:

    FV Player Pay Per View Debug
    User purchases from user_id #32 
    [{…}]
    WooCommerce ID to look for
    147811
    Purchase product ID
    147811
    Purchase product get_date_completed
    {date: '2024-04-03 12:49:53.000000', timezone_type: 1, timezone: '+00:00'}
    Purchase date
    1712148593
    Rental duration
    48
    Seconds left
    162855
    Access permitted
    {364ad55aee135ab21fc4beec3f72da0e: {…}, 491ad806bd41bd394de0105fb1ae58de: {…}}
    Time Left
    45 hours

    If the time does not seem to ever count down for you we should see that the “Time Left” will not match the Purchase date (which is unix timestamp) or the Purchase product ID will be wrong.

    Thanks,
    Martin

    Ulf M. 1 year ago

    Dear Martin,
    thanks. We will try tomorrow and give you feedback asap.
    Best
    Ulf

Viewing 10 replies - 1 through 10 (of 10 total)
Reply To: videos can still be watched after rental period over



Please Sign in or Register to upload files.

Related Posts

  1. Luxury Furniture Rental, LuxuryFurnituRerental.ca

  2. When begins the licese period?

    When begins the licese period?

  3. How to Show Recently Watched Videos with Elementor

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!