#sagar_code

1 messages · Page 1 of 1 (latest)

gaunt ploverBOT
#

👋 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/1242752098337165312

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

fierce basin
#

Hi
Sorry for my late reply, still checking...

#

Could you please share share the flow that you are intending to offer to your customers ?
Here is the OAuth user flow that you shoul dbe following:

  1. On your site, the user clicks a link that redirects them to Stripe.
  2. On Stripe, the user selects the appropriate account and accepts permissions for installing the app.
  3. After the app is installed, authentication is complete and the user is redirected to a defined URI.

What will be your Oauth flow with Google Account Auth?

lone plank
#

i don't have a external site
i want the user to install the app from stripe market place and continue to use the app after google oauth authentication

fierce basin
#

That's not the goal of using oauth2, that's why your app is rejected

lone plank
gaunt ploverBOT
lone plank
#

please check and verify if everything is fine else what are the changes need to be done.

fierce basin
#

The redirect_uri should be one of your website and not stripe dashboard...

#

Why are you using oauth2 ?

#

What is the Oauth user flow ?

i want the user to install the app from stripe market place and continue to use the app after google oauth authentication
They'll use their Stripe Account in order to authenticate to your Stripe App. Why you want them to use their Google Account too ?

lone plank
#

because i want to access the drive to export the data and save to there respective google account drive.

fluid granite
#

But this is not directly related to the Stripe integration right?

#

How are you letting the user select their Stripe account?

lone plank
lone plank
fluid granite
#

Why you don't want to use the default auth method - Platform key?

lone plank
fierce basin
#

Actually you are mixing between Stripe oauth and Google Oauth

#

If you want to have access to your user's Google Drive

#

And you don't use Oauth2 in your system and/or don't have a website then you use the platform auth method

#

Once the user installs your Stripe App, in their dashboard App drawer they'll have a Google sign in button in order to auth and you get access to their Google Drive

lone plank
#

i tried to use platform as access type and made the distributiont type as public
then it was not allowing to upload the app
and

lone plank
fierce basin
#

Checking... that error...

#

but the user flow should be something as mentioned above (using Google sign in button and not Google Oauth through Stripe Oauth)

lone plank
#

we are using the same just the signin ui is of stripe

fierce basin
lone plank
#

{
"id": "com.eudizital.sync-to-sheets",
"version": "0.0.47",
"name": "Sync To Sheets",
"icon": "./stslogo.png",
"permissions": [
{
"permission": "customer_write",
"purpose": "Allows the app to update the name of the customer."
},
{
"permission": "payment_intent_read",
"purpose": "access to read the payment intent"
},
{
"permission": "balance_read",
"purpose": "to retrive the balances"
}
],
"ui_extension": {
"views": [
{
"viewport": "stripe.dashboard.home.overview",
"component": "App"
},
{
"viewport": "settings",
"component": "AppSettings"
}
],
"content_security_policy": {
"connect-src": [

  ],
  "image-src": null,
  "purpose": ""
}

},
"constants": {
"API_BASE": "https://s2s.e******l.com/api",
"DOCUMENT_COUNT": 20,
"SETTINGS_PAGE": "https://dashboard.stripe.com/test/settings/apps/com.eudizital.sync-to-sheets"
},
"allowed_redirect_uris": [
"https://dashboard.stripe.com/dashboard"
],
"stripe_api_access_type": "oauth",
"distribution_type": "public"
}

fierce basin
#

Can you try stripe_api_access_type: platform please ?

lone plank
#

sure

#

it threw the error
× Failed to upload Sync To Sheets
Request failed, status=400, body={
"error": {
"message": "9:Setting stripe api access type to 'PLATFORM' not allowed for app distribution 'PUBLIC' because other accounts have installed the app. Please have external installations uninstalled before proceeding.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_BNa7jvk7DLiTi1?t=1716370059",
"type": "invalid_request_error"
}
}

fierce basin
#

Is this the first time you publish the app ?

#

Can you uninstall all the Apps from your Accounts? or there are external users that has the App installed ?

lone plank
#

no there are no extrenal user only the user/ tester inside the organisation has the test app installed

fierce basin
#

Can you try to uninstall the App first from all your internal Accounts then and retry publishing it with Platform auth ?

lone plank
#

okay

#

still same error
× Failed to upload Sync To Sheets
Request failed, status=400, body={
"error": {
"message": "9:Setting stripe api access type to 'PLATFORM' not allowed for app distribution 'PUBLIC' because other accounts have installed the app. Please have external installations uninstalled before proceeding.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_kM5YOkyusuRNXy?t=1716370563",
"type": "invalid_request_error"
}
}

fierce basin
#

There must be other external installations, I invite you to double check all your internal Accounts first.

lone plank
#

hi @fierce basin i doubled chacked and tryed to upload but the same error exist.

#

if possible can you connect on voice

fierce basin
#

No sorry, we provide only chat support.

fierce basin
lone plank
#

i there any way to check that the app is installed in any account ??

fierce basin
#

You have it installed in these accounts:
acct_1KrNwyGo99l4hPg3
acct_1PHhkTSEdqTPviyE
acct_1P0gniSIAfgpDpXZ
acct_1P0KIqSJ9jaHgIqQ
acct_1Oj26MSHhhjHwbWm
acct_1OcUAdDH4hqFMc2j
Do you own these accounts ?

#

if you so you need to uninstall it from all these accounts

lone plank
#

yes i own first three account and i remove the app from it
but the other three i don't own it

#

is there any way to uninstall the app from those accounts

vocal grove
#

hi! I'm taking over this thread.

lone plank
#

i tried to connect the support