⌨ī¸Daou (PAYJOA)

Daou payment window integration guide

1. Configure Daou PG settings

Refer to the Daou settings page to configure the PG settings.

2. Request payment

To open the payment window, call JavaScript SDK IMP.request_pay(param, callback).

In PC browsers, callback is invoked after calling IMP.request_pay(param, callback). In mobile browsers, the page is redirected to m_redirect_url.

PAYJOA payment window integration requires JS SDK 1.2.0 or later version.

Javascript SDK
IMP.request_pay({
    pg : 'daou',
    pay_method : 'card',
    merchant_uid: 'mid_1234567890',
    escrow: false,
    amount: 1004,
    name: 'NF long padding jacket M',
    buyer_name: 'John Doe',
    buyer_email: 'hello@world.com',
    buyer_tel: '01012345678',
    digital : false, // Set to true if contracted as digital
    m_redirect_url: 'https://allerts.com/payments/complete', 
    bypass: {
	// PAYJOA (DaouData) specific parameters
        daou: {
	    PRODUCTCODE: 'iamport',
	    CASHRECEIPTFLAG: 2,
	},
    },
    app_scheme: 'iamportappscheme',
}, function(rsp) { // callback logic
	//* ...Omitted... *//
});

Key parameter description

pg *** **string

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 daou.

pay_method *** **string

Payment method code

Payment method codes
  • card (credit card)

  • trans(instant account transfer)

  • vbank(virtual account)

merchant_uid *** **string

Order ID

Must be unique for each request.

digital*string

Digital contents option

Must specify the value based on the contract between merchant and PAYJOA. Otherwise, request will fail.

bypass.daou.PRODUCTCODE`` string

Product code

If there is no specification for the value and the value is not specified, i'mport sets it to the default value (iamport) and sends it to PAYJOA.

bypass.daou.CASHRECEIPTFLAG`` integer

Cash receipt issuance code

Auto cash receipt issuance code for cash payments (account transfer, virtual account)

1: Allow

2: Block

app_scheme`` string

Mobile app URL scheme

Required in mobile app

amount *** **integer

Payment amount

Must be an integer (not string)

escrow`` boolean

Escrow option

Only supports account transfer and virtual account payment.

3. Additional functions

javascript
display: {
    card_quota: [6]  // Display up to 6 months installment plans
}

Parameters

  • card_quota :

    • []: Only immediate pay

    • 2,3,4,5,6: immediate, 2, 3, 4, 5, 6 month installment plans\

Installment plan option is available only for KRW 50,000 or more.

Last updated