Guest User

Untitled

a guest
Jan 15th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. componentDidMount() {
  2. window
  3. .fetch("https://connect.stripe.com/oauth/token", {
  4. method: "post",
  5. headers: {
  6. Accept: "application/json",
  7. },
  8. body: JSON.stringify({
  9. code: this.props.query.code,
  10. grant_type: "authorization_code"
  11. })
  12. })
  13. .then(response => console.log(response));
  14. }
Add Comment
Please, Sign In to add comment