It’s far better to use a plugin such as Easy Digital Downloads as there are many steps you will need to code in e.g.
1) Check if user has paid (by checking if they were referred back successfully by Paypal) and then set the option in the admin area to say yes you have paid
2) Check what you have bought and direct you to download the item
3) Set a limit on number of downloads of product
4) Stop anyone accessing the download page without a download token
Far easier to use one of the many plugins that have been built as there is a lot of work involved in building a custom one which it’s just not worth doing unless you are trying to build something unique.
Related Posts:
- Where are “My Selling Tools”, “Website preferences”, and “Instant payment notifications” in new Paypal website?
- Plugins to Enable Subscriptions of Digital Assets?
- problem using WP_Http with paypal nvp api
- Update the value of a constant
- Processing Forms with Paypal Framework plugin
- Redirect user if the referrer is not PayPal related
- Paypal buttons disappear in the text editor
- Hidden Inputs for Paypal adding Whitespace
- Accept donations to a nonprofit [closed]
- How to solve javax.net.ssl.SSLHandshakeException Error?
- Error:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
- Paypal IPN Verification Postback with HTTPS
- WordPress cp-appointment-calendar redirection to paypal issues
- How to change or add Woocommerce thank you page URL key content?
- Membership / subscription plugins – alternatives [closed]
- Init action hook running late after PayPal’s return url?
- Plugin for event management? [closed]
- Submitting post to database then redirecting to paypal
- Conference website with ticket-sales + sponsorship sales with WordPress?
- How Can I Use $wpdb in PayPal IPN file?
- Conference ticketing and seating module for WordPress [closed]
- Sensible location for IPN Callback script
- Payment on Registration?
- Plugin to book course and pay online for it
- paypal not showing on woocommerce payments
- Add Paypal Button programmatically
- Woo create order only after payment done
- Change WooCommerce PayPal Built-in Default Order Status
- How to access WP database inside ipn.php? [duplicate]
- Check Paypal Purchase is Success or Not in Easy Digital Download Plugin
- Simple Online Payment for Event Registration [closed]
- Send billing info from woocommerce checkout page to paypal checkout form
- Paypal form integration with wordpress registration form without plugin [closed]
- Paypal Post IPN handeling nightmare
- I am trying to grab the title and put it in a paypal form select option
- Creating an online account & ordering system
- Paypal API and WordPress
- How to put Stripe first, PayPal second on the checkout page?
- Add estimated value for a post according to the number of words
- Buy now button and thankyou page for my website?
- Create a registration form with a PayPal checkout fee? [closed]
- Free paypal cart solution [closed]
- How to create a digital product download link that can’t be used twice?
- why is my paypal button not clicable [closed]
- How to send confirmation email after payment made via paypal?
- Adding a metabox shortcode “paypal accept payment” in my custom post type back-end
- Problem with wp_insert_post
- Making the ‘add to cart’ button redirect to PayPal
- WordPress and IPN problem
- Looking for a PayPal donation plugin similar to JoomDonation [closed]
- Constructing a Pay to Download music website with wordpress
- Paypal Framework
- Set the payment processor callbacks to a plugin
- Add Paypal button redirect to a specific page after completing
- Payment field disappears on custom Paypal plugin
- Unpaid PayPal orders switching to “processing”
- “jQuery Not Defined” Error When Connecting to PayPal
- How to force Woocommerce to deliver the product to the paypal adress which was used?
- Am i doing something wrong by getting plugins from github repos?
- Set up PayPal with wrong email by mistake
- how to complete order status automatically after paypal payment received
- How to capture customer’s credit card details via PayPal on my checkout page?
- 504 Timeout gateway when trying to pay for an order in Woocommerce. What else can I do?
- PayPall Button Data Issue
- Paypal not converting currency when using Gravity Forms on WordPress
- What is the proper way to embed the HTML of an external form such as payflowlink from paypal?
- Pay before posting (frontend insert post)
- How to send form values from the script in functions.php and not from the form on my website?
- Custom field within shortcode
- Allow authors to use their own PayPal account and payment process automation [closed]
- Wanted: PayPal plugin for WordPress [closed]
- Plugin recommendation for directory site [closed]
- wordpress not saving form code in code editor
- PayPal button with drop down menu not working [closed]
- PayPal buttons not working after 4.2.4 upgrade
- How I can change PayPal IPN ‘custom’ field in woocommerce?
- What is the easiest and cheapest way to sell a download on my website? [closed]
- From contact form to paypal
- Gravity form with paypal adon should return custom receipt
- PayPal button not showing and cannot retrieve order error in PayPal