KG INICIS
for default PGKG INICIS
for subscription payKakao Pay
for simple payDefault PG
and any Additional PGs
if needed.param.pg
value when you call IMP.request_pay
to open the payment page. The default value is used when the pg
value is missing or invalid.
In this example, KG INICIS (web standard method)
is set as the default PG as follows:KG INICIS
.
Click the Add PG tab on the left.Merchant ID
and PG information for subscription payment as follows:Kakao Pay
for simple payment service.
First, get a merchant code (CID) from Kakao Pay
.
Click the Add PG tab on the left again and set PG
to Kakao Pay
.PG | Merchant ID | Pay Type | Default PG |
---|---|---|---|
KG INICIS | MID-a (example) | General | O |
KG INICIS | MID-b (example) | Subscription | X |
Kakao Pay | MID-c (example) | Simple | X |
IMP.request_pay
by specifing the PG that is already configured in Admin Console, in the param.pg
property. The pg
value can have the following format:{ PG service code }
{ PG service code }.{ PG merchant ID }
Matching priority for PG
IMP.request_pay
finds the setting that matches the pg
value in the order of the PG settings in the Admin Console. It opens the payment window for the first matching PG setting.
{ PG service code }
Kakao Pay
can be identified just with the PG service code
.Set kakaopay
in the pg
property for the Kakao Pay payment window as follows: IMP.request_pay({
pg : "kakaopay", //Open Kakao Pay payment page
amount : 1000,
name : "Sample order",
buyer_name : "Buyer",
buyer_email : "buyer@iamport.kr"
});
{ PG service code }.{ PG merchant ID }
KG INICIS (general)
and KG INICIS (subscription)
have the same PG service code. Hence, you need to set pg
to a value that combines the service code with the merchant ID. If you set them to the same value, the PG setting is selected according to the PG's matching priority.Open the KG INICIS (general) payment page as follows: IMP.request_pay({
pg : "html5_inicis.MID-a", // Call KG INICIS general payment window (merchant ID: MID-a)
amount : 1000,
name : "Sample order",
buyer_name : "Buyer",
buyer_email : "buyer@iamport.kr"
});
IMP.request_pay({
pg : "html5_inicis.MID-b", // KG INICIS subscription payment window (merchant ID: MID-b)
amount : 1000,
name : "Sample order",
buyer_name : "Buyer",
buyer_email : "buyer@iamport.kr"
});