헥토파이낸셜 개발자센터
ProductsProducts
Payment Gateway
Cards, bank & digital wallets
My Bank Pay
Open banking debit
Easy Cash Payment
Stored-account payments
White-Label Payments
White-label checkout
Cash Receipt
Firm Banking
VAN Virtual Account
Prepaid Wallet
Integrate with LLMs
MCP server & AI chatbot
API & SDKAPI & SDK
Payment Gateway
Cards, bank & digital wallets
My Bank Pay
Open banking debit
Easy Cash Payment
Stored-account payments
White-Label Payments
White-label checkout
Cash Receipt
Firm Banking
VAN Virtual Account
Prepaid Wallet
블로그Blog
Service Status
Payment Gateway
My Bank Pay
Easy Cash Payment
White-Label Payments
Cash Receipt
Firm Banking
VAN Virtual Account
Prepaid Wallet
Integrate with LLMs
MCP 서버 및 AI 챗봇
Payment Gateway
My Bank Pay
Easy Cash Payment
White-Label Payments
Cash Receipt
Firm Banking
VAN Virtual Account
Prepaid Wallet
Blog
Technical blog & news
Service Status
Incidents and scheduled maintenance
Payment Gateway
Before You BeginServers & NetworkIntegration OverviewWebhooksCancellations & RefundsGo Live
Checkout IntegrationJavaScript SDKForm-Based Checkout Integration
Credit Card CheckoutCredit Card Direct APICredit Card WebhookCredit Card Deferred CaptureRegister Card (Billkey Checkout)Charge with Payment TokenDelete Payment TokenCancel Charge
Bank Transfer CheckoutBank Transfer WebhookBank Transfer Deferred CaptureCancel Bank Transfer
Virtual Account CheckoutVirtual Account Deposit WebhookIssue Virtual AccountFixed/Unlimited Virtual AccountModify Virtual AccountCancel Virtual AccountDeposit LookupRefund Virtual AccountSimulate Deposit
010 Virtual Account Overview010 Virtual Account CheckoutPhone Ownership Verification — RequestPhone Ownership Verification — ConfirmDuplicate Amount CheckIssue 010 Virtual AccountCancel 010 Virtual AccountRefund 010 Virtual Account010 Virtual Account Deposit WebhookSimulate 010 Deposit
Mobile Payment CheckoutMobile Payment WebhookMobile Payment — Two-Step CaptureMobile Recurring PaymentCancel Mobile PaymentRefund Mobile Payment
Gift Card CheckoutGift Card WebhookCancel Gift Card Payment
T-money CheckoutT-money WebhookCancel T-money Payment
Point Damoa CheckoutPoint Damoa WebhookPoint Damoa Deferred CaptureCancel Point Damoa Payment
Digital Wallets OverviewPAYCO CheckoutPAYCO SandboxSamsung Pay CheckoutKakaoPay CheckoutNaverPay CheckoutTossPay CheckoutDigital Wallet WebhookCancel Digital Wallet PaymentWallet Recurring PaymentSubscription StatusCancel Subscription
Real-time Transaction LookupReceipt (Sales Slip) Inquiry (No Auth)Receipt (Sales Slip) Inquiry (Auth)Transaction ReconciliationSettlement ReconciliationSub-Merchant RegistrationPreferential Settlement (SME)SME Refund Adjustment
Error CodesCard Issuer CodesBank CodesPayment Method CodesVirtual Account Bank Codes
My Bank Pay
Before You BeginServers & NetworkIntegration Overview
Checkout SDK
My Bank Pay — AuthenticateMy Bank Pay — CaptureMy Bank Pay — CancelMy Bank Pay — Network Cancel
Transaction Result LookupTransaction HistoryCash Receipt Lookup
Create Recurring TokenCharge via Recurring TokenCancel Subscription
Error CodesBank CodesBank Maintenance Schedule
Easy Cash Payment
Before You BeginServers & NetworkFirm Banking Integration Flow
Mobile Identity Verification — RequestMobile Identity Verification — ConfirmAccount Holder Name Lookup IAccount Holder Name Lookup IIAccount Holder Name (with Amount)Account Ownership VerificationAccount Ownership — RequestAccount Ownership — ConfirmIVR Verification — RequestIVR Verification — ConfirmOwnership Verification HistoryPayment PIN Verification
Register AccountDeregister AccountSelf-Service Account RegistrationKFTC Deregistered Account Lookup
Capture PaymentCancel / Refund PaymentSend RemittanceRemittance Account Balance
Create Recurring TokenCharge via Recurring TokenCancel SubscriptionSubscription DetailsSubscription History
Transaction Result LookupTransaction HistoryAccount ListSupported BanksBank Maintenance CheckOwnership Verification Bank MaintenanceConnectivity Test
Before You BeginServers & NetworkOpen Banking Integration Flow
Register AccountRegister Open Banking AccountDeregister Open Banking Service
Capture PaymentCancel PaymentSend Remittance
Submit Refund ClaimRefund Claim Status
Transaction Result LookupTransaction HistoryAccount ListWithdrawal Limit
Decline Code ReferenceBank Code ReferenceBank Maintenance Schedule
White-Label Payments
Before You BeginServers & NetworkIntegration Overview
Payment CheckoutCapture PaymentCancellations & Refunds
Inquiry
Error CodesBank CodesBank Maintenance Schedule
Cash Receipt
Before You BeginServers & NetworkIntegration Overview
Issue Cash ReceiptCancel Cash Receipt
Issuance Error LookupIssuance Status Lookup
Reprocessing RegistrationReprocessing Result Lookup
Reference
Firm Banking
Before You BeginIntegration Overview
Connection Management
Interbank TransferCollection TransferCollection Account SetupReserve Transfer (SC Bank)Trust Deposit (Woori Bank)
Transfer Failure WebhookTransaction Statement WebhookBill Statement WebhookBill Statement — Missing SequenceReserve Transfer Result Webhook (SC)Transfer Failure — Missing SequenceTransaction Detail — Missing Sequence
Account Holder Name LookupTransfer Result LookupBalance LookupReserve Transfer Result (SC)Auto Transfer Result (SC)
Transfer ReconciliationCollection ReconciliationWebhook Delivery Status
Connection Management
FX RemittanceCancel FX RemittanceFX Remittance Result WebhookFX Remittance Result — Missing SequenceFX Remittance (MX)FX Remittance Result Webhook (MX)FX Remittance — Missing Sequence (MX)
FX Same-Bank Holder LookupFX Account Holder LookupExchange Rate LookupExchange Rate Lookup (KEB)FX Remittance Result LookupFX Balance Lookup
FX Remittance ReconciliationFX Auto Transfer ReconciliationFX Same-Bank Remittance Reconciliation
FX Transaction Statement WebhookFX Transaction Statement — Missing Sequence
VAN Virtual Account
Getting Started with VAVSCommunication and Message FormatCommon Header
Recipient InquiryDeposit and Cancellation
RemittanceDeposit Balance Inquiry
Reconciliation
Account Holder InquiryActual Depositor NotificationActual Depositor FileMissing Actual Depositor InquiryWithdrawal Account Registration
Bank CodesResponse CodesChannel CodesBank Operating Hours
Prepaid Wallet
Before You BeginServers & NetworkIntegration Overview
Member Registration UIMy Account UI
Spend BalanceVoid SpendSend Money GiftRevoke Points
Balance LookupBalance OptionsBalance DetailsBalance by Top-upWithdrawable BalanceTransaction ListTransaction DetailsTransaction Details by StoreMember DetailsExpiring PointsTop-up Methods
Top-upCancel Top-upWithdraw FundsPending Withdrawal
Error CodesTransaction Type Codes

