# Stripeテストモードの設定

*スキルレベル: 中級*

## 開始前の準備

* [Stripe | ヘルプドキュメント](/ja/component-basics/marketplace-components/stripe.md) を使用してコンポーネントが正しく設定されていることを確認してください。
* テストの概要については、[Stripe | テストモードAPIドキュメント](https://stripe.com/docs/testing#cards) を読んでください。
* テストしたいカードの種類とシナリオを [Stripe | テストモードカード](https://stripe.com/docs/testing#cards) から選択してください。

## 手順

### テスト用にStripeアカウントを設定する

1. [Stripeダッシュボード | APIキー](https://dashboard.stripe.com/apikeys) に移動します。
2. ダッシュボードの右上隅にある *テストモード* を切り替えます <img src="/files/g9TQRZhfqTMx5jMtVajb" alt="" data-size="line">
   1. これにより、資格情報がテスト用の資格情報に変更され、コンポーネントが正しく設定されていることを確認するためにライブ支払いをシミュレートできます。
3. テスト用の公開キーとテスト用のシークレットキーをコピーし、テストしたいコンポーネントの *テストモード* セクションに貼り付けます。

   <figure><img src="/files/ZdR2fwx2LetB5YzndFNr" alt=""><figcaption><p>Stripeテストキーの例</p></figcaption></figure>

## ヘルプ

この記事に関する追加のヘルプが必要な場合は、いつでも[コミュニティフォーラム](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/configuring-stripe-test-mode.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.
