Pay Per View

Sell digital content for one-off or subscription payments using PayPal and credit cards.

Version 1.4.1.9

  • Add day, month, year choices to Daily Pass. Changed name to Period Pass
  • Add day, month, year choices to Subscriptions.

Changelog

April 4, 2014 - version 1.4.1.9
  • Add day, month, year choices to Daily Pass. Changed name to Period Pass
  • Add day, month, year choices to Subscriptions.

December 12, 2013 - version 1.4.1.8
  • Record user id if logged in for one time payments.
  • Added new WPMUDEV dashboard.

September 9, 2013 - version 1.4.1.7
  • Added Registration link for Wordpress login
  • Fixed problems with Twitter API 1.1 changes.
  • New version of twitteroauth library

July 7, 2013 - version 1.4.1.6
  • For subscriptions the Wordpress login is always enabled now even if API is unchecked.

June 6, 2013 - version 1.4.1.5

    June 6, 2013 - version 1.4.1.3
    • Fixed confirm button double press problem. Missing exit on wp_redirect.

    May 5, 2013 - version 1.4.1.2
    • Added proper escaping to SQL
    • Broke out ChangeLog.txt
    • Standardized language file

    March 3, 2013 - version 1.4.1.1
    • Transaction date fixed
    • Long post titles are not creating 10001 PayPal error now

    January 1, 2013 - version 1.4.1
    • New admin warning if default permalink structure is used
    • In automatic mode, pending transactions are also accepted now. In this case admin is noticed with an email
    • Fixed an issue when cookie validity time is set as zero
    • Translation base file is now presented as ppw.pot

    October 10, 2012 - version 1.4
    • New template function to be used for html codes, e.g. a video embed code
    • More php notices fixed
    • ajaxurl is now called at the correct location
    • Customization Instructions has been moved to its submenu page

    September 9, 2012 - version 1.3
    • Cookie validity time is now adjustable
    • Display on home page with multiple posts behaviour changed
    • Possibility to have a custom css file outside the plugin directory added
    • Several php notices fixed
    • Broken tags in Automatic method are now automatically repaired
    • Now css and js files are only loaded to the related pages
    • Amount to be paid for One Time View is now visible on PayPal website
    • Google+ login added

    April 4, 2012 - version 1.2.1

      March 3, 2012 - version 1.2

        March 3, 2012 - version 1.1

          March 3, 2012 - version 1

            Downloads 22,789

            Compatibility WordPress 4.1 Multisite 4.1 BuddyPress 2.2

            "I'm always amazed when I receive the email updates showing the new plugin WPMU DEV has developed or amped up."

            Roy Edlund

            Pay Per View allows you to sell your digital content and accept one-off, daily or subscription payments.

            Whether you want to sell tutorials, databases, videos, audio clips, ebooks or more, Pay Per View allows you to easily monetize your site.

            Pay Per View is Easy to Use

            Simply install and activate the plugin. A Pay Per View icon will appear in the Visual Editor for your pages and posts.

            Pay Per View
            Easily choose which articles require payment to view

            Pay Per View works and looks great out-of-the-box, and is entirely customizable.

            Whether you want to run a small business selling video tutorials or sell your educational ebooks, Pay Per View lets you seamlessly sell digital content without having to set up a shopping cart or membership site.

            Pay Per View frontend
            Show a snippet of content and require payment for the rest

            Pay Per View provides a simple fast way to monetize the content on your site.

            Pay Per View is Feature-rich

            Just link your PayPal account and you’re ready to start charging users for accessing your content.

            • Protect content in posts and pages. Just use the Visual Editor to easily protect content and ask for payment.
            • Easily customizable. Tailor how you display content and accept payments to your liking.
            • Easily accept payments and subscriptions. Make it easy for users to pay for your content in single payments or as subscriptions.
            • Let users sign with with their social media account. There’s no need for visitors to create an account with you. Let them sign in with Facebook, Twitter or Google+.
            • Accept credit card and PayPal payments. You’ll be up and running taking payments in no time.

            To Get Started

            Start by reading Installing plugins section in our comprehensive WordPress and WordPress Multisite Manual if you are new to WordPress.

            Configuring the Settings

            Once installed and activated, you’ll see a new menu item in your WordPress Dashboard: Pay Per View

            PayPerView Dash

            After clicking Pay Per View go to the ‘General Settings’ to get your Plugin set up.

            PPV Settings

            6. Once you’ve completed your General Settings (which should be straight forward), you can move on to create your first post, using the Pay Per View Plugin functionality.

            When creating a new post or page, there will be a new tool in your editor: The Pay Per View Selection Tool

            PPV Editor button

            This button is for adding Pay Per View protection to the current selected content. Upon clicking, there will be a Pay Per View pop up window that will allow you to set a brief description of the selected content, and set your price as well.

            PPV Insert

            Pay Per View also has some unique options in the sidebar when creating a new page or post.

            1. Enabled 2. Method 3. Excerpt length 4. Price (USD)
            1. Enabled
            2. Method
            3. Excerpt length
            4. Price (USD)

            1. Enabled: Selects if Pay Per View is enabled for this post or not. If ‘Follow global setting’ is selected, General Setting page selection will be valid. ‘Always enabled’ and ‘Always disabled’ selections will enable or disable Pay Per View for this post, respectively, overriding general setting.

            2. Method: Selects the content protection method for this post. If ‘Follow global setting’ is selected, method selected in General Settings page will be applied. If you want to override general settings, select one of the other methods. With ‘Use Selection Tool’ you need to select each content using the icon on the editor tool bar. For other methods refer to the settings page.

            3. Excerpt length: If you want to override the number of words that will be used as an excerpt for the unprotected content, enter it here. Please note that this value is only used when Automatic Excerpt method is applied to the post.

            4. Price (USD): If you want to override the default price to reveal this post/page, enter it here. This value is NOT used when Selection Tool method is applied to the post.

            There we have it! Click ‘Publish’ and view the final result:

            Final result when using the WPMU DEV Network Theme

            Final result when using the WordPress Twenty Eleven Theme

             

            Using Pay-per-view Directly In Your Templates

            If you want to protect content that is outside of the post content (in a custom field, for example) then you can use the template function wpmudev_ppw_html.

            This function replaces the HTML with payment buttons, revealing the content only when payment is confirmed.

            For example, the following the code snippet, when added to a theme template, hides a YouTube video until the $1.50 PPV fee has been paid:

            <?php
            if ( function_exists( 'wpmudev_ppw_html' ) ) {
            $html = '<iframe width="560" height="315" src="https://www.youtube.com/embed/-uiN9z5tqhg" frameborder="0" allowfullscreen></iframe>'; // html code to be protected (required)
            $id = 1; // An optional unique id if you are using the function more than once on a single page
            $description = 'video'; // Optional description of the protected content
            $price = '1.50'; // Optional price for a single view. If not set, price set in the post will be applied. If that is not set either, Unit Price in the Global Settings will be used.
            echo wpmudev_ppw_html( $html, $id, $description, $price );
            }
            ?> 

            Note: The content is always protected regardless of the PPV settings for the page or post.

            As well as protecting the content using the wpmudev_ppw_html function, you also need to ensure that the PPV stylesheet and javascript files are included in the page.  This can be done as follows:

            <?php
            function my_ppv_customization( ) {
            global $ppw, $post;
            if ( !is_object( $ppw ) || !is_object( $post ) ) return;
            // Call this only for a post/page with ID 123. Change as required.
            // If you omit this line, js and style files will be added to all of your pages and caching will be disabled. So it is recommended to keep and modify it for the pages you are using.
            if ( $post->ID != 123 ) return;
            $ppw->load_scripts_styles();
            }
            add_action( 'template_redirect', 'my_ppv_customization', 2 );
            ?>