Skip to content
Advertisement

React / Stripe / createPortalLink() with firebase v9

I’m using Stripe extension for Firebase with firebase functions. Since I refactored a bit my code for firebase v9 modular SDK, I’m getting the following console error with my Stripe createPortalLink() function:

JavaScript

Here is my function:

JavaScript

Can anyone please advise?

Thanks

Advertisement

Answer

You need to use the getFunctions() and httpsCallable() functions in the new Modular SDK as shown below:

JavaScript

Checkout the documentation for more details.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement