Skip to content

Instantly share code, notes, and snippets.

@leonkyr
Created August 28, 2019 01:49
Show Gist options
  • Save leonkyr/4230494362587d8c46da2a2b5c162a3a to your computer and use it in GitHub Desktop.
Save leonkyr/4230494362587d8c46da2a2b5c162a3a to your computer and use it in GitHub Desktop.
stripe-connect-accept-terms
stripe.accounts.update(accountId, {
metadata: { internal_id: "Tradie-2" },
tos_acceptance: {
date: Math.floor(Date.now() / 1000),
ip: "61.69.124.163" // Assumes you're not using a proxy
}
}).then(function (account) {
console.log(JSON.stringify(account, null, 2));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment