Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also, how do you get the nonce and chargeAmount when you implement your own method? Your example shows an HTTP get, when the code shows a post to the url. #108

Open
RickRandWhitney opened this issue Feb 8, 2019 · 1 comment

Comments

@RickRandWhitney
Copy link

Also, how do you get the nonce and chargeAmount when you implement your own method? Your example shows an HTTP get, when the code shows a post to the url.

EDIT: looks like the sample code was coppied and pasted from getClientToken

Originally posted by @westlakem in #82 (comment)

@codecoded
Copy link

Hey,

The method signature of your custom method can take the nonce and chargeAmount as arguments which gets populated for you
e.g.
purchase = (nonce: string, chargeAmount: number): Observable<any> => { return this.braintreeService.purchase(nonce, chargeAmount); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants