Instantly share code, notes, and snippets.

@rdpacheco /stripe.js
Last active Mar 31, 2017

Embed
What would you like to do?
Examples of trying to create a new subscription with no trial
function create(stripeId, done) {
stripe.subscriptions.create(
{
customer: stripeId,
trial_end: 'now'
},
done
);
};
function update(stripeId, subscriptionId, done) {
stripe.customers.updateSubscription(
stripeId,
subscriptionId,
{
trial_end: 'now'
},
done
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment