{"action":"opened","issue":{"url":"https://api.github.com/repos/srikanthonl/ngx-braintree/issues/46","repository_url":"https://api.github.com/repos/srikanthonl/ngx-braintree","labels_url":"https://api.github.com/repos/srikanthonl/ngx-braintree/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/srikanthonl/ngx-braintree/issues/46/comments","events_url":"https://api.github.com/repos/srikanthonl/ngx-braintree/issues/46/events","html_url":"https://github.com/srikanthonl/ngx-braintree/issues/46","id":307709548,"number":46,"title":"Allow custom functions to be passed for ClientToken and CreatePurchase calls","user":{"login":"Destreyf","id":967304,"avatar_url":"https://avatars3.githubusercontent.com/u/967304?v=4","gravatar_id":"","url":"https://api.github.com/users/Destreyf","html_url":"https://github.com/Destreyf","followers_url":"https://api.github.com/users/Destreyf/followers","following_url":"https://api.github.com/users/Destreyf/following{/other_user}","gists_url":"https://api.github.com/users/Destreyf/gists{/gist_id}","starred_url":"https://api.github.com/users/Destreyf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Destreyf/subscriptions","organizations_url":"https://api.github.com/users/Destreyf/orgs","repos_url":"https://api.github.com/users/Destreyf/repos","events_url":"https://api.github.com/users/Destreyf/events{/privacy}","received_events_url":"https://api.github.com/users/Destreyf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-22T16:05:23Z","updated_at":"2018-03-22T16:05:23Z","closed_at":null,"author_association":"NONE","body":"I think it'd be helpful if we could pass in a custom function for resolving the client token and create purchase urls, this would allow somebody to use any http library or headers/functions that are needed, and it'd possibly reduce any friction, the function would perferrably return an observable and the final calls would just subscribe to either the service or the custom function passed in so that the event can be triggered, as long as the observable returns the data in a given format it should work great."}}
{"actor":{"display_login":"Destreyf"}}