Skip to content

Using Stripe Connect with node.js

James Padolsey edited this page Oct 23, 2013 · 1 revision

As of 2.1.0-rc2 stripe-node supports passing Stripe Connect access-tokens on a per request basis:

stripe.RESOURCE.METHOD([params...][, ACCESS_TOKEN][, callback]);

For example:

stripe.customers.update(
  yourCustomerId,
  { description: 'Updated description here' },
  accessToken, // Gained from the Connect OAuth POST
  function(err, updatedCustomer) {
    // ...
  }
);

Read more about integrating Connect OAuth flow.