Tools

Encryption Test
Payment Gateway
Before You BeginServers & NetworkIntegration OverviewWebhooksCancellations & RefundsGo Live
Checkout IntegrationJavaScript SDKForm-Based Checkout Integration
Credit Card CheckoutCredit Card Direct APICredit Card WebhookCredit Card Deferred CaptureRegister Card (Billkey Checkout)Charge with Payment TokenDelete Payment TokenCancel Charge
Bank Transfer CheckoutBank Transfer WebhookBank Transfer Deferred CaptureCancel Bank Transfer
Virtual Account CheckoutVirtual Account Deposit WebhookIssue Virtual AccountFixed/Unlimited Virtual AccountModify Virtual AccountCancel Virtual AccountDeposit LookupRefund Virtual AccountSimulate Deposit
010 Virtual Account Overview010 Virtual Account CheckoutPhone Ownership Verification — RequestPhone Ownership Verification — ConfirmDuplicate Amount CheckIssue 010 Virtual AccountCancel 010 Virtual AccountRefund 010 Virtual Account010 Virtual Account Deposit WebhookSimulate 010 Deposit
Mobile Payment CheckoutMobile Payment WebhookMobile Payment — Two-Step CaptureMobile Recurring PaymentCancel Mobile PaymentRefund Mobile Payment
Gift Card CheckoutGift Card WebhookCancel Gift Card Payment
T-money CheckoutT-money WebhookCancel T-money Payment
Point Damoa CheckoutPoint Damoa WebhookPoint Damoa Deferred CaptureCancel Point Damoa Payment
Digital Wallets OverviewPAYCO CheckoutPAYCO SandboxSamsung Pay CheckoutKakaoPay CheckoutNaverPay CheckoutTossPay CheckoutDigital Wallet WebhookCancel Digital Wallet PaymentWallet Recurring PaymentSubscription StatusCancel Subscription
Real-time Transaction LookupReceipt (Sales Slip) Inquiry (No Auth)Receipt (Sales Slip) Inquiry (Auth)Transaction ReconciliationSettlement ReconciliationSub-Merchant RegistrationPreferential Settlement (SME)SME Refund Adjustment
Error CodesCard Issuer CodesBank CodesPayment Method CodesVirtual Account Bank Codes
My Bank Pay
Before You BeginServers & NetworkIntegration Overview
Checkout SDK
My Bank Pay — AuthenticateMy Bank Pay — CaptureMy Bank Pay — CancelMy Bank Pay — Network Cancel
Transaction Result LookupTransaction HistoryCash Receipt Lookup
Create Recurring TokenCharge via Recurring TokenCancel Subscription
Error CodesBank CodesBank Maintenance Schedule
Easy Cash Payment
Before You BeginServers & NetworkFirm Banking Integration Flow
Mobile Identity Verification — RequestMobile Identity Verification — ConfirmAccount Holder Name Lookup IAccount Holder Name Lookup IIAccount Holder Name (with Amount)Account Ownership VerificationAccount Ownership — RequestAccount Ownership — ConfirmIVR Verification — RequestIVR Verification — ConfirmOwnership Verification HistoryPayment PIN Verification
Register AccountDeregister AccountSelf-Service Account RegistrationKFTC Deregistered Account Lookup
Capture PaymentCancel / Refund PaymentSend RemittanceRemittance Account Balance
Create Recurring TokenCharge via Recurring TokenCancel SubscriptionSubscription DetailsSubscription History
Transaction Result LookupTransaction HistoryAccount ListSupported BanksBank Maintenance CheckOwnership Verification Bank MaintenanceConnectivity Test
Before You BeginServers & NetworkOpen Banking Integration Flow
Register AccountRegister Open Banking AccountDeregister Open Banking Service
Capture PaymentCancel PaymentSend Remittance
Submit Refund ClaimRefund Claim Status
Transaction Result LookupTransaction HistoryAccount ListWithdrawal Limit
Decline Code ReferenceBank Code ReferenceBank Maintenance Schedule
White-Label Payments
Before You BeginServers & NetworkIntegration Overview
Payment CheckoutCapture PaymentCancellations & Refunds
Inquiry
Error CodesBank CodesBank Maintenance Schedule
Cash Receipt
Before You BeginServers & NetworkIntegration Overview
Issue Cash ReceiptCancel Cash Receipt
Issuance Error LookupIssuance Status Lookup
Reprocessing RegistrationReprocessing Result Lookup
Reference
Firm Banking
Before You BeginIntegration Overview
Connection Management
Interbank TransferCollection TransferCollection Account SetupReserve Transfer (SC Bank)Trust Deposit (Woori Bank)
Transfer Failure WebhookTransaction Statement WebhookBill Statement WebhookBill Statement — Missing SequenceReserve Transfer Result Webhook (SC)Transfer Failure — Missing SequenceTransaction Detail — Missing Sequence
Account Holder Name LookupTransfer Result LookupBalance LookupReserve Transfer Result (SC)Auto Transfer Result (SC)
Transfer ReconciliationCollection ReconciliationWebhook Delivery Status
Connection Management
FX RemittanceCancel FX RemittanceFX Remittance Result WebhookFX Remittance Result — Missing SequenceFX Remittance (MX)FX Remittance Result Webhook (MX)FX Remittance — Missing Sequence (MX)
FX Same-Bank Holder LookupFX Account Holder LookupExchange Rate LookupExchange Rate Lookup (KEB)FX Remittance Result LookupFX Balance Lookup
FX Remittance ReconciliationFX Auto Transfer ReconciliationFX Same-Bank Remittance Reconciliation
FX Transaction Statement WebhookFX Transaction Statement — Missing Sequence
VAN Virtual Account
Getting Started with VAVSCommunication and Message FormatCommon Header
Recipient InquiryDeposit and Cancellation
RemittanceDeposit Balance Inquiry
Reconciliation
Account Holder InquiryActual Depositor NotificationActual Depositor FileMissing Actual Depositor InquiryWithdrawal Account Registration
Bank CodesResponse CodesChannel CodesBank Operating Hours
Prepaid Wallet
Before You BeginServers & NetworkIntegration Overview
Member Registration UIMy Account UI
Spend BalanceVoid SpendSend Money GiftRevoke Points
Balance LookupBalance OptionsBalance DetailsBalance by Top-upWithdrawable BalanceTransaction ListTransaction DetailsTransaction Details by StoreMember DetailsExpiring PointsTop-up Methods
Top-upCancel Top-upWithdraw FundsPending Withdrawal
Error CodesTransaction Type Codes

