# Webhook Notification Tutorial

CCPayment will notify your webhook URL of the transaction details of [configured token you set on the merchant settings](https://admin.ccpayment.com/merchatsetting/settings) in real-time.

<figure><img src="/files/SG6bpCvPHtkIHDkFZA2S" alt=""><figcaption></figcaption></figure>

1. Notification trigger: The CCPayment will notify the transaction's final status to the merchant by default. if you want to be notified when the transaction was detected or was sent to the blockchain, you can adjust the notification setting on the below page to suit your needs.

<figure><img src="/files/zQFiliV3dlKkbn3uigEg" alt=""><figcaption></figcaption></figure>

2. You can set the configure Webhook URL on the Developer setting page to receive the notification. And part of the interface supports separate configuration via incoming parameters: Notification URL

<figure><img src="/files/I9XeN7pFPSxsIUU7yspy" alt=""><figcaption></figcaption></figure>

3. Once the merchant has processed the order, please return {http code: 200} and include a “success” string in the HTTP response body.&#x20;

**Example**

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

```php
$this->response->setString("success")
```

{% endtab %}

{% tab title="Java" %}

```java
this.response.setString("success");
```

{% endtab %}

{% tab title="Golong" %}

```go
this.response.SetString("success")
```

{% endtab %}

{% tab title="Python" %}

```python
self.response.set_string("success")
```

{% endtab %}

{% tab title="Node.js" %}

```javascript
this.response.setString("success");
```

{% endtab %}
{% endtabs %}

<figure><img src="/files/lxMBlaG0Zv5K2lnN6uKq" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Note: Different types of transactions have different notification content, and you can distinguish the transaction types according to the type of webhook notification order. (Please check [the webhook notification of all types of transactions](/ccpayment-v1.0-api/webhook-notification.md))
{% endhint %}

4. If CCPayment does not receive “success” as a response from the merchant, CCPayment will keep pushing the notification up to 7 times. Any response other than “success” will be regarded as a failure, and CCPayment will keep sending the notification.
5. Notification log: you can view the sent notifications on the webhook log page. You can click "Resend" or "Batch Resend" to push the notification again also.

<figure><img src="/files/ZV81u7qdzX5LOeGvCpP7" alt=""><figcaption></figcaption></figure>


---

# 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://docs.ccpayment.com/ccpayment-v1.0-api/webhook-notification/webhook-notification-tutorial.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.
