PayPal Donation Widget is a simple PHP-script that allows you to embed donation box into any HTML-page (PHP-page, ASP-page, whatever-page). It displays recent donors and donation button. Once your visitor donated through widget, his/her name appears in a list. Widget is embedded with 1-line JavaScript code.

Features

Demos

PayPal Donation Widget can be displayed by 6 different ways.

Most recent donors
TOP donors
Recent donors only
TOP donors only
All donors table
All donors comma-separated string

Button only

Installation

Let's imagine that you have website: http://www.website.com/ and you want to install there.

1. Create folder "donationcontest" (use any other name) in root of your domain. Once created it can be reached by URL: http://www.website.com/donationcontest/

2. Unpack zip-archive into this folder and set permission 0777 for folder "data". To make sure that you did everything correctly, open URL http://www.website.com/donationcontest/ in browser, you will see phrase: "Silence is the gold!".

3. Edit config.php and set 6 parameters: script URL (http://www.website.com/donationcontest/), title of widget, your PayPal ID, number of recent donors, currency and target to reach.

4. Embed widget into any page of any website with any of the following modes:

That's it! Enjoy using the PayPal Donation Widget.

If you have problems regarding using this script, please contat me and I'll help you.