根据文档,Stripe Apps OAuth 集成无法正常工作?

问题描述 投票:0回答:1

我参考这些文档来使用

Stripe App
创建 OAuth 集成:

https://docs.stripe.com/stripe-apps/api-authentication/oauth

现在,根据文档,我们需要将应用程序的

stripe-app.json
设置为如下所示:

{
  "id": "com.example.my-app",
  "version": "0.0.1",
  "name": "Your Stripe App",
  "icon": "./[YOUR_APP]_icon_32.png",
  "permissions": [
    // Your app permissions here
  ],
  "stripe_api_access_type": "oauth",
  "distribution_type": "public",
  "allowed_redirect_uris": [
    // Your redirect URIs here
  ]
}

这就是我的清单文件的样子:

{
  "id": "app.myapp.app",
  "version": "0.0.2",
  "name": "Finlens",
  "icon": "",
  "permissions": [],
  "ui_extension": {
    "views": [
      {
        "viewport": "stripe.dashboard.customer.detail",
        "component": "App"
      }
    ],
    "content_security_policy": {
      "connect-src": null,
      "image-src": null,
      "purpose": ""
    }
  },
  "allowed_redirect_uris": [
    "https://app.myapp.com",
    "https://app.myapp.com",
    "https://app-sandbox.myapp.com"
  ],
  "stripe_api_access_type": "oauth",
  "distribution_type": "public"
}

但是,如果我将

distribution_type
设置为
public
。跑步时
stripe apps upload

出现此错误:

stripe apps upload

 ⓘ  You have selected public distribution for this app. Please note the
    following:
    * After you upload, you cannot change the distribution to private.
    * You can only upload one public app per Stripe account.

Would you like to proceed: y

⬆ You are about to upload your app to finlens-landing.netlify.app

Name:    Finlens
ID:      app.finlens.app
Version: 0.0.2

? Would you like to proceed✔ Built files for production
✔ Packaged files for upload
× Failed to upload Finlens
Request failed, status=400, body={
  "error": {
    "message": "9:Because your account is a connect platform, you cannot choose the public distribution at this time.",
    "request_log_url": "https://dashboard.stripe.com/test/logs/req_JE77rE1IvcYxiL?t=1712054037",
    "type": "invalid_request_error"
  }
}

现在我的问题是,消息

9:Because your account is a connect platform, you cannot choose the public distribution at this time.
是什么意思?

我已按照文档给出的步骤进行操作,但不起作用

oauth-2.0 stripe-apps
1个回答
0
投票

我将此问题通过电子邮件发送给 Stripe 支持,这可能是 Stripe 使用的看门机制。

这是来自 Stripe 支持的电子邮件回复。

Hello there, 
 
Thank you for your patience. It looks like your usage was tagged as a Connect Platform vs a Connect Extension (the latter’s functionality has been replaced with the migration to Stripe Apps). 

 

This is purely an internal tag that we can change with your permission — from what we observe of your usage, this seems like the right choice to make unless you are creating connected accounts and moving money between them. By making this change, nothing about your current usage or customer adoption will change or be interrupted. Before selecting public distribution, please keep in mind that at this time you cannot change the id of your app.

 

Please let us know if we have your permission to make this change or if you have any questions!
 
© www.soinside.com 2019 - 2024. All rights reserved.