Foliovision › Forums › FV Player Pay Per View › Troubleshooting › watch link in Purchase History does not link to the video
-
I have bought and installed the Pay Per View addon.
When I rent a video, I receive an email as expected.Problem 1:
The Purchase Receipt email contains a link to the Purchase History where the domain is missing, like this:
“Here’s the viewing link: /checkout/purchase-confirmation/?payment-confirmation=paypal&payment-id=204&amt=1.00&cc=EUR&cm=204&st=Completed&tx=0S523170SS668690K&payment_key=cb5e97bcece58de0cef9f040c84b4c89”
If I add the domain manually, it directs me to the Purchase Confirmation.Problem 2:
In the Purchase Confirmation page on the website, the “Watch” link links only to the Purchase Confirmation itself, not to the video.When I go to the video on the website, it shows as expected the remaining number of hours and gives me access to the video.
My server runs on AWS Lightsail, with a new WordPress and an up to date PHP. The video is hosted on AWS as encrypted HLS.
Thank you in advance for your help!
Michael
-
-
Hello Girish,
please check wp-admin -> Downloads -> All Downloads and find the item corresponding to your video. You should see the following when you open it for editing:
* a FV Player Pay Per View box
* text like “This video can be found in: {post title}” written inside of that box with a working link to the postAlso, did you please anything else into the shopping cart when making the purchase? Such as two or more items?
Please let us know.
Thanks,
Martinthe system info of EDD says the following (maybe it is interesting for you):
### Begin System Info (Generated 2019-01-04 09:30:02) ### -- Site Info Site URL: https://videos.globalcountry.org Home URL: https://videos.globalcountry.org Multisite: No -- Hosting Provider Host: DBH: localhost:3306, SRV: videos.globalcountry.org -- User Browser Platform: Windows Browser Name: Firefox Browser Version: 64.0 User Agent String: Mozilla/5.0 (Windows NT 10.0; Wi n64; x64; rv:64.0) Gecko/2010010 1 Firefox/64.0 -- WordPress Configuration Version: 5.0.2 Language: en_US Permalink Structure: /%year%/%monthnum%/%day%/%postname%/ Active Theme: Divi 3.19 Show On Front: page Page On Front: Global Country Videos (#174) Page For Posts: Unset ABSPATH: /opt/bitnami/apps/wordpress/htdocs/ Remote Post: wp_remote_post() works Table Prefix: Length: 3 Status: Acceptable WP_DEBUG: Disabled Memory Limit: 40M Registered Post Stati: publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, refunded, failed, revoked, abandoned, processing, active, inactive -- EDD Configuration Version: 2.9.9 Upgraded From: None Test Mode: Disabled AJAX: Enabled Guest Checkout: Enabled Symlinks: Disabled Download Method: Direct Currency Code: EUR Currency Position: before Decimal Separator: . Thousands Separator: , Upgrades Completed: upgrade_payment_taxes,upgrade_customer_payments_association,upgrade_user_api_keys,remove_refunded_sale_logs,update_file_download_log_data Download Link Expiration: hour(s) -- EDD Page Configuration Checkout: Valid Checkout Page: https://videos.globalcountry.org/checkout/ Success Page: https://videos.globalcountry.org/checkout/purchase-confirmation/ Failure Page: https://videos.globalcountry.org/checkout/transaction-failed/ Downloads Slug: /downloads -- EDD Gateway Configuration Enabled Gateways: PayPal Standard Default Gateway: PayPal Standard -- EDD Tax Configuration Taxes: Disabled Tax Rate: 0 Display On Checkout: Not Displayed Prices Include Tax: No -- WordPress Active Plugins Content Control: 1.1.0 Display PHP Version: 1.4 Divi Builder: 2.19.2 Easy Digital Downloads: 2.9.9 Force HTTPS: 1.2.0 Formidable Forms: 3.04.03 Formidable Forms Pro: 3.04.03 FV Player: 7.3.4.727 FV Player PayPerView: 7.2.2.727 FV Player Pro: 7.3.4.727 Login Widget With Shortcode: 5.8.4 User Role Editor: 4.47 (needs update - 4.48) WP Mail SMTP: 1.4.1 -- WordPress Inactive Plugins All-in-One WP Migration: 6.82 ARI Adminer: 1.1.12 Simple Tags: 2.4.7 Tag Pages: 1.0.1 -- Webserver Configuration PHP Version: 7.0.31 MySQL Version: 5.7.23 Webserver Info: Apache -- PHP Configuration Memory Limit: 256M Upload Max Size: 40M Post Max Size: 40M Upload Max Filesize: 40M Time Limit: 120 Max Input Vars: 1000 Display Errors: N/A PHP Arg Separator: & -- PHP Extensions cURL: Supported fsockopen: Supported SOAP Client: Installed Suhosin: Not Installed -- Session Configuration EDD Use Sessions: Enabled Session: Disabled ### End System Info ###
- This reply was modified 5 years, 9 months ago by Martin.
Hello Girish,
please post a new FV Player to a different post and fill in the Pay Per View information in it as seen in the step 1 & 2 here: https://foliovision.com/player/pay-per-view/how-to#using-pay-per-view-with-shortcode-editor
Then inspect the EDD item again and see if the “This video can be found in” contains a link to that post.
I wonder how it could disappear for your video.
Thanks,
MartinHi Martin,
thank you for looking at this again. I created a new post with a new paid video, following the instructions, but whatever I do, the “This video can be found in:” is empty.
I also did the same while the plugin “Content Control” was deactivated to make sure there is no plugin conflict, but no difference.
Shall I give you access to the website?
Hello Girish,
before we get to that, could you please run the following on the browser console to help us understand the issue a bit more?
jQuery('#post_ID').val()
Let’s see if that gives you the post ID properly. First open a post where your video is present, then do a right click anywhere on the page and select “Inspect”. That way the browser developer tools will open and there you will be able to open the console and run the above command in it.
Thanks,
MartinI messed up the FV Player: I wanted to reinstall the plugins, so I deactivated them, removed them, and downloaded them again, but now something is out of sync. When I create a player now, it cannot find the video (the Admin Checker says OK, but it does not play). If I want to delete/edit/clone/export it in the backend, it says “Invalid Player ID”.
Bah.
Having said this, the #post_ID is undefined in the post.Here are small observations that I made in the Pay per View plugin:
– the blue button “Watch Full Video” inside the video window does not seem to work (does not put the item into the cart), only the link below the video window does.
– when I have paid the video as a not-logged in user, I cannot make it play, the website wants me to pay again. In the settings, the Paypal IPN verification is enabled. When I disable the Paypal IPN verification, same problem. If I pay the video as a logged-in user, I can play it!
This is not a real problem for me because I will force all users to have a user account.
– When I watch the video, having paid, below the video window there is the message “You have xx hours to watch the video”, and below shows the blue button “1 EUR — Purchase ->”, which may confuse unexperienced users because they have paid already.However, your plugin is great!
Greetings from the Netherlands!
Hello Girish,
to conclude the previous issue you were having – in the end we checked the issue on your website and found there was indeed a bug in FV Player Pay Per View which we fixed. So now you are no longed having issues with linking the player to the EDD item.
We also found that the link to the EDD item is not created if you create the player on the wp-admin -> FV Player screen. We will have to restrict that as it needs the post ID and there is no such thing on that wp-admin -> FV Player screen – it’s not a post.
Now about the new issues you are having:
1) “Watch Full Video” on top of video not working – thank you for the bug report, there was some change in EDD which caused this. New version of FV Player Pay Per View 7.3.8.727 is out now.
2) Not playing for non-logged in users – FV Player Pay Per View automatically creates the user account for anybody who pays. When using PayPal, you are redirected back to the website after making the payment and you are actually already logged in.
So on the “Purchase Confirmation” you can see the list of “Products” where you get a “Watch” link leading directly to the video which you purchased. It looks like on the “The user will see all the details of his purchase” screenshot found on https://foliovision.com/player/pay-per-view/how-to
The email which is then sent to the user contains a special viewing link which lets the user watch the video even without logging in. And the login details are sent in a separate email.
But I see that the popup with the buy buttons or the buy buttons below the player could mention that you must log in if you already paid for the video.
3) I was not able to reproduce the issue with “1 EUR — Purchase ->” appearing below the “You have xx hours to watch the video” message.
Thanks,
MartinHi Martin,
thank you for your explanations!
Since days I was fighting with creating a download so that the purchase message and the purchase history page point to the post containing the video.
The solution was that I had to disable the new Gutenberg Editor, then only I see the FV tool and can create the post properly.
Maybe you want to add this in your docs, it can save someone’s soul.
Greetings,
Michael