#vlad-bubble_api

1 messages ยท Page 1 of 1 (latest)

final martenBOT
terse krakenBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

final martenBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1220058213828005888

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

terse krakenBOT
fathom tulip
#

๐Ÿ‘‹ Hello! Did you see the last thing that rubeus flagged in the previous thread?
It's expected that once it succeeds it will be removed. That only gets set for the initial public upload. Once a Stripe App is public it's public forever.

foggy blade
#

Hello Karbi. Thank you.
Yes I saw his message. However I looked at the app in the Stripe Dashboard, after it was installed, and it was installed as a Private app.

fathom tulip
#

Ah! So the main issue here is that you're not able to install a public app at all

#

When you set the distribution_type did you do it manually or did you use a CLI command?

foggy blade
#

Yes that's correct.
despite having the distribution_type as public in the stripe-app.json the app always gets installed as private AND the distribution_type property gets silently removed from the stripe-app.json

I've tried it a dozen times. I've tried adding the distribution_type using the cli command stripe apps set distribution public and also by manually editing file.

It's always the same result

fathom tulip
#

Can you try changing the version in stripe-app.json to something like 0.0.2, run the CLI command to set the distribution to public, and then try the upload one more time?

#

I think this is related to a bug where setting the distribution to public before you upload your first version fails in a weird way

fathom tulip
#

@foggy blade Just wanted to check in and see if you were able to try what I mentioned?

foggy blade
#

hi karbi.. sorry, it's been very much a multitasking day for me..
thank you for not closing the thread, i appreciate it.
let me try what you are suggesting now.

fathom tulip
#

no worries!

foggy blade
#

it still did a private install ๐Ÿ˜ข

fathom tulip
#

what's the app ID you're using?

terse krakenBOT
foggy blade
#
  "id": "com.blah.blah.example.vgs555karbi.party",
  "version": "0.0.9",
  "name": "vgs Karbi Pizza Party",
  "icon": "",
  "permissions": [
    {
      "permission": "connected_account_read",
      "purpose": "Testing"
    },
    {
      "permission": "account_link_write",
      "purpose": "Testing"
    },
    {
      "permission": "balance_read",
      "purpose": "Testing"
....
#
      "permission": "webhook_read",
      "purpose": "Testing"
    }
  ],
  "ui_extension": {
    "views": [
      {
        "viewport": "settings",
        "component": "AppSettings"
      }
    ],
    "content_security_policy": {
      "connect-src": null,
      "image-src": null,
      "purpose": ""
    }
  },
  "stripe_api_access_type": "restricted_api_key"
// the distribution_type was right here, but it got removed after I uploaded the app
}```
fathom tulip
#

Ah sorry let me be clear - you need to upload another version of an app that you've already uploaded before

foggy blade
#

i see. so leave the id the same, but just update the version?

fathom tulip
#

yup!

foggy blade
#

ok. let me try

#

that worked

#

wow. ok.
thank you for the help

fathom tulip
#

hooray!

foggy blade
#

i doubt I would have figured this out on my own or from the docs to be honest

fathom tulip
#

Yeah I don't think we do a great job of documenting this at all - I'll make sure to flag to the team to make sure they can get this fixed, or in the very least add some error message or something to say what's going on

foggy blade
#

๐Ÿ™Œ ๐Ÿ™Œ ๐Ÿ™Œ

#

ty

fathom tulip
#

๐Ÿ‘

foggy blade
#

Hi Karbi, I have another question, thought I'd try the same thread as it's a continuation of testing this app..

#

so my app is now installed as public, and I have this config

#

when I use the link to test, it works. It takes me to a stripe login page, i login using a different stripe account, i approve the app etc.

median obsidian
#

๐Ÿ‘‹ stepping in as karbi needed to step away

foggy blade
#

Hi Bismarck, hi, thank you.
So when i add a &redirect_uri=https://bubble.io to it that link, it takes me through the login process, but then it doesn't prompt for any app installation or anything of the sort, once I login, it just takes me to:https://dashboard.stripe.com/dashboard

median obsidian
#

Huh, so after you install it just redirects to your Dashboard?

#

Any way you can capture this on a quick screen recording?

foggy blade
#

sure let me try

median obsidian
#

Looks like it is private, can you make it public?

foggy blade
#

yes was just doing that. can you try it again?

median obsidian
#

Yep that works

#

Looking

#

Can you show me your stripe-app.json?

#

Oh it is above

#

But I don't see allowed_redirect_uris above

foggy blade
median obsidian
#

Oh you are using a restricted key App and not OAuth here?

foggy blade
#

yes, restricted key app

#
  "distribution_type": "public"
}
median obsidian
#

Can you try adding your URI there in your manifest and then test again?

foggy blade
#

i will try it in about 20 minutes.. please don't close the thread if that's ok.

median obsidian
#

Sure

foggy blade
#

hi bismarck.
so a little bit of progress, but still not being redirected.

#

basically - i get prompted to install the app this time (which is good, wasn't happening before) - but I am still not being redirected back to the redirect_uri - I am only given the option to go to the app settings in the stripe dashboard

median obsidian
#

Looking

#

Unfortunately, this may mean it isn't possible to actually test out the redirect URI....