How to pass a property into an https function when it’s called?

I've been implementing stripe into my app with typescript and I have the following function:

exports.deleteStripeCustomer = functions.https.onCall((data, context) => { 
  const deleted = await stripe.customers.del(
    "I need to add the customers ID here"

In that string where I need to add the customerID, I would like to add the customer ID from my swift code where I'm already listening for that ID and add it to the function when it's called.

In swift this would be done like this:

func sayHello(name: string) {
    print("hello \(name)")

and then when the function is called the id is passed in from somewhere else like this:

sayHello(name: usersName)

any idea how this is done in typescript?

Thanks in advance, any help is appreciated!

Read more here:

Content Attribution

This content was originally published by devOP1 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: