#The_Xs - Portal
1 messages · Page 1 of 1 (latest)
stripe@8.211.0
hello!
const session = stripe.billingPortal.sessions.create({
//customer: 'cus_LNiUVElBoxPIPX',
customer: customerId,
return_url: 'http://localhost/',
});
console.log(chalk.green('Sessions: ' + session.url))
That won't work as-is. stripe.billingPortal.sessions.create returns a Promise, and you're not waiting for the Promise to resolve before you hit the log statement.