Skip to content

Instantly share code, notes, and snippets.

@jjduhamel
Created March 22, 2016 18:09
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 jjduhamel/325994468d178badb2bf to your computer and use it in GitHub Desktop.
Save jjduhamel/325994468d178badb2bf to your computer and use it in GitHub Desktop.
co(function *() {
var dwolla = yield Dwolla;
var res = yield dwolla.transfers.create({
body: {
'_links': {
'destination': {
'href': 'https://api-uat.dwolla.com/customers/<id>'
},
'source': {
'href': 'https://api-uat.dwolla.com/funding-sources/<id>'
}
},
'amount': {
'value': '<amount>',
'currency': 'USD'
}
}
});
return res;
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment