WorldWideScripts.net Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Forms

Paypal Trial and Subscription

— Add-On to WorldWideScripts.net

Subscribe to our feed to stay up to date!

New! Follow us as you want it!


Paypal Trial and Subscription - WorldWideScripts.net Item for Sale

Ads

Ad: Bluehost hosting

The Paypal Trial and Subscription script is a PHP Paypal Payment API which allows you to setup a paypal subscription service for an item you have for sale on your website that is “information” based and doesn’t require shipping e.g. tutorial videos, ebooks etc. It is flexible enough to allow you to set a trial price, a trial duration in “months” and a regular selling price and billing cycle thereafter.

The script follows a two stage process.

1. The User submits their details via the paypal_subscription.html page. The details are then processed via the register.php script and written to the “Users” table of the MySQL db. The Paypal form is submitted.

2. The ipn.php script processes the Paypal payment details and, if successful, redirects the user to a thank_you.html page and updates the “Users” table to reflect a successful payment by setting the ‘Paid’ field to 1 and writing the Paypal Transaction ID and registration date.

DEMO

For the demo you will need a Paypal Sandbox Account. You can sign up for one at

https://developer.paypal.com/

You can then create a test personal account within the Sandbox which can be used to simulate a purchase.

Update (13/01/2011) – Version 1.5

Added login.php file to validate users who have completed a successful subscription transaction.

Added a template (welcome.php) which can be used to display protected content. This content can only be accessed by paid subscribers.

Amended paypal_subscription.html file to properly validate Username, password and email fields. Also renamed the file to paypal_subscription.php.

Update regarding the demo site – 11/04/2012

Please note: The demo site is currently offline. I am moving all my script material to a new domain but as I work full time now and long hours it is not easy to find the time to arrange this so please bear with me and my apologies for the inconvenience but I will get to it as soon as I can.


Download
Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers

Properties

Created:
18 November 10

Last Update:
14 January 11

Compatible Browsers:
IE7, IE8, Safari

Software Version:
PHP 5.0 - 5.2, MySQL 5.x

High Resolution:
No

Files Included:
HTML, CSS, PHP, Layered PSD

Keywords

online payments, paypal, paypal button, paypal ipn, paypal payment