> 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/tokenization/ja/implement-tokenization/mobairusdknotkun/visa-ctf-noapuri/baindingumatahakdorikuesutowo.md).

# バインディングまたはカード所有者確認リクエストを承認

### バインドを承認

デバイスのバインド要求を承認するには、次を呼び出します `DigitalCardService.approveBinding` を使用して `digitalCardID` と `bindingReference`.

以下の例は、バインド要求を承認する方法を示します。

{% tabs %}
{% tab title="Android" %}

```kotlin
val digitalCardID = "" // payload からの tokenReferenceID
val bindingReference = "" // payload からの deviceIndex
val reason: DigitalCardService.BindingApprovalReason? =
    DigitalCardService.BindingApprovalReason.USER_DECISION // オプション。null の場合は イシュア_DECISION が既定値になります

d1Task.digitalCardService().approveBinding(
    digitalCardID,
    bindingReference,
    reason,
    object : D1Task.Callback<Void> {
        override fun onSuccess(data: Void?) {
            // 成功を処理します。
        }

        override fun onError(e: D1Exception) {
            // エラーを処理します。
        }
    }
)
```

```java
String digitalCardID = ""; // payload からの tokenReferenceID
String bindingReference = ""; // payload からの deviceIndex
DigitalCardService.BindingApprovalReason reason =
        DigitalCardService.BindingApprovalReason.USER_DECISION; // オプション。null の場合は イシュア_DECISION が既定値になります

d1Task.digitalCardService().approveBinding(
        digitalCardID,
        bindingReference,
        reason,
        new D1Task.Callback<Void>() {
            @Override
            public void onSuccess(Void data) {
                // 成功を処理します。
            }

            @Override
            public void onError(@NonNull D1Exception exception) {
                // エラーを処理します。
            }
        });
```

{% endtab %}

{% tab title="iOS" %}

```swift
do {
    let digitalCardID = "" // payload からの tokenReferenceID
    let bindingReference = "" // payload からの deviceIndex

    try await d1Task.digitalCardService().approveBinding(digitalCardID, bindingReference: bindingReference, reason: nil)
} catch let error {
    // エラーを処理します。
}
```

{% endtab %}
{% endtabs %}

### カード所有者の確認を承認

カード所有者の確認要求を承認するには、次を呼び出します `DigitalCardService.approveCardholderVerification` を使用して `digitalCardID`.

以下の例は、カード所有者の確認要求を承認する方法を示します。

{% tabs %}
{% tab title="Android" %}

```kotlin
val digitalCardID = "" // VISA CTF から取得
val reason: DigitalCardService.VerificationReason? = null // オプション。null の場合は イシュア_DECISION が既定値になります

d1Task.digitalCardService().approveCardholderVerification(
    digitalCardID,
    reason,
    object : D1Task.Callback<Void> {
        override fun onSuccess(data: Void?) {
            // 成功を処理します。
        }

        override fun onError(e: D1Exception) {
            // エラーを処理します。
        }
    }
)
```

```java
String digitalCardID = ""; // VISA CTF から取得
DigitalCardService.VerificationReason reason = null; // オプション。null の場合は イシュア_DECISION が既定値になります

d1Task.digitalCardService().approveCardholderVerification(
        digitalCardID,
        reason,
        new D1Task.Callback<Void>() {
            @Override
            public void onSuccess(Void data) {
                // 成功を処理します。
            }

            @Override
            public void onError(@NonNull D1Exception exception) {
                // エラーを処理します。
            }
        });
```

{% endtab %}

{% tab title="iOS" %}

```swift
do {
    let digitalCardID = "" // VISA CTF から取得
    try await d1Task.digitalCardService().approveCardholderVerification(digitalCardID, reason: nil)
} catch let error {
    // エラーを処理します。
}
```

{% endtab %}
{% endtabs %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.payments.thalescloud.io/tokenization/ja/implement-tokenization/mobairusdknotkun/visa-ctf-noapuri/baindingumatahakdorikuesutowo.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
