Skip to content

Instantly share code, notes, and snippets.

@chani24
Last active February 10, 2021 16:55
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 chani24/9edf3cf14b202d7f35bcbec800ddaf2b to your computer and use it in GitHub Desktop.
Save chani24/9edf3cf14b202d7f35bcbec800ddaf2b to your computer and use it in GitHub Desktop.
const onboardUser = (ref, name, email, phone) =>
fetch("http://api.woven.finance/v2/api/vnubans/create_customer", {
method: "post",
body: JSON.stringify({
customer_reference: ref,
name: name,
email: email,
mobile_number: phone,
}),
headers: {
api_secret: WOVEN_SECRET,
"Content-Type": "application/json",
requestId: new Date(),
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment