Page 1 of 1

Automated PayPal/Donor Block

Posted: 15. September 2009 20:05
by Darkicon
I can write custom blocks, but I can't automate them.

I have a block already done, kind of. What it displays is monthly goal, due date, progress bar, donor listings and the actual donate button. I need it totally automated so when someone donates, they get added to the list, the progress bar updates and so forth.

Here is a screenshot of the block:

http://img16.imageshack.us/img16/8274/donorss.jpg

And here is the code for the block:

Code: Select all

{$LR_BLOCK_H_L}&nbsp;<strong>Donations</strong>{$LR_BLOCK_H_R}
             <div style="text-align: left;">
<div class="panel">
	<div class="inner">
		<span class="corners-top"><span></span></span>
         
  <strong>[sG] Donations</strong>
  <br />
  <br />
  <div style="color: white; background-color: black; margin: 10px 0px 5px 0px; padding: 0px 10px 0px 10px; font-weight: bold; min-width:18px; max-width: 400px; width:55px; border: 1px solid black;"><strong>Statistics</strong></strong></div>
  Goal amount:&nbsp;$100.00
  <br />
  Goal date:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sep 29, 09
  <br />
  <br />
  <div style="background-color: gray; width:100px; border: 1px solid black;"><div style="background-color: green; color: white; font-weight:bold; max-width: 100px; width:30px;">&nbsp;&nbsp;&nbsp;$30.00  </div> </div>
  <br />
  <div style="color: white; background-color: black; margin: 10px 0px 5px 0px; padding: 0px 10px 0px 10px; font-weight: bold; min-width:18px; max-width: 400px; width:118px; border: 1px solid black;"><strong>Latest Donations (3)</strong></div>
  <br />
  <strong>Test Donor #1</strong>
  <br />
  Donated $10 on Sep 15, 09
  <br />
  <br />
  <strong>Test Donor #2</strong>
  <br />
  Donated $10 on Sep 14, 09
  <br />
  <br />
  <strong>Test Donor #3</strong>
  <br />
  Donated $10 on Sep 13, 09
  <br />
  <br />
  <PayPal button code goes here>
		<span class="corners-bottom"><span></span></span>
	</div>
</div>
    {$LR_BLOCK_F_L}{$LR_BLOCK_F_R}
If anybody could please help me out with this, I'd be greatly appreciative.

Re: Automated PayPal/Donor Block

Posted: 17. September 2009 17:21
by Teksonic
Not sure if that's possible. Remember they leave your page and go to paypal to make a donation, so if you track the donation as they leave your site and go to paypal, they could simply cancel the transaction then and your site would never update.

Unless Paypal has a feature to send back some kind of confirmation to your site, once a transaction is complete. Then you might be able to use that to update your records. after that inputting the info into the DB and display the info is easy.

Re: Automated PayPal/Donor Block

Posted: 17. September 2009 17:31
by Teksonic
Looking into it more. there does seem to be a feature called "Express Checkout" that uses an API to return information to your site. But I do not know if it works with donation's or only if you sell actually product on your website. more info here

https://www.paypal.com/cgi-bin/webscr?c ... -ref-impl1

Re: Automated PayPal/Donor Block

Posted: 7. December 2009 09:55
by Jaz
Any updates on this guys?