Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

stripe create customer

/*
  Create customer account
*/
const customer = await stripe.customers.create({
  email: user.email, // optional
  name: `${user.first_name} ${user.last_name}`, // optional
  metadata: {
    user_id: 'foo' // Or anything else
  }
})
 
PREVIOUS NEXT
Tagged: #stripe #create #customer
ADD COMMENT
Topic
Name
4+3 =