#divine_code
1 messages ¡ Page 1 of 1 (latest)
đ 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/1354673421404999681
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- divine_stripe-apps-oauth, 11 hours ago, 17 messages
- divine_docs, 12 hours ago, 7 messages
Have you changed the distribution type to public? https://docs.stripe.com/stripe-apps/distribution-options#set-distribution-type
I did!
but even with distribution as public, once I upload the app and try to do external testing can I make changes in the real time that would be reflected in the test account ?
Not I'm aware of. You'd need to re-publish again to pick up the new changes for external testing
got it, can you also help a bit with this:
" Also, can you share a simple code snippet for the stripe app UI that can help in identifying whether the person is authenticated or not! "
and one more thing:
- Can I do internal testing ( while developing in real time ) the oAuth flow of the stripe app at all ? I mean can I do the testing myself from the account I am building the app at all ? else how can I smoothly develop the app ? if I can not test myself!!
if there is some way please guide me!
@light sedge hey man!
Thanks for waiting! Discord is busy at the moment, and will take some time to reply.
Also, can you share a simple code snippet for the stripe app UI that can help in identifying whether the person is authenticated or not!
What kind of authentication are you referring to? Could you share your use case in an example?
Can I do internal testing ( while developing in real time ) the oAuth flow of the stripe app at all ? I mean can I do the testing myself from the account I am building the app at all ? else how can I smoothly develop the app ? if I can not test myself!!
What are you trying to achieve specifically? Why do you need to perform oauth all the time?
- Suppose I have an stripe app and I want the users to authenticate themselves using their stripe account using oAuth
- I have an platform for automation pdf generation from various sources, now I want to automatically create custom and templated PDF for stripe users invoice succeed webhooks!
- Suppose I am testing with the access tokens that I received after the oAuth authentication, I need to test that I have access to the proper objects ( that I asked permissions in oAuth )
Suppose I have an stripe app and I want the users to authenticate themselves using their stripe account using oAuth
The user would have been authenticated with Stripe in order to connect your Stripe app to their application. Why would you need to identify whether a person is authenticated? Unauthenticated person won't be able to perform any OAuth operation
Suppose I am testing with the access tokens that I received after the oAuth authentication, I need to test that I have access to the proper objects ( that I asked permissions in oAuth )
After the authentication, and if there is a permission update on the app, there will be a prompt in the Stripe App on the user's account to accept the new permissions again
.
.
I have an account 'A' using which I am building the app and while I am building the stripe app I can test my locally changes in the 'A' accounts dashboard - fine.
Now when I am asking my users to give me permissions to their stripe objects ( read_invoice ) using oAuth, i can not use my 'A' account anymore to do the oAuth myself - why ?
If I need to user another account 'B' for external testing of oAuth of my stripe app, why I can not monitor my local changes! after the account 'B' finished the oAuth I can access 'B' s invoices and in my platform they could create the template for their custom invoice pdf and then can see those templates in the stripe dashboard as well, using my platform's API - All these I can not monitor the changes locally while developing in real time ?
But if I need to do the same thing for my account 'A' where I can see my changes reflect - how do I do that ?
Let me know if I am missing something, I am new here
Now when I am asking my users to give me permissions to their stripe objects ( read_invoice ) using oAuth, i can not use my 'A' account anymore to do the oAuth myself - why ?
OAuth is meant to connect another account to your account. If you already the platform who owns account A, there should be another account B to be connected to your account A.
If I need to user another account 'B' for external testing of oAuth of my stripe app, why I can not monitor my local changes! after the account 'B' finished the oAuth I can access 'B' s invoices and in my platform they could create the template for their custom invoice pdf and then can see those templates in the stripe dashboard as well, using my platform's API - All these I can not monitor the changes locally while developing in real time ?
But if I need to do the same thing for my account 'A' where I can see my changes reflect - how do I do that ?
How are you monitoring the changes? Are you using the Webhook?
OKAY, tell me one more thing: if an user B connects their stripe account to my stripe app ( Pdf maker ), I will be able to see their invoice succeed webhooks in my platform backend, right ? - If yes, why i can not do the same for the A account ( from where I am building the app )
By monitoring the changes I meant local development,
npm startandstripe apps start