コンテンツにスキップ
アカウントを作成
または
サインイン
Stripe ドキュメントのロゴ
/
AI に質問する
アカウントを作成
サインイン
始める
支払い
売上
プラットフォームおよびマーケットプレイス
資金管理
開発者向けのツール
概要
バージョン管理
変更ログ
API バージョンのアップグレード
SDK バージョンをアップグレードする
開発者向けのツール
SDK
API
テスト
ワークベンチ
イベントの送信先
ワークフロー
Stripe CLI
Stripe Shell
開発者ダッシュボード
エージェントツールキット
LLM を使用した構築Visual Studio Code をご利用の場合Stripe 健全性アラートファイルのアップロード
セキュリティとプライバシー
セキュリティ
プライバシー
Stripe を拡張する
Stripe Apps
    概要
    始める
    アプリを作成する
    Stripe アプリの仕組み
    サンプルアプリ
    アプリを構築する
    シークレットを保存
    API 認証方法
    認証フロー
    サーバー側のロジック
    イベントのリッスン
    さまざまな環境を処理
    サンドボックスのサポートを有効にする
    アプリの設定ページ
    UI を構築する
    アカウント登録
    アプリを配布する
    配布オプション
    アプリをアップロード
    バージョンとリリース
    アプリをテストする
    アプリを公開する
    自分のアプリを宣伝する
    ディープリンクを追加する
    インストールリンクを作成
    UI 拡張機能で役割を割り当て
    インストール後のアクション
    アプリのアナリティクス
    アプリの埋め込みコンポーネント
    サードパーティーの Stripe アプリを埋め込む
    Stripe Apps に移行
    拡張機能を移行または構築
    Stripe Apps または Stripe Connect にプラグインを移行
    参照情報
    アプリマニフェスト
    CLI
    拡張 SDK
    権限
    ビューポート
    設計パターン
    コンポーネント
Stripe のコネクター
パートナー
Partner Ecosystem
パートナー認定
ホーム開発者向けのツールStripe Apps

ビューポートリファレンス

Stripe アプリで使用できるビューポートと、どのようにエンドユーザーに表示される化を示すリストです。

ページをコピー

ビューポートは、ビューの表示が可能なダッシュボード内のページを指定します。ビューポートが提供する environment.objectContext オブジェクトにより、現在のページの Stripe オブジェクトのコンテキストを受信できるようになります。詳細については、ダッシュボードで Stripe オブジェクトにアクセスするをご覧ください。

UI 拡張機能で使用できるビューポート:

Viewport (ビューポート) IDページURLオブジェクトタイプ
stripe.dashboard.payment.list支払いページdashboard.stripe.com/paymentsnull
stripe.dashboard.payment.detail支払いの詳細ページdashboard.stripe.com/payments/:idcharge、payment_intent
stripe.dashboard.customer.list顧客ページdashboard.stripe.com/customersnull
stripe.dashboard.customer.detail顧客の詳細ページdashboard.stripe.com/customers/:idcustomer
stripe.dashboard.invoice.list請求書ページdashboard.stripe.com/invoicesnull
stripe.dashboard.invoice.detail請求書の詳細ページdashboard.stripe.com/invoices/:idinvoice
stripe.dashboard.product.list商品ページdashboard.stripe.com/products/null
stripe.dashboard.product.detail商品の詳細ページdashboard.stripe.com/products/:idproduct
stripe.dashboard.subscription.listサブスクリプションページdashboard.stripe.com/subscriptionsnull
stripe.dashboard.subscription.detailサブスクリプションの詳細ページdashboard.stripe.com/subscriptions/:idsubscription
stripe.dashboard.payment-link.listPayment Links ページdashboard.stripe.com/payment-linksnull
stripe.dashboard.payment-link.detailPayment Links の詳細ページdashboard.stripe.com/payment-links/:idpayment_link
stripe.dashboard.home.overviewダッシュボードのホームページdashboard.stripe.com/dashboardnull
stripe.dashboard.balance.overview残高ページdashboard.stripe.com/balance/overviewnull
stripe.dashboard.billing.overviewBilling ページdashboard.stripe.com/billingnull
stripe.dashboard.report.overviewレポート > 概要ページdashboard.stripe.com/reports/hubnull
stripe.dashboard.revenue-recognition.overviewRevenue Recognition ページdashboard.stripe.com/revenue-recognitionnull
stripe.dashboard.shipping-rates.list配送料金ページdashboard.stripe.com/shipping-ratesnull
stripe.dashboard.shipping-rates.detail配送料金の詳細ページdashboard.stripe.com/shipping-rates/:idshipping_rate
stripe.dashboard.tax-report.overviewレポート > 税金ページdashboard.stripe.com/tax/reportingnull
stripe.dashboard.drawer.defaultすべてのページで使用可能 (詳細については、ダッシュボード全体での可用性をご覧ください)null
settingsアプリの設定ページ (詳細については、アプリの設定ページを追加する方法をご覧ください。)null

