firebase-subscription-payments icon indicating copy to clipboard operation
firebase-subscription-payments copied to clipboard

Customer Portal: Doesn't work with Firebase 9 How to solve?

Open aryan1107 opened this issue 3 years ago • 0 comments

Here is my code

billingPortal (){
const functions = getFunctions(functionLocation);
        const addMessage = httpsCallable(functions, 'ext-firestore-stripe-payments-createPortalLink');
        addMessage()
          .then((result) => {
            // Read result of the Cloud Function.
            /** @type {any} */
            const data = result.data;
            const sanitizedMessage = data.text;
            console.log(data)
          });
}

Cany anyone help, my code may be wrong.

aryan1107 avatar Feb 03 '22 10:02 aryan1107