Full Integration Flow

SecurePay Prepaid is a service that uses both a UI screen (member registration/management) and an API server (balance spend/top-up/inquiry).


Overall Flow

Customer
Merchant
Hecto Financial
11. Request service
22. Call member registration screen (GET /identity)
33. Display member registration screen
44. Identity verification and information entry
55. Return registration result (returnUrl)
66. Call balance spend/top-up/inquiry API
77. Return processing result
NOTE

One-Time Member Registration

Member registration (steps 2–5) is performed only once. After registration, you can immediately use balance spend, top-up, inquiry, and other features via the API.

Step 1: Member Registration Screen (UI)

The merchant calls the member registration screen provided by Hecto Financial.

ItemURL
Sandboxhttps://tb-mps.hectofinancial.co.kr/identity
Productionhttps://mps.hectofinancial.co.kr/identity
HTTP MethodGET

Required Parameters

ParameterDescription
mIdMerchant ID
mCustIdPrepaid member ID
ciEncCustomer CI (AES-256/ECB/PKCS5Padding, Base64 encoded)
returnUrlURL to redirect to after registration completes

Step 2: Balance Spend / Top-up / Inquiry API

After member registration, the merchant server calls the API directly.

ItemValue
Sandboxtb-mps-api.hectofinancial.co.kr
Productionmps-api.hectofinancial.co.kr
HTTP MethodPOST
Content-Typeapplication/json;charset=UTF-8

pktHash Generation Rules

API Common Signature GenerationpktHash

필드명파라미터
Prepaid member numbercustNo
Merchant IDmchtId
Merchant transaction reference numbermTrdNo
Transaction amount (plaintext)trdAmt
Hash keyhashKey
SHA256(custNo + mchtId + mTrdNo + trdAmt(plaintext) + hashKey)
NOTE

Void API Signature Composition

The Spend Void and Top-up Void APIs use orgTrdNo + orgTrdDt instead of trdAmt: custNo + mchtId + mTrdNo + orgTrdNo + orgTrdDt + hashKey

Key APIs

FeatureURI
Balance inquiry/v1/wallet/balance
Spend/v1/wallet/use
Spend void/v1/wallet/use/cancel
Top-up/v1/approval/charge
Top-up void/v1/approval/charge/cancel
Withdrawal/v1/money/withdrawal
Transaction history inquiry/v1/trade/list
💬

Need technical support?