-3

In the tutorial docs of implementing Stripe payments with Angular and Firebase it says in a side note:

"Side Note: You will need a paid Firebase account for this cloud function to work. Firebase blocks external API requests on the free “Spark” plan."

Sabeeh Ul Haq
  • 87
  • 2
  • 11
  • Your quote answers your question, so what actually is your issue? – Ken Y-N May 25 '18 at 03:33
  • I am trying to confirm, since the docs for the tutorial are from 2017. https://angularfirebase.com/lessons/angular-stripe-payments-part-2-firebase-cloud-functions-backend/ – Sabeeh Ul Haq May 25 '18 at 03:38
  • So what does the Firebase Spark plan description say about calling external API? – Ken Y-N May 25 '18 at 03:44

1 Answers1

1

Calling to 3rd party web services from Cloud Functions requires a paid project.

You can check this in the Firebase documentation on setting up Cloud Functions:

Firebase projects on the Spark plan can make only outbound requests to Google APIs. Requests to third-party APIs fail with an error. For more information about upgrading your project, see Pricing.

And in the Firebase pricing page:

The Spark plan allows outbound network requests only to Google-owned services.

And in some of the previous questions on the same topic:

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807