Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can connect stripe app locally to my account all of a sudden was working before. #987

Open
wispyco opened this issue Sep 14, 2024 · 6 comments
Labels
bug Something isn't working needs-triage

Comments

@wispyco
Copy link

wispyco commented Sep 14, 2024

Describe the bug
I have built a stripe app, it compiles when I run stripe apps start
When I hit enter to login it allows me to choose the account I am logged in with earlier with stripe login but it just hangs and it has been doing this all day.

To Reproduce
Steps to reproduce the behavior:

  1. Go to terminal
  2. Type stripe apps start
  3. Hit Enter
  4. Connect to Account

Expected behavior
I would be logged into my stripe account with my stripe app loaded

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot 2024-09-13 at 7 13 11 PM

Screenshot 2024-09-13 at 7 14 00 PM

Desktop (please complete the following information):

  • OS: Mac OS Sonoma 14.3
  • Browser: Arc
  • Version: 1.60.0
  • Viewport dimensions: 1920 x 1080

App (please complete the following information):

  • App Id: com.example.catly-2
  • @stripe/ui-extension-sdk package version: ^8.9.1

Additional context
No

@wispyco wispyco added bug Something isn't working needs-triage labels Sep 14, 2024
@bensontrent
Copy link

bensontrent commented Sep 14, 2024

Do you have multiple stripe companies? And, have you run stripe login? You may need to run stripe login in your terminal before you run stripe apps start

You can only be logged into one company at a time from the CLI; you can only preview your app at one company at a time.

To preview your app in multiple companies as a test app, run stripe apps publish. Don't worry—this step doesn't make your app public, but your app will now have a private test installation link that can be used up to 25 times to install it in multiple companies as a test app.

In the screenshot you provided, you should be able to use the dropdown to select the company you are logged into:

Once you select the company you're logged into (through stripe login) the continue button will be enabled and you'll be able to preview your app.

image

@wispyco
Copy link
Author

wispyco commented Sep 14, 2024

So I did that before and again as requested and it returned this

Done! The Stripe CLI is configured for Wispy Company with account

And it still hangs

Screenshot 2024-09-13 at 8 45 27 PM

Ok so actually it hangs and doesnt redirect but if I visit stripe.com it works, so something is broken on your end I think, anyways It will work this way.

@bensontrent
Copy link

bensontrent commented Sep 14, 2024

Yes, you'll need to visit stripe.com using the link as directed in your terminal when you run stripe login or stripe apps start.

For example, when you run stripe login you need to ctrl + click the link in your CLI to complete the login process. Similarly, when you run stripe apps start you'll need to click the link in your terminal to initiate the preview mode for your app. You should only need to run stripe logout and stripe login when you need to change the Stripe company you're previewing your app in.

@wispyco
Copy link
Author

wispyco commented Sep 14, 2024

Actually there is no link you have to press enter to enter dashboard and the press enter redirect does not work thats what hangs.

Screenshot 2024-09-13 at 8 56 54 PM

https://dashboard.stripe.com/apps/enable-preview?cliaccount=redacted

This is the url it redirects me to that hangs

@bensontrent
Copy link

bensontrent commented Sep 14, 2024

I'm sorry. My bad. You're right. You have to press Enter. There is no link. And to confirm, you were able to log in to your desired account, correct?

I tested this myself. When I press Enter, (after running stripe apps start) the incorrect company that I'm logged into is shown by default. I must click the dropdown to select the appropriate company before a "continue" button is shown and enabled.

@wispyco
Copy link
Author

wispyco commented Sep 14, 2024

Yes I did select the right company, and hit continue but it still just hangs I have to visit stripe.com in a new tab, maybe its a caching issue for me but I cleared everything in my dev tools application data so not sure, I have a workaround just open new tab after hitting enter in terminal and go stripe.com it works. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

No branches or pull requests

2 participants