Foliovision › Forums › FV Player › Bug Reports › videos can still be watched after rental period over
-
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
-
-
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
UlfDear 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
UlfHello 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,
MartinDear 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 hourIt 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
UlfDear 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
UlfHello 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