# アプリにStripeアカウントを接続するための許可

消費者の支払いをMerchantのストライプアカウントに送るために、アプリ内にMerchantが自分のストライプアカウントを接続できる画面を作成する必要があります。

### データベース内のMerchantsコレクションにStripe IDプロパティを追加する。

（通常、マーケットプレイスアプリでは、Merchantsのコレクションがあるはずですが、Merchantsコレクションがない場合は、Usersコレクションにこのプロパティを追加することもできます）

1\) Adaloで、左側のツールバーでデータベースタブをクリックします。

2\) Merchantコレクションを見つけて展開します（またはまだ作成していない場合は作成します）。

3\) プロパティを追加して、プロパティのタイプとしてTextを選択します。

4\) 新しいプロパティの名前を「StripeアカウントID」とします。

![](/files/xLtl180JhLkQk1sUZrEN)

### Merchantが自分のストライプアカウントを接続するための画面を作成する

1\) Merchantがプロフィールを編集できる画面に、Stripe Connectコンポーネントを追加します。これは、左側のツールバーのプラスボタンをクリックして行います。次に下にスクロールしてStripe Paymentsセクションを展開し、Stripe Connectコンポーネントを画面にドラッグアンドドロップします。

![](/files/PBVjakXr0mGE2ian4ATe)

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

1\) まず、左パネルの上部にある「Stripeと接続」ボタンをクリックして、AdaloアプリにあなたのStripeアカウントを接続します。

![](/files/VUfGU8iqG9x11TVRnGsu)

2\) Stripeアカウント内でアプリの「リダイレクトURI」を設定します。

```
1\) Adaloの灰色のボックスからURIをコピーします。

2\) Stripeで、[Connect Settingsページ](https://dashboard.stripe.com/account/applications/settings)に移動します。

3\) インテグレーションセクションにスクロールし、リダイレクトの行で「+ Add URI」ボタンをクリックします。

4\) ポップアップするモーダルに、AdaloからコピーしたURIを貼り付け、その後紫色の「Add URI」ボタンをクリックします。
```

![](/files/Eoa420WoHCJ55q38W6ol)

3\) StripeクライアントIDを追加します。StripeクライアントIDは、[Connect Settingsページ](https://dashboard.stripe.com/account/applications/settings)にあります。URIを追加した場所の直上にあります。これをAdaloにコピーして貼り付けます。

![](/files/rBNBOq7iMEqN9YlVzlO5)

4\) Stripeシークレットキーを追加します。Stripeシークレットキーは[Stripe API Keysページ](https://dashboard.stripe.com/apikeys)にあります。"Reveal live key token"ボタンをクリックして、これをAdaloにコピーして貼り付けます。

![](/files/qt1JbDtIYQs9ZsmC2qOw)

5\) MerchantのStripeアカウントIDを保存するデータベース内の場所を選択します。ドロップダウンを開いて、Current Merchant > Stripe Account Idを選択します。

![](/files/I5cHrQS7aXQ6FyH4tjJO)


---

# 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/legacy-stripe-components-deprecated/marketplace-payments/allow-merchants-to-connect-their-stripe-account-to-your-app.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.
