# 購入スクリーン

<figure><img src="https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-fbe0f34277c0e1684106a35d5b3d8e88bb0b5364%2Fpurchasescreen.png?alt=media" alt=""><figcaption></figcaption></figure>

この画面は、ユーザーが希望する提供物の購入プロセスを完了する場所です。Stripeコンポーネントが含まれており、Component Marketplaceで見つけることができます。

{% hint style="info" %}
Stripeコンポーネントを利用するには、Stripeアカウントが必要です
{% endhint %}

## コンポーネント

### **テキストコンポーネント — 2つのコンポーネント**

<figure><img src="https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-534e0143d19f0244cb461e30868caf7a57955f4c%2Ftextcomponentsgreen.png?alt=media" alt="" width="449"><figcaption></figcaption></figure>

「ラベル」テキストコンポーネントは、カスタム式を使用しています — クラス価格 + サービス手数料（この場合は$3.13）。サービス手数料を請求したくない場合は、カスタム式を削除し、テキストボックスで「Current Class > Price」を選択してください。

同様の計算がカスタム式で行われるのは、合計取引コストを表示するテキストコンポーネントです。

### Stripeコンポーネント — Stripe支払い

<figure><img src="https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-676b2ae5b2af585e439823a083f595dcf5a2b900%2Fstripe.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

このヘルプドキュメントの指示に従ってStripeコンポーネントを設定してください。ここでは、支払われる金額、請求の説明、受領メール、および支払い成功後に発生するアクションを制御できます。

⚡ **送信ボタンのアクション**

各アクションは画面にリストされている順に発生します。これらのアクションは、支払いが成功した場合のみ発生します。

1. トランザクションコレクションにレコードを作成するための作成アクション。関連するトランザクションプロパティを埋めるために、テキストとマジックテキストの組み合わせが使用されます。
2. クラスレコードを更新し、利用可能なスポットを減らすための更新アクション。

<figure><img src="https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-580357e890d26887d4e7879766547d94a12ed92f%2Fcustomformula.png?alt=media" alt=""><figcaption></figcaption></figure>

3. 「Congrats」画面へのリンクアクション。

## ヒント＆トリック

Stripeコンポーネントを設定せずに購入フローをテストすることができます：

<figure><img src="https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-0746a3f519ce6fb7cf4643a8ade0a1153e75e1ce%2Fteststripe.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

「DEMO “PAY”」ボタンは、Stripeコンポーネントと同じ設定とアクションで設定されていますが、実際の購入は行われません。クラスのためにお金を集めるには、Stripeコンポーネントが設定されていることを確認してください。

「DEMO “PAY”」ボタンでのテストが終了したら、公開されたアプリからボタンと灰色のヘルプテキストを削除してください。


---

# 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/feature-templates/browse-purchase-and-manage-classes/purchase-screen.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.
