Skip to content

Instantly share code, notes, and snippets.

@goofmint

goofmint/index.js

Created Nov 14, 2017
Embed
What would you like to do?
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