{"action":"created","issue":{"url":"https://api.github.com/repos/angelleye/paypal-woocommerce/issues/426","repository_url":"https://api.github.com/repos/angelleye/paypal-woocommerce","labels_url":"https://api.github.com/repos/angelleye/paypal-woocommerce/issues/426/labels{/name}","comments_url":"https://api.github.com/repos/angelleye/paypal-woocommerce/issues/426/comments","events_url":"https://api.github.com/repos/angelleye/paypal-woocommerce/issues/426/events","html_url":"https://github.com/angelleye/paypal-woocommerce/issues/426","id":137790891,"number":426,"title":"Braintree Partner API","user":{"login":"angelleye","id":629241,"avatar_url":"https://avatars.githubusercontent.com/u/629241?v=3","gravatar_id":"","url":"https://api.github.com/users/angelleye","html_url":"https://github.com/angelleye","followers_url":"https://api.github.com/users/angelleye/followers","following_url":"https://api.github.com/users/angelleye/following{/other_user}","gists_url":"https://api.github.com/users/angelleye/gists{/gist_id}","starred_url":"https://api.github.com/users/angelleye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelleye/subscriptions","organizations_url":"https://api.github.com/users/angelleye/orgs","repos_url":"https://api.github.com/users/angelleye/repos","events_url":"https://api.github.com/users/angelleye/events{/privacy}","received_events_url":"https://api.github.com/users/angelleye/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angelleye/paypal-woocommerce/labels/feature%20request","name":"feature request","color":"bfd4f2"}],"state":"open","locked":false,"assignee":{"login":"kcppdevelopers","id":13145461,"avatar_url":"https://avatars.githubusercontent.com/u/13145461?v=3","gravatar_id":"","url":"https://api.github.com/users/kcppdevelopers","html_url":"https://github.com/kcppdevelopers","followers_url":"https://api.github.com/users/kcppdevelopers/followers","following_url":"https://api.github.com/users/kcppdevelopers/following{/other_user}","gists_url":"https://api.github.com/users/kcppdevelopers/gists{/gist_id}","starred_url":"https://api.github.com/users/kcppdevelopers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcppdevelopers/subscriptions","organizations_url":"https://api.github.com/users/kcppdevelopers/orgs","repos_url":"https://api.github.com/users/kcppdevelopers/repos","events_url":"https://api.github.com/users/kcppdevelopers/events{/privacy}","received_events_url":"https://api.github.com/users/kcppdevelopers/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angelleye/paypal-woocommerce/milestones/2","html_url":"https://github.com/angelleye/paypal-woocommerce/milestones/1.2","labels_url":"https://api.github.com/repos/angelleye/paypal-woocommerce/milestones/2/labels","id":613837,"number":2,"title":"1.2","description":"Full 1.2 release.","creator":{"login":"angelleye","id":629241,"avatar_url":"https://avatars.githubusercontent.com/u/629241?v=3","gravatar_id":"","url":"https://api.github.com/users/angelleye","html_url":"https://github.com/angelleye","followers_url":"https://api.github.com/users/angelleye/followers","following_url":"https://api.github.com/users/angelleye/following{/other_user}","gists_url":"https://api.github.com/users/angelleye/gists{/gist_id}","starred_url":"https://api.github.com/users/angelleye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelleye/subscriptions","organizations_url":"https://api.github.com/users/angelleye/orgs","repos_url":"https://api.github.com/users/angelleye/repos","events_url":"https://api.github.com/users/angelleye/events{/privacy}","received_events_url":"https://api.github.com/users/angelleye/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":16,"state":"open","created_at":"2014-03-29T07:02:36Z","updated_at":"2016-03-08T06:25:16Z","due_on":"2016-03-31T05:00:00Z","closed_at":null},"comments":4,"created_at":"2016-03-02T06:56:09Z","updated_at":"2016-03-08T18:08:14Z","closed_at":null,"body":"In #370 we added Braintree.  This is working fine, but PayPal really wants us to use their Partner API to onboard new people signing up for Braintree.  This will allow them to get signed up and ready to process directly from within the plugin flow.\r\n\r\nWe need to implement this based on the [partner API documentation](https://developers.braintreepayments.com/guides/partner-api/overview).\r\n\r\nI believe there is a snap-in UI that comes with this, too, that we would implement as well.  I'm still not 100% clear on whether it's different than the one we already implemented or not.  We'll need to look into that more.\r\n\r\nWoo has actually done this already in a free extension they are providing:  https://wordpress.org/plugins/woocommerce-gateway-paypal-powered-by-braintree/\r\n\r\nWe can use that as a reference for what we need to be doing here, too.\r\n\r\nIf we can, we should just tie this into the Braintree integration we already have.  So the final product would be that we can onboard new merchants using this partner API, and then use the stuff we've already done (plus potentially an additional one here) to use the service accordingly."},"comment":{"url":"https://api.github.com/repos/angelleye/paypal-woocommerce/issues/comments/193895811","html_url":"https://github.com/angelleye/paypal-woocommerce/issues/426#issuecomment-193895811","issue_url":"https://api.github.com/repos/angelleye/paypal-woocommerce/issues/426","id":193895811,"user":{"login":"angelleye","id":629241,"avatar_url":"https://avatars.githubusercontent.com/u/629241?v=3","gravatar_id":"","url":"https://api.github.com/users/angelleye","html_url":"https://github.com/angelleye","followers_url":"https://api.github.com/users/angelleye/followers","following_url":"https://api.github.com/users/angelleye/following{/other_user}","gists_url":"https://api.github.com/users/angelleye/gists{/gist_id}","starred_url":"https://api.github.com/users/angelleye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelleye/subscriptions","organizations_url":"https://api.github.com/users/angelleye/orgs","repos_url":"https://api.github.com/users/angelleye/repos","events_url":"https://api.github.com/users/angelleye/events{/privacy}","received_events_url":"https://api.github.com/users/angelleye/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T18:08:14Z","updated_at":"2016-03-08T18:08:14Z","body":"I actually just got word that we are not required to add this partner API the way they originally said.  It looks like you already have a lot of progress made on this, though, so we might as well finish it up.\r\n\r\nThat said, I'm not exactly sure how you've gone about this, but I don't want to add this as a completely separate gateway option.  \r\n\r\nWe already have our Braintree tab in our settings page.  Within that we just have a link to the WooCommerce checkout settings like all the others.  What we can do is go ahead and add a way to \"Sign up for Braintree Credit Card Processing\" from within our Braintree settings tab.  We can build the process of signing up through the partner API into this.\r\n\r\nOnce they've signed up we should be able to have them grab their credentials and plug them in themselves just like they would now.  No need for hosted credentials or any of that.\r\n\r\nDoes that all make sense?"}}