헥토파이낸셜 개발자센터
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 OverviewWebhooksGo 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 Token
Bank Transfer CheckoutBank Transfer WebhookBank Transfer Deferred Capture
Virtual Account CheckoutVirtual Account Deposit WebhookIssue Virtual AccountFixed/Unlimited Virtual AccountDeposit LookupSimulate Deposit
010 Virtual Account Overview010 Virtual Account CheckoutPhone Ownership Verification — RequestPhone Ownership Verification — ConfirmDuplicate Amount CheckIssue 010 Virtual Account010 Virtual Account Deposit WebhookSimulate 010 Deposit
Mobile Payment CheckoutMobile Payment WebhookMobile Payment — Two-Step CaptureMobile Recurring Payment
Gift Card CheckoutGift Card Webhook
T-money CheckoutT-money Webhook
Point Damoa CheckoutPoint Damoa WebhookPoint Damoa Deferred Capture
Digital Wallets OverviewPAYCO CheckoutPAYCO Deferred CapturePAYCO SandboxSamsung Pay CheckoutKakaoPay CheckoutNaverPay CheckoutTossPay CheckoutDigital Wallet WebhookWallet Recurring PaymentCancel Subscription
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
Transfers & Withdrawals
Create Recurring TokenCharge via Recurring TokenCancel SubscriptionSubscription Details
Account ListSupported BanksBank Maintenance CheckOwnership Verification Bank MaintenanceConnectivity Test
Before You BeginServers & NetworkOpen Banking Integration Flow
Register AccountRegister Open Banking AccountDeregister Open Banking Service
Transfers & Withdrawals
Account ListWithdrawal Limit
Decline Code ReferenceBank Code ReferenceBank Maintenance Schedule
White-Label Payments
Before You BeginServers & NetworkIntegration Overview
Payment CheckoutCapture Payment
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 OverviewWebhooksGo 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 Token
Bank Transfer CheckoutBank Transfer WebhookBank Transfer Deferred Capture
Virtual Account CheckoutVirtual Account Deposit WebhookIssue Virtual AccountFixed/Unlimited Virtual AccountDeposit LookupSimulate Deposit
010 Virtual Account Overview010 Virtual Account CheckoutPhone Ownership Verification — RequestPhone Ownership Verification — ConfirmDuplicate Amount CheckIssue 010 Virtual Account010 Virtual Account Deposit WebhookSimulate 010 Deposit
Mobile Payment CheckoutMobile Payment WebhookMobile Payment — Two-Step CaptureMobile Recurring Payment
Gift Card CheckoutGift Card Webhook
T-money CheckoutT-money Webhook
Point Damoa CheckoutPoint Damoa WebhookPoint Damoa Deferred Capture
Digital Wallets OverviewPAYCO CheckoutPAYCO Deferred CapturePAYCO SandboxSamsung Pay CheckoutKakaoPay CheckoutNaverPay CheckoutTossPay CheckoutDigital Wallet WebhookWallet Recurring PaymentCancel Subscription
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
Transfers & Withdrawals
Create Recurring TokenCharge via Recurring TokenCancel SubscriptionSubscription Details
Account ListSupported BanksBank Maintenance CheckOwnership Verification Bank MaintenanceConnectivity Test
Before You BeginServers & NetworkOpen Banking Integration Flow
Register AccountRegister Open Banking AccountDeregister Open Banking Service
Transfers & Withdrawals
Account ListWithdrawal Limit
Decline Code ReferenceBank Code ReferenceBank Maintenance Schedule
White-Label Payments
Before You BeginServers & NetworkIntegration Overview
Payment CheckoutCapture Payment
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

PAYCO Approval API (Deferred Capture)

A PAYCO digital wallet approval API that processes authentication and capture separately. When authentication completes on the PAYCO checkout (outStatCd = 0061), your server calls this API to request approval.

Test Key Information

Encryption Key: pgSettle30y739r82jtd709yOfZ2yK5K
Hash Key: ST1009281328226982205
* Production credentials are provided by Hecto Financial upon contract completion.

