noisebridge / donate.noisebridge.net

Noisebridge's donation infrastructure
https://donate.noisebridge.net
Other
16 stars 15 forks source link

Replace "$amount raised of $20k" with some monthly stats #66

Open patrickod opened 8 years ago

patrickod commented 8 years ago

We're not using this to fundraise for a specific target now. Let's change this to instead have some monthly stats such as

This likely requires some webhook work to record charges being created by stripe for subscriptions and associating them correctly.

pemulis commented 7 years ago

I'll take a look at this! It would be great to show incoming donations, if only for our own benefit, so that people have a better sense of how Noisebridge's finances operate and where we could fundraise. I do wonder if we should set a new fundraising goal to raise 20% of a down payment for the building. This might require some manual work to show when grants come in -- or even better, donations from companies, to encourage people to talk their employers into giving a tax-deductible donation that would help us stay in the Mission forever.

patrickod commented 7 years ago

We need to first be creating Charge records for all payments, not just the one-time donations that people make by donating on the website. Specifically we need to record charges for the subscriptions that people have set up. The way to do this is via Stripe's webhooks.

We use the webhooks at the moment to send receipts to people for each of their donations, but we could also use them to create Charge records for successful payments. Once we have the code in place we can also paginate through the Stripe event history in our production instance and backfill our statistics.