0

I am going through Stripe's documentation to create an express account (Stripe Connect). I made it to step 2.3.

But get the following error (I'm using iOS, Swift):

Cannot find 'Settings' in scope

for this line:

if let url = URL(string: Settings.BackendAPIBaseURL)?.appendingPathComponent("onboard-user") { 

(Full code found on step 2.3 of link provided.)

Clearly there is no class called 'Settings', but nothing is provided in the Stripe Documentation it seems...

Kev Wats
  • 238
  • 2
  • 11
  • 1
    I think the code is just implying that you would have your own Settings class that would have a `BackendAPIBaseURL()` method. I'd recommend just skipping that and passing the URL to hit to reach your server – koopajah Mar 06 '21 at 01:56
  • My backend is with firebase functions, what would its URL be? Or where do I find it? – Kev Wats Mar 06 '21 at 02:14
  • Not sure how Firebase is configured but that isn't really Stripe specific. This answer might help: https://stackoverflow.com/a/66488535/1606729 – koopajah Mar 07 '21 at 18:18

1 Answers1

0

Two things you can do one is going to your console and go to functions and they will be listed or when you deploy your functions it’s will tell you as well.

Dharman
  • 21,838
  • 18
  • 57
  • 107
Kev Wats
  • 238
  • 2
  • 11