Meteor Promises in Accounts.onCreateUser
问题 I would like to create a stripe account during the user registration in meteor and adjusted Accounts.onCreateUser for that purpose with a promise. Accounts.onCreateUser((options, user) => { if (user.services.facebook) { const { first_name, last_name, email } = user.services.facebook; user.profile = {} user.profile.first_name = first_name user.profile.last_name = last_name } else{ user.profile = options.profile } user.stripe = {} return new Promise((resolve,reject) => { stripe.customers.create