Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created November 14, 2017 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/8243070996fbb0f19cf5f0ef3ca77fff to your computer and use it in GitHub Desktop.
Save goofmint/8243070996fbb0f19cf5f0ef3ca77fff to your computer and use it in GitHub Desktop.
request.show()
.then(result => {
return fetch('/pay', {
method: 'POST',
credentials: 'include',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(result.toJSON())
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment