> 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/merchant-tokenization/ja/nettowkutkun/implement-network-tokenization/process-a-transaction.md).

# トランザクションを処理する

支払いの暗号文（クリプトグラム）を取得し、支払いの承認リクエストを構築するために、ペイメントネットワークのトークンを使用します。

支払いを承認するために、加盟店またはPSPはトークンの詳細と暗号文を要求します。

トークンの詳細にはトークンPANと有効期限が含まれます。

## フロー

<figure><img src="/files/be11c5d8a76598b1c46a940cf02b322e7e734157" alt=""><figcaption><p>トランザクション承認フロー</p></figcaption></figure>

| ステップ | 説明                                                        |
| ---- | --------------------------------------------------------- |
| 1    | エンドユーザーがトランザクションを開始します。                                   |
| 2    | 加盟店またはPSPがThalesのバックエンドに以下を呼び出します `tokenId` とトランザクションの詳細。 |
| 3    | ThalesのバックエンドがペイメントネットワークのTSPにトークンの詳細と暗号文を要求します。          |
| 4    | Thalesのバックエンドが暗号化されたトークンの詳細と暗号文を返します。                     |
| 5    | 加盟店またはPSPが承認リクエストを構築し、アクワイアラーに送信します。                      |

## API

* API参照： [トランザクションを作成する](broken://pages/aa59e31deefcb7087369eeed5322fc0609c32f30#post-v2-transactions)

## ベストプラクティス

* 暗号文は短命として扱ってください。保存しないでください。
* アクワイアラーフローがペイメントネットワークトークンのトランザクションをサポートしていることを確認してください。

## 暗号文の形式

ペイメントネットワークは異なる暗号文形式を使用します。

| ペイメントネットワーク      | 暗号文名                    | 定義                                                         |
| ---------------- | ----------------------- | ---------------------------------------------------------- |
| Mastercard       | DSRP Cryptogram UCAFタイプ | Base64でエンコードされた暗号文。最大32文字。動的決済データ（DE104 SE001）に含める必要があります。 |
| Visa             | TAVV                    | Base64でエンコードされた暗号文。                                        |
| American Express | DCSC                    | トランザクションの文脈で固有のAMEXカードを識別する4桁の動的カードセキュリティコード。              |
| Discover         | DCID                    | Base64でエンコードされた暗号文。                                        |

## 継続課金および分割トランザクション

継続課金または分割トランザクションの場合、最初のリクエストで暗号文を送信してください。

その後の承認リクエストでは通常暗号文は省略されますが、国によってはより頻繁に暗号文を要求する場合があります。

トークンPANと有効期限は時間とともに変更されることがあります。トークンが更新された後は、最新のトークンPANと有効期限を使用してください。

選択肢は次の2つです：

* オプション1：最初のトランザクションでトークンの詳細と暗号文を要求します。トークンと有効期限を保存します。Thalesの通知を使用してそれらを最新の状態に保ちます。
* オプション2：すべてのトランザクションでトークンの詳細を要求します。


---

# 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/merchant-tokenization/ja/nettowkutkun/implement-network-tokenization/process-a-transaction.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.