Tools

Encryption Test

Credit Card Webhook

When a transaction is successfully completed, Hecto Financial sends a webhook to your server. For details, see the notiUrl guide.

NOTE

What is notiUrl?

notiUrl is a server-to-server webhook that sends the payment result directly from the Hecto Financial server to your server. It does not go through the browser, ensuring reliable delivery of payment results.
NOTE

When paid via simple payment

If the customer pays with a simple payment (KakaoPay, NaverPay, etc.) on the credit card checkout, the result is delivered as a simple payment webhook with the payment method code PZ. See the simple payment webhook document below for parameters. View the simple payment webhook

Communication Specification

ItemDescription
MethodPOST
Content-Typeapplication/x-www-form-urlencoded; charset=UTF-8
Response FormatPlain Text (OK or FAIL)

Cancellation Webhook Notice

Cancellation webhook is not provided by default

Credit card cancellation results are confirmed via API response, so cancellation webhooks are not sent by default. If you need cancellation webhooks, contact your sales representative or technical support (pgsupport@hecto.co.kr).

Webhook Parameters

Type Notation
NNumericAAlphabeticHKoreanANAlphanumericAHNAlphanumeric + Korean
e.g. AN(10) = alphanumeric, up to 10 bytes
└outStatCdN(4)Numeric, up to 4 bytes*Transaction status0021
Transaction status
0021: Success
Parameter
Type
Description
Example
outStatCdRequired
N(4)
Transaction status
0021: Success
0021
└trdNoAN(40)Alphanumeric, up to 40 bytes*Unique transaction number assigned by Hecto FinancialSTFP_PGCAnxca_jt_il0211129135810M1494620
Unique transaction number assigned by Hecto Financial
Parameter
Type
Description
Example
trdNoRequired
AN(40)
Unique transaction number assigned by Hecto Financial
STFP_PGCAnxca_jt_il0211129135810M1494620
└methodA(2)Alphabetic, up to 2 bytes*Payment methodCA
Payment method
CA: Credit Card
Parameter
Type
Description
Example
methodRequired
A(2)
Payment method
CA: Credit Card
CA
└bizTypeAN(2)Alphanumeric, up to 2 bytes*Business typeB0
Business type
B0: Approval C0: Cancellation A8: Billkey issuance
Parameter
Type
Description
Example
bizTypeRequired
AN(2)
Business type
B0: Approval / C0: Cancellation / A8: Billkey issuance
B0
└mchtIdAN(12)Alphanumeric, up to 12 bytes*Merchant ID assigned by Hecto Financialnxca_jt_il
Merchant ID assigned by Hecto Financial
Parameter
Type
Description
Example
mchtIdRequired
AN(12)
Merchant ID assigned by Hecto Financial
nxca_jt_il
└mchtTrdNoAN(100)Alphanumeric, up to 100 bytes*Unique order number generated by the merchantORDER20211231100000
Unique order number generated by the merchant
Parameter
Type
Description
Example
mchtTrdNoRequired
AN(100)
Unique order number generated by the merchant
ORDER20211231100000
└mchtCustNmAHN(30)Alphanumeric + Korean, up to 30 bytesThe name of the customer who completed this paymentHong Gil-dong
The name of the customer who completed this payment
Parameter
Type
Description
Example
mchtCustNm
AHN(30)
The name of the customer who completed this payment
Hong Gil-dong
└mchtNameAHN(20)Alphanumeric + Korean, up to 20 bytesActual seller name. If not provided, the merchant name registered with Hecto Financial is used.Hecto Financial
Actual seller name. If not provided, the merchant name registered with Hecto Financial is used.
Parameter
Type
Description
Example
mchtName
AHN(20)
Actual seller name. If not provided, the merchant name registered with Hecto Financial is used.
Hecto Financial
└pmtprdNmAHN(128)Alphanumeric + Korean, up to 128 bytesProduct name ordered by the customerTest Product
Product name ordered by the customer
Parameter
Type
Description
Example
pmtprdNm
AHN(128)
Product name ordered by the customer
Test Product
└trdDtmN(14)Numeric, up to 14 bytes*Transaction datetime. For approvals: approval datetime. For cancellations: cancellation datetime. Format: YYYYMMDDhhmmss20211231100000
Transaction datetime. For approvals: approval datetime. For cancellations: cancellation datetime. Format: YYYYMMDDhhmmss
Parameter
Type
Description
Example
trdDtmRequired
N(14)
Transaction datetime. For approvals: approval datetime. For cancellations: cancellation datetime. Format: YYYYMMDDhhmmss
20211231100000
└trdAmtN(12)Numeric, up to 12 bytesTransaction amount1000
Transaction amount
Parameter
Type
Description
Example
trdAmt
N(12)
Transaction amount
1000
└svcAmtN(12)Numeric, up to 12 bytesCredit card service charge. Provided only for offline transactions that include a service charge.0
Credit card service charge. Provided only for offline transactions that include a service charge.
Parameter
Type
Description
Example
svcAmt
N(12)
Credit card service charge. Provided only for offline transactions that include a service charge.
0
└billKeyAN(40)Alphanumeric, up to 40 bytesBillkey issued for subsequent recurring chargesSBILL_0123456789
Billkey issued for subsequent recurring charges
Parameter
Type
Description
Example
billKey
AN(40)
Billkey issued for subsequent recurring charges
SBILL_0123456789
└billKeyExpireDtN(4)Numeric, up to 4 bytesBillkey expiration date (YYMM)2212
Billkey expiration date (YYMM)
*Provided only to merchants with a prior agreement
Parameter
Type
Description
Example
billKeyExpireDt
N(4)
Billkey expiration date (YYMM)
* Provided only to merchants with a prior agreement
2212
└cardCdAN(10)Alphanumeric, up to 10 bytesCard company codeNHC
Card company code
*Sent based on the card issuer.
See the Card Company Code Reference page for card company codes.
Parameter
Type
Description
Example
cardCd
AN(10)
Card company code
* Sent based on the card issuer. See the Card Company Code Reference page for card company codes.
NHC
└cardNmAHN(20)Alphanumeric + Korean, up to 20 bytesCard company nameNH Check
Card company name
Parameter
Type
Description
Example
cardNm
AHN(20)
Card company name
NH Check
└emailAN(60)Alphanumeric, up to 60 bytesMerchant customer emailHongGilDong@example.com
Merchant customer email
Parameter
Type
Description
Example
email
AN(60)
Merchant customer email
HongGilDong@example.com
└mchtCustIdAN(50)Alphanumeric, up to 50 bytesMerchant customer IDHongGilDong
Merchant customer ID
Parameter
Type
Description
Example
mchtCustId
AN(50)
Merchant customer ID
HongGilDong
└cardNoAN(20)Alphanumeric, up to 20 bytesMasked card number (optional based on merchant settings)123456******7890
Masked card number (optional based on merchant settings)
*App card and digital wallet cards may differ from the actual card number.
Parameter
Type
Description
Example
cardNo
AN(20)
Masked card number (optional based on merchant settings)
* App card and digital wallet cards may differ from the actual card number.
123456******7890
└cardApprNoAN(15)Alphanumeric, up to 15 bytesCard approval number30001234
Card approval number
Parameter
Type
Description
Example
cardApprNo
AN(15)
Card approval number
30001234
└instmtMonN(2)Numeric, up to 2 bytesInstallment months00
Installment months
Parameter
Type
Description
Example
instmtMon
N(2)
Installment months
00
└instmtTypeA(1)Alphabetic, up to 1 bytesIndicates whether the installment is interest-free under a card issuer promotional plan. 'Y' = promotional zero-interest installment; 'N' = standard installment. Included only when enabled for your merchant account.N
Indicates whether the installment is interest-free under a card issuer promotional plan. 'Y' = promotional zero-interest installment; 'N' = standard installment. Included only when enabled for your merchant account.
Parameter
Type
Description
Example
instmtType
A(1)
Indicates whether the installment is interest-free under a card issuer promotional plan. 'Y' = promotional zero-interest installment; 'N' = standard installment. Included only when enabled for your merchant account.
N
└orgTrdNoAN(40)Alphanumeric, up to 40 bytesOriginal transaction number for cancellationsSTFP_PGCAnxca_jt_il0211129135810M1494620
Original transaction number for cancellations
Parameter
Type
Description
Example
orgTrdNo
AN(40)
Original transaction number for cancellations
STFP_PGCAnxca_jt_il0211129135810M1494620
└orgTrdDtN(8)Numeric, up to 8 bytesOriginal transaction date for cancellations20211231
Original transaction date for cancellations
Parameter
Type
Description
Example
orgTrdDt
N(8)
Original transaction date for cancellations
20211231
└mixTrdNoAN(40)Alphanumeric, up to 40 bytesCombined payment transaction numberSTFP_PGCAnxca_jt_il0211129135810M1494620
Combined payment transaction number
Parameter
Type
Description
Example
mixTrdNo
AN(40)
Combined payment transaction number
STFP_PGCAnxca_jt_il0211129135810M1494620
└mixTrdAmtN(12)Numeric, up to 12 bytesCombined payment amount. Provided only when mixTrdNo exists.1000
Combined payment amount. Provided only when mixTrdNo exists.
Parameter
Type
Description
Example
mixTrdAmt
N(12)
Combined payment amount. Provided only when mixTrdNo exists.
1000
└payAmtN(12)Numeric, up to 12 bytesActual payment amount excluding combined payment amount (payAmt = trdAmt - mixTrdAmt). Provided only when mixTrdNo exists.1000
Actual payment amount excluding combined payment amount (payAmt = trdAmt - mixTrdAmt). Provided only when mixTrdNo exists.
Parameter
Type
Description
Example
payAmt
N(12)
Actual payment amount excluding combined payment amount (payAmt = trdAmt - mixTrdAmt). Provided only when mixTrdNo exists.
1000
└cnclTypeN(2)Numeric, up to 2 bytesCancellation type00
Cancellation type
00: Full cancellation 10: Partial cancellation
Parameter
Type
Description
Example
cnclType
N(2)
Cancellation type
00: Full cancellation / 10: Partial cancellation
00
└mchtParamAHN(4000)Alphanumeric + Korean, up to 4000 bytesAdditional merchant information field. The value passed in the request is returned as-is.name=HongGilDong&age=25
Additional merchant information field. The value passed in the request is returned as-is.
Parameter
Type
Description
Example
mchtParam
AHN(4000)
Additional merchant information field. The value passed in the request is returned as-is.
name=HongGilDong&age=25
└pktHashAN(64)Alphanumeric, up to 64 bytes*Request signature (SHA-256) used to verify that this webhook was sent by Hecto Financial. Always verify this value before processing the webhook.a2d6d597d55d7c9b689baa2e08c1ddf0ce71f4248c5b9b59fe61bfbf949543e1
Request signature (SHA-256) used to verify that this webhook was sent by Hecto Financial. Always verify this value before processing the webhook.
Parameter
Type
Description
Example
pktHashRequired
AN(64)
Request signature (SHA-256) used to verify that this webhook was sent by Hecto Financial. Always verify this value before processing the webhook.
a2d6d597d55d7c9b689baa2e08c1ddf0ce71f4248c5b9b59fe61bfbf949543e1
NOTE

