RedJumpsuit

jobberBase custom development and support

 

Code School

PayPal donate button on Drupal block

i was working on one of my pet projects and needed a simple PayPal donate button that i can put on a block in my site. i searched around on the drupal.org site and saw PayPal Donate module. However, this module creates a page and I need another module to display it as a block instead. so i wrote a small PayPal Donate Block module that i can configure with the information i need.

with this module, i can:

  • specify my donation email
  • the purpose of the donation (and when the user is logged in, it will show in the username in PayPal’s donation page as well, and i can keep track which of the users has made a donation)
  • specify the currency i want to use
  • add some arbitrary text that i can add in the block

here is a screenshot of the block:

Screen shot 2013-01-11 at 6.16.20 AM

and here is the block configuration:

Screen shot 2013-01-11 at 6.25.37 AM

You can download it on GitHub:

https://github.com/redjumpsuit/drupal-paypal-donate-block

Leave a Response