💿Payment request parameters
Parameters
pg* stringPG code
If not specified or invalid, the default PG setting in Admin console is used.
pay_method* stringPayment method code
Varies by PG.
escrowbooleanOption to open escrow payment window
Supported by only some PGs.
merchant_uid* stringMerchant order ID
Order ID generated uniquely for each request.
Max 40 bytes
If you specify an ID used for already approved transaction, your request will be rejected.
namestringProduct name
Max 16 bytes
amount* numberAmount
Must be numeric
custom_dataobjectCustom data
Can be received as echo in the response.
Saved as JSON notation (string).
Use to specify additional order information.
tax_freenumberTax free amount
Tax free amount (out of
amount)
currencystringCurrency
For PayPal, USD is the default value as PayPal does not support KRW
languagestringLanguage for payment window (Supported by only some PGs.)
buyer_name* stringCustomer name
buyer_telstringCustomer phone number
Some PGs throw an error if this is not specified
buyer_emailstringCustomer email
Some PGs throw an error if this is not specified (Paymentwall)
buyer_addrstringCustomer address
buyer_postcodestringCustomer zip code
confirm_urlstringMerchant endpoint url when using confirm_process
Must request for use to support@iamport.kr.
notice_urlstringWebhook URL
URL to use instead of Notification URL set in Admin Console (set for each request)
If specified, notification is not sent to the URL set in Admin Console.
customer_uidstringMerchant defined billing key
Customer billing key that is mapped 1:1 with the billing key for non-authenticated payment.
Additional properties
digitalbooleanOption to specify the product as digital content
Required for mobile micropayment
For intangible product, set to true
Note that fees vary depending on this option.
vbank_duestringVirtual account expiration
For virtual account payment
YYYYMMDDhhmm
m_redirect_urlstringEndPoint URL to redirect to after payment is complete
Required in redirection mode
Required in most mobile payment environments.
If not specified in redirection mode, you cannot receive the payment result.
app_schemestringURL scheme for returning to the app during mobile app payment
Required for WebView payment
Used to return to the original app after verifying payment info from ISP/App card app
biz_numstringBusiness registration number
Required for Danal-virtual account payment
Additional functions
display: {
card_quota: [6] // Display up to 6 months installment plans
}Parameters
card_quota :
[]: Only immediate pay2,3,4,5,6: immediate, 2, 3, 4, 5, 6 month installment plans
Example of allowing up to 3 months installment plans
card: {
direct: {
code: "367",
quota: 3
}
}Parameters
code: Credit card code (string)
quota: Installment plan. For immediate, set to 0. (integer)
Precautions
Currently, direct call to the credit card company's payment window is only supported by 6 PGs: KG Inicis, KCP, Toss Payments, Nice Payments, KICC, and Danal.
Some PGs do not support direct call to credit card company's payment windows for all Merchant IDs. You must check your Merchant ID with each PG for direct call support.
Example of direct call to Hyundai Card module
card : {
detail : [
{card_code:"*", enabled:false}, // Disable all credit cards
{card_code:'366', enabled:true} // Enable specific credit card
]
}Parameters
card_code: Credit card code (string)
enabled: Option to enable the credit card (boolean)
Example of enabling only Shinhan Card payment window
Last updated