Hash Generation Combination

outStatCd + transaction date (first 8 digits of trdDtm) + transaction time (last 6 digits of trdDtm) + mchtId + mchtTrdNo + trdAmt (plaintext) + hashKey
└vatN(12)Numeric, up to 12 bytesVAT amount91
VAT amount
*For offline PG only; availability varies by VAN provider.
Parameter
Type
Description
Example
vat
N(12)
VAT amount
* For offline PG only; availability varies by VAN provider.
91
└taxAmtN(12)Numeric, up to 12 bytesTaxable amount909
Taxable amount
*For offline PG only; availability varies by VAN provider.
Parameter
Type
Description
Example
taxAmt
N(12)
Taxable amount
* For offline PG only; availability varies by VAN provider.
909
└taxFreeAmtN(12)Numeric, up to 12 bytesTax-free amount0
Tax-free amount
*For offline PG only; availability varies by VAN provider.
Parameter
Type
Description
Example
taxFreeAmt
N(12)
Tax-free amount
* For offline PG only; availability varies by VAN provider.
0
└acqrCdAN(4)Alphanumeric, up to 4 bytesAcquirer codeNICE
Acquirer code
*For offline PG only; availability varies by VAN provider.
Parameter
Type
Description
Example
acqrCd
AN(4)
Acquirer code
* For offline PG only; availability varies by VAN provider.
NICE
└bizRegNoAN(10)Alphanumeric, up to 10 bytesMerchant business registration number1234567890
Merchant business registration number
*For offline PG only; availability varies by VAN provider.
Parameter
Type
Description
Example
bizRegNo
AN(10)
Merchant business registration number
* For offline PG only; availability varies by VAN provider.
1234567890
└joinNoAN(30)Alphanumeric, up to 30 bytesMerchant number123456789
Merchant number
*For offline PG only; availability varies by VAN provider.
Parameter
Type
Description
Example
joinNo
AN(30)
Merchant number
* For offline PG only; availability varies by VAN provider.
123456789