Important Notes

Deferred Capture Method

You must use the merchant order number (mchtTrdNo) created during the authentication request, and authTrdNo must be the transaction number (trdNo) received upon successful authentication.
  • Use this API only when the checkout was called with a deferred capture merchant ID (test: nx_mid_hd).
  • If the checkout returns outStatCd = 0061 (authentication success), the payment is not complete yet. Request approval with this API to complete the payment.
  • This is a Non-UI API called from your server, without the standard checkout.

Payment Flow

  1. Call the PAYCO checkout (deferred capture merchant ID)
  2. Customer completes authentication → outStatCd = 0061 and trdNo are delivered to nextUrl
  3. Your server calls the PAYCO Approval API (authTrdNo = trdNo from step 2)
  4. The payment is complete when the approval result is outStatCd = 0021

API Information

POST/spay/APITrdPayco.do
Content-Typeapplication/json
Sandboxhttps://tbgw.settlebank.co.kr/spay/APITrdPayco.do
Productionhttps://gw.settlebank.co.kr/spay/APITrdPayco.do

Request Parameters

Type Notation
NNumericAAlphabeticHKoreanANAlphanumericAHNAlphanumeric + Korean
e.g. AN(10) = alphanumeric, up to 10 bytes

params Object

└mchtIdAN(12)Alphanumeric, up to 12 bytes*Unique merchant ID issued by Hecto Financial
Unique merchant ID issued by Hecto Financial
Parameter
Type
Description
Example
mchtIdRequired
AN(12)
Unique merchant ID issued by Hecto Financial
nx_mid_hd
└verAN(4)Alphanumeric, up to 4 bytes*Message version
Message version
*Fixed value
Parameter
Type
Description
Example
verRequired
AN(4)
Message version
* Fixed value
0A19
└methodA(2)Alphabetic, up to 2 bytes*Payment method
Payment method
*Fixed value
Parameter
Type
Description
Example
methodRequired
A(2)
Payment method
* Fixed value
PZ
└bizTypeAN(2)Alphanumeric, up to 2 bytes*Business type code
Business type code
*Fixed value (for approval)
Parameter
Type
Description
Example
bizTypeRequired
AN(2)
Business type code
* Fixed value (for approval)
B2
└encCdN(2)Numeric, up to 2 bytes*Encryption type code
Encryption type code
*Fixed value
Parameter
Type
Description
Example
encCdRequired
N(2)
Encryption type code
* Fixed value
23
└mchtTrdNoAN(100)Alphanumeric, up to 100 bytes*Merchant order number (must be the one created for the authentication request)
Merchant order number (must be the one created for the authentication request)
Parameter
Type
Description
Example
mchtTrdNoRequired
AN(100)
Merchant order number (must be the one created for the authentication request)
ORDER20230323100000
└trdDtN(8)Numeric, up to 8 bytes*Request date (YYYYMMDD)
Request date (YYYYMMDD)
Parameter
Type
Description
Example
trdDtRequired
N(8)
Request date (YYYYMMDD)
20230323
└trdTmN(6)Numeric, up to 6 bytes*Request time (HHMMSS)
Request time (HHMMSS)
Parameter
Type
Description
Example
trdTmRequired
N(6)
Request time (HHMMSS)
100000
└mobileYnA(1)Alphabetic, up to 1 bytesMobile flag
Mobile flag
Y: Mobile web/app N: PC or other
Parameter
Type
Description
Example
mobileYn
A(1)
Mobile flag
Y: Mobile web/app / N: PC or other
N
└osTypeA(1)Alphabetic, up to 1 bytesOS type
OS type
A: Android I: IOS W: Windows M: Mac E: Other Blank: Unknown
Parameter
Type
Description
Example
osType
A(1)
OS type
A: Android / I: IOS / W: Windows / M: Mac / E: Other / Blank: Unknown
W

data Object

