> 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/pusshupurobijoningu.md).

# プッシュプロビジョニング

プッシュプロビジョニングワークフローは、ユーザーがイシュアのアプリから Google ウォレットへカードをプロビジョニングできるようにします。

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

以下はプッシュプロビジョニングワークフローの高レベルなステップです：

1. **プロビジョニング**
   1. **開始**：TapAndPay API を使用してプッシュプロビジョニングプロセスを開始します。
   2. **バンドル配信**：Google はカード情報を含むプロビジョニングバンドルを取得します。
2. **プロビジョニング結果**：Google はプロビジョニング結果を示す通知を送信します。

このワークフローは、ユーザーが既にカードアカウントに紐づく有効なトランジットカードを所有していることを前提としています。ユーザーがトランジットカードを持っていない場合、トランジット事業者のアプリから購入するか、サポートされている場合はプラスチックカードの内容をアプリで読み取ってから Google ウォレットにプロビジョニングすることができます。

### シーケンス図 <a href="#sequence-diagram" id="sequence-diagram"></a>

{% hint style="info" %}
重要なのは、支払いリクエストが PSP によって検証され次第、Transit イシュアはデジタルカードを発行するために必要なデータの準備を開始するものとすることです。
{% endhint %}

#### プロビジョニング <a href="#provisioning" id="provisioning"></a>

ユーザーが「Google ウォレットに追加」ボタンを押すと、トランジット事業者のモバイルアプリはプロビジョニングバンドルの準備を開始するためにカード情報をバックエンドに提供する必要があります。D1 Transit は、プロビジョニングワークフローを開始するために必要な詳細を含む encryptedData ペイロードを生成します。この encryptedData ペイロードはトランジット事業者のモバイルアプリに返され、アプリは続いて TapAndPay API の pushTokenizeRequest を呼び出して Google とのプロビジョニングワークフローを開始します。

Google は encryptedData を受信すると、最終的に暗号化されたプロビジョニングバンドルを取得するために D1 Transit と EMV トークン化プロセスを開始します。

**エラーシナリオ**

**プロビジョニングバンドル取得のための Google からのリクエストがない場合**

プロビジョニングバンドル準備レスポンスと Google からのプロビジョニング要求の間にタイムアウト期間が D1 Transit 側で設定されています。

このタイムアウト期間内に D1 Transit にプロビジョニング要求が受信されない場合、プロビジョニングは失敗と見なされます。

タイムアウト後に Google がプロビジョニングを要求した場合、D1 Transit はプロビジョニングバンドルが既に利用できないことを Google に通知し、Google はプロビジョニングワークフローを中止します。

<figure><img src="/files/6a89dc499c2ece6cf6f83f9d6eb62f8cb64919b1" alt=""><figcaption></figcaption></figure>

#### プロビジョニング結果 <a href="#provisioning-outcome" id="provisioning-outcome"></a>

Google がプロビジョニングバンドルを受信すると、鍵とデータは安全に抽出および保存されます。パーソナライズが完了すると、プロビジョニングワークフローの結果を報告するために acknowledgePaymentBundle が D1 Transit に送信されます。

**エラーシナリオ**

**カードがデバイスにプロビジョニングされない場合**

プロビジョニングが失敗した場合、Google は D1 Transit プラットフォームに対して通知を行いません。その結果、D1 Transit は設定されたタイムアウトが到達するのを待ちます（以下参照）。

**Google からの acknowledgePaymentBundle リクエストがない場合**

D1 Transit はプロビジョニングバンドルを Google に送信した後にタイムアウト期間を設けています。指定された期間内に acknowledgePaymentBundle が受信されない場合、D1 Transit はプロビジョニングを失敗と見なしてワークフローを完了し、つまりトランジットイシュアに通知して以下を行えるようにします：

* 顧客に返金し、カードアカウントが削除されたことを D1 Transit に通知する。
* 顧客がプッシュプロビジョニングを再度開始できるようにする。

トランジットイシュアは以下に依拠することができます **getCardAccountInfo** API を使って D1 Transit プラットフォーム内に保存されているカードアカウント情報（カードアカウントの状態、カードアカウントに紐づくデジタルカード）を確認し、意思決定を行います。

<figure><img src="/files/78f00881bbd4fdb31e7ea0872612b6bf17409769" 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/pusshupurobijoningu.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.
