# Stripe Connect

## 開始する前に

* [Stripe](https://stripe.com) アカウントを作成し、[Stripe Connect](/ja/component-basics/marketplace-components/stripe/marketplace-payments/set-up-your-stripe-account-for-stripe-connect.md) に設定し、必要な検証を完了していることを確認してください。
* コンポーネントが正しく機能するためには、**ユーザーがログインしている必要があります**。

## 手順

### Stripe Connect コンポーネントをアプリに追加する

1. "+" ボタンをクリックして追加パネルを開きます。
2. 下にスクロールして *Installed* を選択します。
3. Stripe Connect コンポーネントを希望の画面にドラッグします。できれば、商人がプロフィールを編集できる画面に配置してください。

{% hint style="warning" %}
マーケットプレイメント支払いコンポーネントを使用するアプリでは、Stripe Connect コンポーネントを**必ず**設定する必要があります。別の商人アプリを使用して商人データを収集する場合でも同様です。
{% endhint %}

### Connect コンポーネントを構成する

1. Stripeと接続するために Connect with Stripe ボタンをクリックします。
2. コンポーネントから URI をコピーします: <https://stripe-v3.adalo.com/stripecb>
3. [Stripe ダッシュボード | Connect 設定](https://dashboard.stripe.com/settings/connect) に移動します。
4. 画面下部の <img src="/files/JG2c3CkZASDXCQkEE0IL" alt="" data-size="line"> をクリックして URI を貼り付け、保存します。

   <figure><img src="/files/fWqRSMrRWhCL5kFp3C4u" alt="" width="375"><figcaption></figcaption></figure>
5. Live モードのクライアントIDをコピーします（Live モードとテストモードでは異なります）。
6. Connect コンポーネントの ***Stripe Client ID*** の下にクライアントIDを貼り付けます。
7. [Stripe ダッシュボード | API キー](https://dashboard.stripe.com/apikeys) から Secret キーと Publishable キーを追加します。
   * テストモードAPIキーはテストモードクライアントIDとのみ動作します。
8. Stripe アカウントIDの下に：
   * マーチャントのStripeアカウントIDを後でMagicTextを使用してアクセスできるように、データベース内の保存場所を選択します。

### テストモード

1. Stripe [ダッシュボード | Connect 設定](https://dashboard.stripe.com/test/settings/connect) を開きます。
2. 画面下部までスクロールしてテストモードをオンにします。

   <figure><img src="/files/gEWyFIwPyeeBk85EvRlZ" alt=""><figcaption></figcaption></figure>
3. <img src="/files/JG2c3CkZASDXCQkEE0IL" alt="" data-size="line"> をクリックして、AdaloリダイレクトURIを追加します。

   <figure><img src="/files/fWqRSMrRWhCL5kFp3C4u" alt="" width="375"><figcaption></figcaption></figure>
4. テストモードクライアントIDをコピーし、Connectコンポーネントの *Stripe Client ID* セクションに貼り付けます。
5. StripeテストSecretキーとテストPublishableキーをConnectコンポーネントに入力します。
   * [Stripe | APIキーのドキュメント](https://stripe.com/docs/keys) が、Stripeアカウントでの設定方法を案内します。
6. プレビューアを開いて、Stripe Connectフローを完了します。

### テストが成功した場合

Connectコンポーネントのテストが完了し、本番環境に移行する際は、Secret Key、Publishable Key、およびClient IDをライブモードの認証情報に変更する必要があります。

## ヘルプ

この記事に関する追加のヘルプが必要な場合は、いつでも[コミュニティフォーラム](https://forum.adalo.com/)で質問できます！投稿する際は、この記事へのリンクも貼り付けてください！


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.adalo.com/ja/component-basics/marketplace-components/stripe/marketplace-payments/set-up-your-stripe-account-for-stripe-connect-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