Webhook Response (Merchant → Hecto Financial)

Your server sends a response to Hecto Financial.

ResponseDescription
OKSuccess (uppercase). Processed as webhook received.
FAILRecognized as an explicit failure (uppercase). The webhook is resent.
OthersRecognized as an abnormal failure; resent up to the configured number of times per merchant. Sending stops after exceeding the resend deadline.

Response format note

The response must be plain text 'OK' only. If spaces or other characters are included, it will be considered a failure and resending will occur.

Hash Verification

Hash verification required

To check for data tampering, you must verify the hash data received via notiUrl. Only provide the service when the hash matches.
// Node.js hash verification example
const crypto = require('crypto');

function verifyHash(data, hashKey) {
    const { outStatCd, trdDtm, mchtId, mchtTrdNo, trdAmt, pktHash } = data;
    const trdDt = trdDtm.substring(0, 8);  // YYYYMMDD
    const trdTm = trdDtm.substring(8, 14); // HHmmss

    const hashString = outStatCd + trdDt + trdTm + mchtId + mchtTrdNo + trdAmt + hashKey;
    const calculatedHash = crypto.createHash('sha256').update(hashString, 'utf8').digest('hex');

    return pktHash === calculatedHash;
}

Webhook Example

Approval Webhook (Hecto Financial → Merchant)

