Announcements

The New PHP-Fusion USA
by NetriX - 4 weeks ago
Free Hosting
by NetriX - 2 months ago

Latest Posts

MySql?
by daimonbok - 15 hours ago
Video Infusion 3.2.0
by NetriX - 21 hours ago
Version 9 with php 7
by daimonbok - 7 days ago
Facebook Connect 3.0.0
by daimonbok - 1 week ago
URL shortening in PHP
by jim09 - 1 week ago
PHP-Fusion 9 Extensive Demo
by NetriX - 1 week ago
[FORUM RANKS] Flat
by Homdax - 4 weeks ago
The New PHP-Fusion USA
by NetriX - 4 weeks ago
[GUIDE] Optimize PHP-Fusion Website
by NetriX - 4 weeks ago
[FORUM RANKS] ForumCore
by NetriX - 4 weeks ago

View Thread

Who is here? 1 guest(s)
 Print Thread
Donate Panel
skpacman
First, you need a PayPal account. (if you already have one, sign in. If not, get an account, add a bank account to it, then continue.)

After you're signed into PayPal, go to the Merchant Services tab.

Next, click the "Create payment buttons for your website" button.

Then, click the big, blue "Create a button" button.

On the new page, change the type to "Donation", type in your organization's name in the box provided, and make any other changes on that first page.

If you would like to save your button for future use, click on the row that says Step 2 and check the box.

The advanced options row is for if you want to use the IPN service or any other advanced features. The PayPal IPN allows you to get notifications back from PayPal when someone donates so you can do stuff on your website based on your user's donations. That can be covered later.

Once you're done, click the yellow "Create Button" at the bottom.

You will be presented with some HTML code that looks something like this:
Download source  Code
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="XXXXXXXXXXXXX">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>





You can't just stick that in a panel, though. You need to php-fusion-ize it:
Download source  Code
openside("Donate");
?>

<!-- PAYPAL CODE HERE -->

<?php
closeside();




Paste the whole thing into a panel (left, right, whatever), enter your admin password, change the visibility if needed, save it, and enable it.

Now when someone clicks on Donate on your site and their donation is successful, you get money! :)

There are several options I didn't cover here that will need explanations later on, but for now, this will get you started.

There are 10 kinds of people in this world.
Those who understand binary,
and those who don't...
 
ginny
wow, thanks. Just got all of my internet fixed and working.

will do this in the morning and all I can say is thanks so much...

love ya bunches,

ginny


Heart
rock and roll lives...
 
ginny
I cannot get it to come up, it seems I cannot get panel filenme in place. how do I create a donate_panel name in thee?

thanks,

ginny

any ideas.
rock and roll lives...
 
ginny
I hav tried everything and cannot get panel filename in place. it must be simple but my mind is gone.

please help if you would.

ginny

is there some one who would do it for me, we have a small budget but are willing to pay for the time.
rock and roll lives...
 
skpacman
Fill out the donate panel as below. The highlighted fields are required.

www.php-fusion.us/forum/attachments/donate_panel.png

When you're done, click Save Panel. You should be redirected to the panel admin page.

Make sure the panel is active. If the line isn't faded and shows a "disable" button (highlighted below), then it's active.
www.php-fusion.us/forum/attachments/donate_panel_line.png

If you still need help, PM me some login details for your site and I'll take a look. I'll need the PayPal code supplied to you and access to the Panels admin section.
skpacman attached the following images:
donate_panel_line.png donate_panel.png


There are 10 kinds of people in this world.
Those who understand binary,
and those who don't...
 
ginny
OK, thank you very much. Not sure what I missed...

love ya,

ginny
rock and roll lives...
 
daimonbok
Thanks, got this working on 9....was trying to figure out a way then saw your donate button and set mine up...
Edited by daimonbok on 07-27-2017 11:33
 
FreedomIOPList
Would it be possible to do this for a service other than PayPal? Maybe Circle Pay, Google Checkout, Stripe or anything else?
 
daimonbok

>FreedomIOPList wrote:


Would it be possible to do this for a service other than PayPal? Maybe Circle Pay, Google Checkout, Stripe or anything else?


If I remember correctly, I only used the button from paypal, and set it up in a panel in fusion9. Just try it in a panel...

so if it works this way with paypal

openside("Donate"Wink;
?>

<!-- PAYPAL CODE HERE --> (why couldn't you use any other code here)?

<?php
closeside();
 
FreedomIOPList

>daimonbok wrote:


>FreedomIOPList wrote:


Would it be possible to do this for a service other than PayPal? Maybe Circle Pay, Google Checkout, Stripe or anything else?


If I remember correctly, I only used the button from paypal, and set it up in a panel in fusion9. Just try it in a panel...

so if it works this way with paypal

openside("Donate"Wink;
?>

<!-- PAYPAL CODE HERE --> (why couldn't you use any other code here)?

<?php
closeside();


Hmmm, it should. Maybe I will see if I can add a different payment provider to it and get it to work for me. Thank you.
 
Advertisement
daimonbok
No problem, keep us advised...some of us are always looking for new ways to generate funds Grin
 
NetriX
Every service should have a donate code generator, a user could then use the Fusion Tools add on to covert the code to an Php-fusion panel.
 
FreedomIOPList

>NetriX wrote:


Every service should have a donate code generator, a user could then use the Fusion Tools add on to covert the code to an Php-fusion panel.


Thank you very much for that information. I will be checking into that all very soon and if I am successful, I will definitely release my panel to the general public to use as well.
 
Jump to Forum:

Similar Threads

Thread Forum Replies Last Post
users online panel Addon Requests 2 01-02-2017 09:46
[Themes] Blog-e how to add panel [7.02.XX] Themes 5 07-10-2016 02:04
Include Custom Login Panel General Chat 1 05-17-2015 07:39
[PANEL] Top 10 Weblinks [7.02.XX] Code Snippets 22 04-05-2015 16:40
Panel Gaps & Ads General Chat 9 03-25-2015 15:13


WE RECOMMEND THIS HOST - PHP-Fusion Hosting