└pktHashAN(200)Alphanumeric, up to 200 bytes*SHA-256Hash value generated using SHA256(auto-generated)
Hash value generated using SHA256
Parameter
Type
Description
Example
pktHashRequired
AN(200)
SHA-256
Hash value generated using SHA256
-
NOTE

Hash combination

trdDt + trdTm + mchtId + mchtTrdNo + trdAmt (plaintext) + hashKey
└authTrdNoAN(40)Alphanumeric, up to 40 bytes*Authentication transaction number (trdNo received on successful authentication)
Authentication transaction number (trdNo received on successful authentication)
Parameter
Type
Description
Example
authTrdNoRequired
AN(40)
Authentication transaction number (trdNo received on successful authentication)
STFP_PGPZnx_mid_hd0230315153232M1196602
└trdAmtN(12)Numeric, up to 12 bytes*AES-256AES-256/ECB/PKCS5Padding + Base64Transaction amount
Transaction amount
Parameter
Type
Description
Example
trdAmtRequired
N(12)
AES-256
Transaction amount
1000

Response Parameters

Type Notation
NNumericAAlphabeticHKoreanANAlphanumericAHNAlphanumeric + Korean
e.g. AN(10) = alphanumeric, up to 10 bytes

params Object

└mchtIdAN(12)Alphanumeric, up to 12 bytes*Unique merchant ID issued by Hecto Financialnx_mid_hd
Unique merchant ID issued by Hecto Financial
Parameter
Type
Description
Example
mchtIdRequired
AN(12)
Unique merchant ID issued by Hecto Financial
nx_mid_hd
└verAN(4)Alphanumeric, up to 4 bytesMessage version0A19
Message version
*Fixed value
Parameter
Type
Description
Example
ver
AN(4)
Message version
* Fixed value
0A19
└methodA(2)Alphabetic, up to 2 bytesPayment methodPZ
Payment method
*Fixed value
Parameter
Type
Description
Example
method
A(2)
Payment method
* Fixed value
PZ
└bizTypeAN(2)Alphanumeric, up to 2 bytesBusiness type codeB2
Business type code
*Fixed value
Parameter
Type
Description
Example
bizType
AN(2)
Business type code
* Fixed value
B2
└encCdN(2)Numeric, up to 2 bytes*Encryption type code23
Encryption type code
*Fixed value
Parameter
Type
Description
Example
encCdRequired
N(2)
Encryption type code
* Fixed value
23
└mchtTrdNoAN(100)Alphanumeric, up to 100 bytes*Merchant order numberORDER20230323100000
Merchant order number
Parameter
Type
Description
Example
mchtTrdNoRequired
AN(100)
Merchant order number
ORDER20230323100000
└trdNoAN(40)Alphanumeric, up to 40 bytes*Unique transaction number issued by Hecto FinancialSTFP_PGPZnx_mid_hd0230315153232M1196602
Unique transaction number issued by Hecto Financial
Parameter
Type
Description
Example
trdNoRequired
AN(40)
Unique transaction number issued by Hecto Financial
STFP_PGPZnx_mid_hd0230315153232M1196602
└trdDtN(8)Numeric, up to 8 bytes*Request date (YYYYMMDD)20230323
Request date (YYYYMMDD)
Parameter
Type
Description
Example
trdDtRequired
N(8)
Request date (YYYYMMDD)
20230323
└trdTmN(6)Numeric, up to 6 bytes*Request time (HHMMSS)100000
Request time (HHMMSS)
Parameter
Type
Description
Example
trdTmRequired
N(6)
Request time (HHMMSS)
100000
└outStatCdAN(4)Alphanumeric, up to 4 bytes*Transaction status code0021
Transaction status code
0021: Success 0031: Failure
Parameter
Type
Description
Example
outStatCdRequired
AN(4)
Transaction status code
0021: Success / 0031: Failure
0021
└outRsltCdAN(4)Alphanumeric, up to 4 bytes*Result code. Detailed code returned when the status is '0031'0000
Result code. Detailed code returned when the status is '0031'
*See the rejection code table
Parameter
Type
Description
Example
outRsltCdRequired
AN(4)
Result code. Detailed code returned when the status is '0031'
* See the rejection code table
0000
└outRsltMsgAHN(200)Alphanumeric + Korean, up to 200 bytes*Result message (URL encoded, UTF-8)Processed successfully.
Result message (URL encoded, UTF-8)
Parameter
Type
Description
Example
outRsltMsgRequired
AHN(200)
Result message (URL encoded, UTF-8)
Processed successfully.

data Object

└pktHashAN(64)Alphanumeric, up to 64 bytes*Returns the hash value sent in the request
Returns the hash value sent in the request
Parameter
Type
Description
Example
pktHashRequired
AN(64)
Returns the hash value sent in the request
-
└authTrdNoAN(40)Alphanumeric, up to 40 bytesAuthentication transaction number (trdNo received on successful authentication)STFP_PGPZnx_mid_hd0230315153232M1196602
Authentication transaction number (trdNo received on successful authentication)
Parameter
Type
Description
Example
authTrdNo
AN(40)
Authentication transaction number (trdNo received on successful authentication)
STFP_PGPZnx_mid_hd0230315153232M1196602
└trdAmtN(12)Numeric, up to 12 bytes*AES-256AES-256/ECB/PKCS5PaddingTransaction amount1000
Transaction amount
*Certain response fields are AES-256 encrypted. Decrypt them before use.
Parameter
Type
Description
Example
trdAmtRequired
N(12)
AES-256
Transaction amount
* Certain response fields are AES-256 encrypted. Decrypt them before use.
1000

Webhook (Payment Result)

When approval completes, Hecto Financial sends a webhook to your server.

NOTE

Webhook reference

For PAYCO payment result webhook parameters and processing method, see the Webhook document.

Request Example

{
  "params": {
    "mchtId": "nx_mid_hd",
    "ver": "0A19",
    "method": "PZ",
    "bizType": "B2",
    "encCd": "23",
    "mchtTrdNo": "ORDER20230323100000",
    "trdDt": "20230323",
    "trdTm": "100000",
    "mobileYn": "N",
    "osType": "W"
  },
  "data": {
    "pktHash": "af8c82f79a5722fffcce52323dc1859844cafa577232b3ab94535b0f469077c9",
    "authTrdNo": "STFP_PGPZnx_mid_hd0230315153232M1196602",
    "trdAmt": "AES_ENCRYPTED_AMOUNT"
  }
}

Response Example

Success Response

{
  "params": {
    "mchtId": "nx_mid_hd",
    "ver": "0A19",
    "method": "PZ",
    "bizType": "B2",
    "encCd": "23",
    "mchtTrdNo": "ORDER20230323100000",
    "trdNo": "STFP_PGPZnx_mid_hd0230315153232M1196602",
    "trdDt": "20230323",
    "trdTm": "100000",
    "outStatCd": "0021",
    "outRsltCd": "0000",
    "outRsltMsg": "Processed successfully."
  },
  "data": {
    "pktHash": "af8c82f79a5722fffcce52323dc1859844cafa577232b3ab94535b0f469077c9",
    "authTrdNo": "STFP_PGPZnx_mid_hd0230315153232M1196602",
    "trdAmt": "AES_ENCRYPTED_AMOUNT"
  }
}

Failure Response

{
  "params": {
    "mchtId": "nx_mid_hd",
    "ver": "0A19",
    "method": "PZ",
    "bizType": "B2",
    "encCd": "23",
    "mchtTrdNo": "ORDER20230323100000",
    "trdNo": "",
    "trdDt": "20230323",
    "trdTm": "100000",
    "outStatCd": "0031",
    "outRsltCd": "1901",
    "outRsltMsg": "Hash value mismatch"
  },
  "data": {
    "pktHash": "af8c82f79a5722fffcce52323dc1859844cafa577232b3ab94535b0f469077c9"
  }
}

For the full list of rejection codes, see PG Response Codes.

💬

Need technical support?

API Test