POST /your-noti-url HTTP/1.1
Content-Type: application/x-www-form-urlencoded; charset=UTF-8

outStatCd=0021
&trdNo=STFP_PGCAnxca_jt_il0211231100000M1234567
&method=CA
&bizType=B0
&mchtId=nxca_jt_il
&mchtTrdNo=ORDER20211231100000
&mchtCustNm=HongGilDong
&mchtName=HectoFinancial
&pmtprdNm=Test Product
&trdDtm=20211231100000
&trdAmt=50000
&cardCd=HDC
&cardNm=HyundaiCard
&cardNo=123456******7890
&cardApprNo=30001234
&instmtMon=00
&instmtType=N
&email=test@example.com
&mchtCustId=customer123
&mchtParam=
&pktHash=a2d6d597d55d7c9b689baa2e08c1ddf0ce71f4248c5b9b59fe61bfbf949543e1

Response (Merchant → Hecto Financial)

OK

After Receiving the Webhook

  1. Verify pktHash to confirm the webhook is from Hecto Financial.
  2. Check outStatCd: 0021 = payment successful; 0031 = payment failed.
  3. Match mchtTrdNo to your stored order and update the order status.
  4. Always return the plain text OK response — even for failed payments — to stop retry attempts.
💬

Need technical support?

Code Samples

HectoFinancial GitHub