To open a PG's payment window, call JavaScript SDKIMP.request_pay by specifying the PG that is already configured in Admin console in the param.pg property.
Assume that we have added 3 PG settings as follows:
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
Of the previously added PG settings, Kakao Pay can be identified just with the PG service code. Set kakaopay in the pg property for the Kakao Pay payment request as follows:
Of the previously added PG settings, 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, { PG Code }.{ PG Merchant ID }.
Matching priority for PG
IMP.request_pay finds the setting that matches the pg value in the order the PG settings are shown in the Admin console. It opens the payment window for the first matching PG setting.