Techbikers / api

The backend for techbikers.com
https://api.techbikers.com
MIT License
4 stars 6 forks source link

Donation platform integration #1

Closed mwillmott closed 7 years ago

mwillmott commented 9 years ago

We need to integrate a donation platform with the Techbikers site to allow our riders to fundraise for any given ride and allow us to track fundraising. The idea of integration is that we want to minimise the amount of form filling and setup on other sites as well as being able to display fundraising info on our site. Last year we used Believe.in but they have since shut down.

We are currently looking at integrating with Givey (givey.com) Just Giving. There are several key areas i see that we can integrate. We are pressed for time so they don't all need to be done and we should figure out what can be done quickly and what should be done first.

The last points i'm not sure how much caching and storing of fundraising info on our side we want to do. Let's not pre-emptively optimise though – i'm happy to hammer the API each time for now ;)

The most important thing is getting the riders donation setup so they can start to fundraise.

mwillmott commented 9 years ago

An overview of the Givey API and how it could work with the above (from @marcqualie – CTO):

mwillmott commented 9 years ago

With the release at https://github.com/mwillmott/techbikers/releases/tag/release-2015-08-18-23-577, we have now got the fundraising system up and running. Users can provide their Just Giving credentials and we will create fundraising pages with all the required details. There are certainly improvements that can be made, especially around error handling/reporting. Currently, if anything goes wrong in this process the page will just hang and not show the user anything useful, even if it's something simple like their JS credentials are wrong.

Next steps are to pull fundraising info into our site and display it on the ride/user pages.

marcqualie commented 9 years ago

Hey @mwillmott, just saw this thread. Based on your last message, does that mean you will not be integrating with the Givey API?

mwillmott commented 9 years ago

@marcqualie not this time i'm afraid. We looked at trying to get it to work but the Givey API just didn't quite fit our needs right now and we needed to get this done quickly. We'll be using Just Giving for at least this ride but we're very happy to switch across to Givey for the future. Might be worth you keeping an eye on this thread/repo so you know what our requirements are and seeing if it fits in with any of your plans over at Givey.

mwillmott commented 9 years ago

Putting together a quick leaderboard for a ride should be pretty easy using this API: https://api.justgiving.com/docs/resources/v1/Leaderboard/GetEventLeaderboard

pawelsawicz commented 9 years ago

Heya, if you have any questions about JustGiving API let me know :)

mwillmott commented 9 years ago

I certainly do @pawelsawicz! I've been working on moving this integration over to your brand new OAuth implementation (rather than asking for credentials which seems to be buggy and is causing us issues). I can't for the life of me figure out how to get ahold of our secret key though.

pawelsawicz commented 9 years ago

@mwillmott ah yes I sent you email about secret key.

mwillmott commented 9 years ago

@pawelsawicz nothing received yet. Can you send to mwillmott [at] gmail.com