Created
August 6, 2019 15:55
-
-
Save skolhustick/ab4e53937c432651aa4e92a733305be3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const subscribeCustomerToPlan = async (customerId, planId) => { | |
| const subscription = await stripe.subscriptions.create({ | |
| customer: customerId, | |
| items: [{plan: planId}], | |
| }); | |
| console.log(subscription); | |
| return subscription; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment