> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/transit-digitization/ja/google-transit-no/akauntobsunochikettinguabt/transit-apurinopurobijoningunopurodakuto.md).

# Transit アプリのプロビジョニング後の運賃プロダクト購入

Transit Appの事後プロビジョニング運賃商品購入ワークフローは、トランジット事業者のアプリを通じてユーザーが直接開始します。主な目的は、ユーザーがアプリ内で運賃商品を購入し、それがシームレスにGoogle Walletのトランジットカードに適用されて即時に使用できるようにすることです。

### ワークフロー <a href="#workflow" id="workflow"></a>

以下の上位レベルの手順は、Transit Appの事後プロビジョニング運賃商品購入ワークフローの概要を示しています：

1. **運賃商品の選択と支払い**：ユーザーはトランジット事業者のアプリから購入したい運賃商品を選択します。既存の残高にストアドバリューを追加することや、運賃商品の購入／更新が含まれる場合があります。
2. **メタデータ取得とウォレット表示の更新**：metadataUpdatedリクエストを受信すると、GoogleはD1 Transitから更新されたカードメタデータを要求します。。

#### 運賃商品の選択と支払い <a href="#fare-product-selection-and-payment" id="fare-product-selection-and-payment"></a>

ワークフローが開始される前に、ユーザーはトランジット事業者のアプリ内で彼のトランジットカードに追加する有効性のある運賃商品を選択する必要があります。

運賃商品が選択されると、アプリは購入を完了するための支払いオプションを表示する必要があります。ユーザーは利用可能なオプションから希望の支払方法を選択できます。

**エラーシナリオ**

**購入または更新が許可されていない**

ビジネスルール（例：カードの有効期限切れや対象外の運賃商品）により運賃商品の購入または更新が禁止されている場合、トランジット事業者のアプリはそれをユーザーに示すものとします。

#### メタデータ取得とウォレット表示の更新 <a href="#metadata-retrieval-and-wallet-display-update" id="metadata-retrieval-and-wallet-display-update"></a>

運賃商品を正常に購入または更新した後、Transit イシュアはhandleEventをD1 Transitに送信し、D1 TransitはallProductMetadataUpdated APIリクエストでGoogleに通知します。

allProductMetadataUpdatedリクエストを受信すると、GoogleはgetAllProductMetadataリクエストをD1 Transitに行い、商品メタデータを取得します。

<figure><img src="/files/03c8ec9b4e162819e798ef23a2075c4055dda920" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.payments.thalescloud.io/transit-digitization/ja/google-transit-no/akauntobsunochikettinguabt/transit-apurinopurobijoningunopurodakuto.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
