#sagar_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/1242752098337165312
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
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:
- On your site, the user clicks a link that redirects them to Stripe.
- On Stripe, the user selects the appropriate account and accepts permissions for installing the app.
- 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?
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
That's not the goal of using oauth2, that's why your app is rejected
you need to use oauth2 if you already use oauth to interact with other systems and Users need to manage the integration from your software:
https://docs.stripe.com/stripe-apps/api-authentication#:~:text=You already use OAuth to interact with other systems.
okay i already implemented that
you can check using testing Url
https://marketplace.stripe.com/oauth/v2/channellink*AY0_k2jSOAAAAA1T%23EhcKFWFjY3RfMU5kS3RBSWFlRG5oc3NOdw/authorize?client_id=ca_PRG2fpQDdN2irOi1r24lwywKlfpeMXOZ&redirect_uri=https://dashboard.stripe.com/dashboard
please check and verify if everything is fine else what are the changes need to be done.
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 ?
because i want to access the drive to export the data and save to there respective google account drive.
But this is not directly related to the Stripe integration right?
How are you letting the user select their Stripe account?
I.e. which auth method are you using from this table? https://docs.stripe.com/stripe-apps/api-authentication
Hi vanya,
i am using the below method in manifest.json
"allowed_redirect_uris": [
"https://dashboard.stripe.com/dashboard"
],
"stripe_api_access_type": "oauth",
"distribution_type": "public"
because there are many account associated to single user so they can choose which they want
Why you don't want to use the default auth method - Platform key?
Request failed, status=400, body={
"error": {
"message": "9:Setting stripe api access type to 'STRIPE_API_ACCESS_TYPE_INVALID' not allowed for app distribution 'PUBLIC'",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_HVnuWa4wGegHA4?t=1716359226",
"type": "invalid_request_error"
}
}
i gives error when try to make it public
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
And implement Google sign in (https://developers.google.com/identity/sign-in/web/sign-in) in your Stripe APp
You can install this Stripe App https://marketplace.stripe.com/apps/data-exporter-for-google-drive from the marketplace and test the user flow (it's similar to yours)
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
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
what is the issue ?
× Failed to upload Sync To Sheets
Request failed, status=400, body={
"error": {
"message": "9:Setting stripe api access type to 'STRIPE_API_ACCESS_TYPE_INVALID' not allowed for app distribution 'PUBLIC'",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_HVnuWa4wGegHA4?t=1716359226",
"type": "invalid_request_error"
}
}
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)
we are using the same just the signin ui is of stripe
can you share the manifest.json for this request ?
{
"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"
}
Can you try stripe_api_access_type: platform please ?
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"
}
}
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 ?
no there are no extrenal user only the user/ tester inside the organisation has the test app installed
Can you try to uninstall the App first from all your internal Accounts then and retry publishing it with Platform auth ?
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"
}
}
There must be other external installations, I invite you to double check all your internal Accounts first.
hi @fierce basin i doubled chacked and tryed to upload but the same error exist.
if possible can you connect on voice
No sorry, we provide only chat support.
Interseting, let me check further...
appreciated
i there any way to check that the app is installed in any account ??
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
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
hi! I'm taking over this thread.
I don't think you can uninstall an app from an account you don't own. but you can try asking Stripe support for help: https://support.stripe.com/contact
i tried to connect the support