Register Card (Billkey Checkout)
Register a card through the checkout page with a zero-amount verification — no actual charge — and receive a billkey (payment token) for recurring payments.
Test Key Information
API Information
POST/card/cardAuth.do
Content-Type
application/x-www-form-urlencoded테스트
https://tbnpg.settlebank.co.kr/card/cardAuth.do운영
https://npg.settlebank.co.kr/card/cardAuth.doImportant Notes
NOTE
Billkey Service Activation
To receive a billkey, you must separately activate the Payment Token service. Contact your account manager.
- This is a zero-amount verification: the card is authenticated only and no actual charge (approval) occurs. The transaction amount (
trdAmt) is fixed to"0". - Once a billkey is issued, use it to request the subsequent charge API. (See Credit Card Billkey Payment API)
- To issue a billkey together with an actual payment, use the Credit Card Checkout instead.
Request Parameters
타입 표기법
N숫자A영문H한글AN영문+숫자AHN영문+한글+숫자예: AN(10) = 영문+숫자, 최대 10byte
Required Parameters
└mchtIdAN(10)Alphanumeric, up to 10 bytes*Unique merchant ID issued by Hecto Financial
Unique merchant ID issued by Hecto Financial
└methodAN(20)Alphanumeric, up to 20 bytes*Payment method code for the PG service
Payment method code for the PG service
*Fixed value
└trdDtN(8)Numeric, up to 8 bytes*Request date (yyyyMMdd)
Request date (yyyyMMdd)
└trdTmN(6)Numeric, up to 6 bytes*Request time (HH24MISS)
Request time (HH24MISS)
└mchtTrdNoAN(100)Alphanumeric, up to 100 bytes*Unique order number generated by the merchant (no Korean characters)
Unique order number generated by the merchant (no Korean characters)
└mchtNameAHN(100)Alphanumeric + Korean, up to 100 bytes*Merchant name (Korean)
Merchant name (Korean)
└mchtENameAN(100)Alphanumeric, up to 100 bytes*Merchant name (English)
Merchant name (English)
└pmtPrdtNmAHN(128)Alphanumeric + Korean, up to 128 bytes*Product name
Product name
└trdAmtN(12)Numeric, up to 12 bytes*
AES-256AES-256/ECB/PKCS5Padding + Base64Transaction amount. Fixed to 0 for zero-amount verificationTransaction amount. Fixed to 0 for zero-amount verification
*Fixed value
└notiUrlAN(250)Alphanumeric, up to 250 bytes*URL that receives the result after card registration (server-to-server webhook URL)
URL that receives the result after card registration (server-to-server webhook URL)
└nextUrlAN(250)Alphanumeric, up to 250 bytes*URL the customer is redirected to with the registration result
URL the customer is redirected to with the registration result
*Redirected when the customer clicks the button in the checkout window. Check outStatCd for success (0021) or failure (0031).
└cancUrlAN(250)Alphanumeric, up to 250 bytes*URL the customer is redirected to when clicking the X button in the checkout window
URL the customer is redirected to when clicking the X button in the checkout window
*Closing the browser or navigating back is not detected.
└pktHashAN(200)Alphanumeric, up to 200 bytes*
SHA-256SHA256 hash value(실시간 생성)SHA256 hash value
NOTE
Hash Generation Combination
mchtId + method + mchtTrdNo + trdDt + trdTm + trdAmt(plaintext) + hashKey
Optional Parameters
└mchtCustNmAHN(30)Alphanumeric + Korean, up to 30 bytes
AES-256AES-256/ECB/PKCS5Padding + Base64Customer nameCustomer name
└mchtParamAHN(4000)Alphanumeric + Korean, up to 4000 bytesMerchant reserved field for additional order information
Merchant reserved field for additional order information
└mchtCustIdAN(50)Alphanumeric, up to 50 bytes
AES-256AES-256/ECB/PKCS5Padding + Base64Unique customer ID or key provided by the merchantUnique customer ID or key provided by the merchant
└custIpAN(15)Alphanumeric, up to 15 bytesCustomer device IP address (not the merchant server IP)
Customer device IP address (not the merchant server IP)
Response Parameters
On completion or failure the customer is redirected to nextUrl, and to cancUrl when the X button is clicked in the checkout window, with the parameters below. Closing the browser or navigating back is not detected.
타입 표기법
N숫자A영문H한글AN영문+숫자AHN영문+한글+숫자예: AN(10) = 영문+숫자, 최대 10byte
└mchtIdAN(10)Alphanumeric, up to 10 bytes*Unique merchant ID issued by Hecto Financial
nxca_jt_guUnique merchant ID issued by Hecto Financial
└outStatCdAN(4)Alphanumeric, up to 4 bytes*Transaction status code (success/failure)
0021Transaction status code (success/failure)
0021: Success 0031: Failure└outRsltCdAN(4)Alphanumeric, up to 4 bytes*Rejection code. Detailed code delivered when the status is '0031'
0000Rejection code. Detailed code delivered when the status is '0031'
*See the rejection code table
└outRsltMsgAHN(200)Alphanumeric + Korean, up to 200 bytes*Result message (URL Encoding, UTF-8)
Processed successfully.Result message (URL Encoding, UTF-8)
└methodAN(20)Alphanumeric, up to 20 bytes*Payment method code for the PG service
cardPayment method code for the PG service
*Fixed value
└mchtTrdNoAN(100)Alphanumeric, up to 100 bytes*Unique order number generated by the merchant (no Korean characters)
ORDER20211231100000Unique order number generated by the merchant (no Korean characters)
└mchtCustIdAN(50)Alphanumeric, up to 50 bytes
AES-256AES-256/ECB/PKCS5PaddingUnique customer ID or key provided by the merchantHongGilDongUnique customer ID or key provided by the merchant
*실제 응답값은 AES-256 암호화된 값입니다. 복호화 후 사용하세요.
└trdNoAN(40)Alphanumeric, up to 40 bytes*Hecto Financial transaction number
STFP_PGCAnxca_jt_il0211129135810M1494620Hecto Financial transaction number
└mchtParamAHN(4000)Alphanumeric + Korean, up to 4000 bytesField values from the request, passed back in the response
name=HongGilDong&age=25Field values from the request, passed back in the response
└authDtN(14)Numeric, up to 14 bytesDate and time the card was authenticated
20211231100000Date and time the card was authenticated
└cardNoMaskingAN(20)Alphanumeric, up to 20 bytesMasked card number
532312******8756Masked card number
└cardKindAHN(50)Alphanumeric + Korean, up to 50 bytesCard kind
BC check cardCard kind
└fnNmAH(20)Alpha + Korean, up to 20 bytesCard company name
BC (Paybooc)Card company name
└fnCdAN(4)Alphanumeric, up to 4 bytesCard company code
BCCCard company code
└billKeyAN(50)Alphanumeric, up to 50 bytes*Recurring payment key issued with the Payment Token service. Used for subsequent charges
SBILL_0123456789Recurring payment key issued with the Payment Token service. Used for subsequent charges
*Requires separate service activation via your account manager
Webhook (Notification)
When card registration completes successfully, Hecto Financial sends a notification to the merchant. The business type (bizType) is delivered as A8 (billkey issuance).
NOTE
Webhook Reference
For credit card notification parameters and handling, see the webhook documentation.
Need technical support?
Code Samples
HectoFinancial GitHubAPI Test