アプリケーションの可用性

アプリケーションをダッシュボードのすべてのページで使用できるようにするか、 1 つのページに固有のものにすることができます。

ダッシュボード全体での可用性

アプリが stripe.dashboard.drawer.default ビューポートのビューを指定する場合、このビューは、ページ固有のビューが定義されているページを除く、ダッシュボードのすべてのページに表示されます。

たとえば、アプリの stripe-app.json マニフェストの ui_extension.views フィールドが以下のようであるとします。

stripe-app.json
{ "id": "com.example.app", "version": "1.2.3", "name": "Example App", "icon": "./example_icon_32.png", "permissions": [ { "permission": "customer_read", "purpose": "Receive access to the customer information" } ], "ui_extension": { "views": [ { "viewport": "stripe.dashboard.customer.detail", "component": "CustomerView" }, { "viewport": "stripe.dashboard.drawer.default", "component": "EverywhereElseView" } ] } }

アプリケーションが顧客の詳細ページで開かれる場合は “CustomerView” が表示され、ダッシュボードのその他すべてのページでは “EverywhereElseView” が表示されます。

stripe.dashboard.drawer.default ビューは、ページ固有のビューと同じ方法では objectContext データを受信しません。アプリが「請求書の詳細」ページに表示される請求書の id などの情報にアクセスする必要がある場合は、stripe.dashboard.invoice.detail ビューポートを使用するビューを作成する必要があります。詳細については、ページ固有の可用性をご覧ください。

ページ固有の可用性

ページ固有のビューは、ユーザーが表示している現在のページに関連しています。また、アプリが environment プロパティーを使用してページに関する追加のコンテキストを受信できるようにします。詳細については、ダッシュボードで Stripe オブジェクトにアクセスするをご覧ください。

たとえば、アプリに stripe.dashboard.product.detail ビューポートのビューがある場合、ユーザーが商品の詳細ページでアプリを開くと、そのビューがアプリに表示されます。

アプリに現在のページのページ固有のビューもアプリ固有のデフォルトのビューもない場合は、ドロワーには、ユーザーにアプリへのアクセス方法を示す一般的なデフォルトのビューが表示されます。

たとえば、アプリで、以下のアプリのマニフェストに表示される、ページ固有のビューポートに 2 つのビューがあるとします。

stripe-app.json
{ "id": "com.example.app", "version": "1.2.3", "name": "Example App", "icon": "./example_icon_32.png", "permissions": [ { "permission": "customer_read", "purpose": "Receive access to the customer information" } ], "ui_extension": { "views": [ { "viewport": "stripe.dashboard.customer.detail", "component": "CustomerView" }, { "viewport": "stripe.dashboard.product.detail", "component": "ProductView" } ] } }

エンドユーザーがダッシュボードのホームページでアプリを開くと、アプリケーションには、顧客ページと商品ページへのリンクが表示されます。ユーザーが顧客ページに移動すると、アプリには、関連情報を表示する顧客の選択をユーザーに求めるメッセージが表示されます。

参照情報

  • アプリの設計
  • UI Extensions の仕組み
  • 権限リファレンス
  • UI 拡張機能 SDK リファレンス
このページはお役に立ちましたか。
はいいいえ
お困りのことがございましたら 、サポートにお問い合わせください。
早期アクセスプログラムにご参加ください。
変更ログをご覧ください。
ご不明な点がございましたら、お問い合わせください。
LLM ですか?llms.txt を読んでください。
Powered by Markdoc