-
Notifications
You must be signed in to change notification settings - Fork 308
Conversation
😍 😍 😍 |
Sweet! 👯 |
Awesome!!! |
Oh my word. Here we go! 🙀 |
First traceback! After logging in, I get:
|
Maybe that's a mismatch with the dev marketplace I'm still using? |
Yeah, sorry. I was using a production backup against a test marketplace. With an empty dev db I'm able to proceed. |
var balanced_js = "https://js.balancedpayments.com/1.dev/balanced.js"; | ||
jQuery.getScript(balanced_js, function() { | ||
balanced.init(balanced_uri); | ||
balanced.externalAccount.create('coinbase', Gittip.payments.cb.handleResponse); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This. Is. Wild. You're aweome @kyungmin!
Do we have any ability to pass through the meta params from the Coinbase API docs?
https://coinbase.com/docs/api/permissions#additional-parameters
This part of the Balanced API isn't doc'd yet, so maybe this isn't possible yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, no, we don't have that kind of thing. Maybe we should? This is one great reason to do this kind of thing in public. 😍
So a few first impressions:
Given all that, how about this grouping?
|
Bummertown. @kyungmin , any idea how that'd happen? |
Thanks, but I think we should punt on that. #1165 is going to be a fair bit of work, and this PR is enough to chew on as it is. When we first started talking about bitcoin we actually had people adamantly wanting to not receive BTC unless it was transparently converted to USD, so this behavior fits with our original vision for bitcoin integration, and adds a further wrinkle to the multicurrency problem for us. We'll get there, but let's leave it off this PR. :-) |
Great! Just wanted to make sure the behavior is crystal clear. Payments are hard. So many damn edge cases! |
@steveklabnik @kyungmin I should say that stuckness is after I go through the Coinbase oauth flow. |
Closing in favor of #2053, which is in a branch on the main repo so we can all hack on it. I've added @kyungmin and @matthewfl as collaborators so they should have access. |
Per comment at #2052 (comment)
Hey there! This is the front-end code (and some back-end stuff) to add Coinbase support to Gittip through Balanced.
How it works
People will be able to donate USD gifts, but pay for them via Bitcoins in their Coinbase account.
Screenshots:
Currently, everything looks the same here. We added a little note about the new feature, but you may or may not want that.
After choosing an amount and clicking 'confirm,':
You have the option of paying via credit card or coinbase.
Choosing Coinbase:
A popup window to OAuth to your coinbase account appears. After signing in:
This says "Balanced" right now, but will say Gittip in the future. After confirming:
Your gift is updated and and it's been connected. On the accounts page:
You have the opportunity to see and remove or add the account.
What works in this PR
Basically, I took screenshots of all of this locally, so that all works. Hooray!
To be clear, this means that nobody is actually receiving Bitcoins, because they are instantaneously converted to USD by Coinbase. This means that individuals receiving tips don't have to opt in, they won't even know how much of their tips were sent via BTC.
What still needs to be done
The downside is.... it doesn't actually save this information in the Gittip backend. Some work needs to be done to actually save the funding instrument that comes back from Balanced, and charge from the correct account.
Balanced is obviously happy to help make this happen, but we don't know the Gittip codebase really well, so we should all pitch in with this!
This PR relies on #2036 landing before it can be merged. This PR is based on top of it, you can see all the other commits below.
Furthermore, it would be nice if #1165 could be figured out; this would allow someone to be able to tip in BTC itself, rather than tipping in a certain amount of BTC denominated in USD. We have some mocks for what that UI would look like if you're interested.
Conclusion
❤️ ❤️ ❤️
Let's hash out all the details and get this going!