# Daou

## Authenticated payment

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

### **Test environment setup**

1. [i'mport Admin console](https://admin.iamport.kr)→ **Payment integration** → **Test settings** → Select PG (**PAYJOA**) → **PAYJOA** -> **Add**&#x20;
2. Check the auto-generated Merchant ID/Key/MID values and click **Save**

![Payment integration → Test settings → Select PG (PAYJOA) → PAYJOA -> Add](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2FbW9maoApbUIaVT6jiE3S%2Fimage.png?alt=media\&token=604f0817-c0ee-44c7-aee9-edb15f395de9)

![Check the auto-generated Merchant ID/Key/MID values and click Save](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2FXBGSYh6KLF2xC8LD0gxR%2Fimage.png?alt=media\&token=73a436e0-234a-437d-a35d-40bf07a0cae7)
{% endtab %}

{% tab title="Live" %}

### Live environment setup

1. **Payment integration -> Live settings**
2. Select PG (**PAYJOA**) → **PAYJOA** -> **Add**
3. Enter merchant info issued by Daou upon contract signing.

![Payment integration -> Live settings](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2F80h5Tanp8F4ZKgTTfaAy%2Fimage.png?alt=media\&token=b286489b-fa1b-4514-b860-3a7939ba18b4)

![Select PG (PAYJOA) → PAYJOA -> Add](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2Fy52EyT1nKTKPuwKpFayZ%2Fimage.png?alt=media\&token=296eecbc-5835-4dec-8d6a-306d6e1f1803)

![Enter merchant info issued by Daou upon contract signing](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2FxXacsH0pgERxUtiSXf7k%2Fimage.png?alt=media\&token=e58f5a38-a0b0-4877-94da-13b70c917817)

{% hint style="success" %}

### **Checklist**

* Must request MID for the correct **product type** (physical/digital).
* **Payment integration key** is required for payment cancellation.
  {% endhint %}

###

### \[PAYJOA Admin console settings]

Configure the following settings to **successfully receive payment result**.

1. Log in to the [PAYJOA Admin page](https://agent.kiwoompay.co.kr/)
2. At the top of the page, click **Customer support** > **Integration settings**

![](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2FDLq8QXZde0gxleqKJNpo%2Fimage.png?alt=media\&token=4a42cd91-a73b-4154-958a-b8bf709788f2)

3\. In the integration settings page, select the **CPID** at the bottom and then click **Edit**

![Integration settings](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2FcPJSGzP2m4J9Cxh2rvZX%2Fimage.png?alt=media\&token=be052905-bedb-4614-b1a0-df33130aaf85)

4\. For each contracted payment method, set the **Notification URL**

> <https://service.iamport.kr/daou_payments/result>

![](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2Fg6KyzKM8aO2QBv2ACqvS%2Fimage.png?alt=media\&token=a1f8510b-f9c9-4a27-afea-d43a59a9cd62)
{% endtab %}
{% endtabs %}

## Non-authenticated payment

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

### Subscription test environment setup

1. [i'mport Admin console](https://admin.iamport.kr)→ **Payment integration** → **Test settings** → Select PG (**PAYJOA**) → **PAYJOA API** -> **Add**
2. **Select 'Subscription** test CTS17266' **Edit -> Save**

![Payment integration → Test settings → Select PG (PAYJOA) → PAYJOA API -> Add](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2Fbum6rQXZ6jkg0wQhFXtL%2Fimage.png?alt=media\&token=34c63afe-c429-4059-b4f2-7bf08aa60c24)

![Select 'Subscription test CTS17266' Edit -> Save](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2FMfEZ8hVk4lIUPOykZjJh%2Fimage.png?alt=media\&token=ab41ab2d-5084-4165-93f9-f3bb484d1ad0)

###

### Key-in (one-time) test environment setup

1. [i'mport Admin console](https://admin.iamport.kr)→ **Payment integration** → **Test settings** → Select PG (**PAYJOA**) → **PAYJOA API** -> **Add**
2. **Select 'Key-in** test CTS16629' **Edit -> Save**

![Payment integration → Test settings → Select PG (PAYJOA) → PAYJOA API -> Add](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2FaRDb40KqwnPkww5qR1Tz%2Fimage.png?alt=media\&token=57396f9d-389e-4751-9674-ee245e0a31a6)

![Select 'Key-in test CTS16629' Edit -> Save](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2FvcobTIA9rfBSiWiwYxqR%2Fimage.png?alt=media\&token=8c52b7ed-fcb1-4fe4-be54-b6364e9552de)

{% hint style="info" %}

### **Test key-in payment with different required parameters**

You can test by setting different required parameters by CPID.

* **Credit card number + password + expiration date + date of birth**

&#x20;    \- CPID : <mark style="color:red;">**CTS16629**</mark>

&#x20;    \- Secret : 7f59ab6239259b191e2806111734c17c4650301ae0f241d2939c747176b4f6aa

* **Credit card number + expiration date**

&#x20;    \- CPID :  <mark style="color:red;">**CTS16628**</mark>

&#x20;    \- Secret : 9e810e78e4d8ac765f8f04f1f3132da0c4891a2c04f6ee5a142bc333070b68a9
{% endhint %}

{% hint style="success" %}

### **Checklist**

* PAYJOA's subscription payment supports only the REST API method.&#x20;
* In test mode, actual withdrawal occurs but is automatically cancelled daily between 23:00 and 23:50.&#x20;
* Note that the test Merchant ID for **key-in** (one-time) and **subscription** payments are different.
* Must request MID for the correct **product type** (physical/digital).
  {% endhint %}

###

### Subscription/key-in payment <mark style="color:red;">production environment</mark> setup

1. **Payment integration -> Live settings**
2. Select PG (**PAYJOA**) → **PAYJOA API** -> **Add**
3. Enter merchant info issued by Daou upon contract signing

![Payment integration -> Live settings](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2FYmWNetDjLR6CTz3zstee%2Fimage.png?alt=media\&token=72cdd521-2949-4535-a457-d932894b4acc)

![Select PG (PAYJOA) → PAYJOA API -> Add](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2FzlrU22B1xYFVRFMCIJhO%2Fimage.png?alt=media\&token=12a57ad3-0eba-4406-9fad-2675fa071ab5)

![Enter merchant info issued by Daou upon contract signing](https://2814812280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTv8JEzyM5h4cYcL5StH%2Fuploads%2FQCpQXQyPnsGywMxerSeA%2Fimage.png?alt=media\&token=314a8b93-38ab-4653-a027-ed9cda481ac0)
{% endtab %}

{% tab title="Payment window" %}
**Not supported**
{% endtab %}
{% endtabs %}
