# Eximbay

### 1. Configure Eximbay PG settings

Refer to the [**Eximbay settings**](/docs-en/ready/2.-pg/payment-gateway-settings/undefined-6.md) page to configure the PG settings.

![](/files/jWJ7PqGiOwCxNF6N9cFK)

### 2. Request payment

To open the payment window, call [JavaScript SDK](/docs-en/sdk/javascript-sdk.md) IMP.**request\_pay**(param, callback).

In PC and mobile browsers, <mark style="color:red;">**callback**</mark> is invoked after calling `IMP.request_pay(param, callback)`.

{% tabs %}
{% tab title="Authenticated payment request" %}
{% code title="Javascript SDK" %}

```javascript
IMP.request_pay({
    pg : 'eximbay',
    pay_method : 'card',
    merchant_uid : '{Merchant created Order ID}', // Example: order_no_0001
    name : 'Order name: Test payment request',
    amount : 14.20,
    currency : 'USD',
    buyer_email : 'iamport@siot.do',
    buyer_name : 'John Doe',
    buyer_tel : '010-1234-5678', // Required
    buyer_addr : 'Shinsa-dong, Gangnam-gu, Seoul',
    buyer_postcode : '123-456'
}, function(rsp) { // callback logic
	//* ...Omitted... *//
});
```

{% endcode %}

#### Key parameter description

**`pg`** <mark style="color:red;">**\***</mark>\*\* \*\*<mark style="color:green;">**string**</mark>

**PG code**

* If not specified and this is the only PG setting that exists, `default PG` is automatically set.
* If there are multiple PG settings, set to **`eximbay`**.

**`pay_method`** <mark style="color:red;">**\***</mark>\*\* \*\*<mark style="color:green;">**string**</mark>

**Payment method code**

<details>

<summary>Payment method codes</summary>

* `card` (credit card)
* `wechat`
* `alipay`
* `card` (foreign credit card)
* `unionpay`
* `tenpay`
* `econtext` (payment via Japanese convenience store)

</details>

**`merchant_uid`** <mark style="color:red;">**\***</mark>\*\* \*\*<mark style="color:green;">**string**</mark>

**Order ID**

Must be unique for each request.\\

**`buyer_tel`**<mark style="color:red;">**`*`**</mark><mark style="color:green;">**`string`**</mark>

**`Customer phone`**

**`amount`** <mark style="color:red;">**\***</mark>\*\* \*\*<mark style="color:purple;">**integer**</mark>

**Payment amount**

Must be an integer (not string)

**`currency`**<mark style="color:green;">**`string`**</mark>

**Currency**

* KRW
* USD
* EUR
* GBP
* JPY
* THB
* SGD
* RUB
* HKD
* CAD
* AUD

**` language`` `` `**<mark style="color:green;">**`string`**</mark>

* Korean : ko
* English : en
* Chinese : zh
* Japanese : jp
  {% endtab %}
  {% endtabs %}

{% hint style="warning" %}

#### Note

i'mport does not support Eximbay subscription payment.
{% endhint %}

<details>

<summary>How to test convenience store payment</summary>

#### Convenience store payment method

As with virtual accounts in Korea, payment is processed at the convenience store counter using the message sent to the customer by e-mail or text message after requesting payment via the payment window.

* i'mport internally sets pay\_method : vbank
* Sends callback and webhook to notify that Econtext has been created (status: ready / vbank\_num is fixed as unknown)
* When Econtext confirms payment deposit, i'mport receives a response from Eximbay, changes status to `paid`, and sends a webhook for post-payment processing

#### **Convenience store payment test procedure**

As with the virtual account, you need to test the result of the customer's deposit and receive a notification upon deposit.

1. Set Eximbay test mode to `ON` and proceed with the payment window.
2. Write down the `pg_tid` value from the callback response (check the value from the PG approval number column in the i'mport Admin console)
3. Log in from <http://test.econ.ne.jp/site/tuchi_2/tuchi_menu_2.html>\
   (ID: ectest / password: #eg0810# )
4. ShopID : 361301, orderID : `pg_tid` (from step 2)
5. Click **登録** button at the bottom
6. On the next page, click **登録** button
7. Wait 10 minutes and then check that the status is changed to **paid** (at this point, webhook is sent to notify of the deposit)

</details>


---

# 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://portone.gitbook.io/docs-en/payment-integration-by-pg/payment-gateways/eximbay.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.
