Integration Preparation

This guide covers the prerequisites and essential information you need before starting your Prepaid (SecurePay Prepaid) integration.


Environment Keys

The Sandbox and Production environments are separate, each using a distinct Merchant ID.

EnvironmentMerchant IDPurpose
SandboxShared test Merchant IDDevelopment and testing
ProductionMerchant-specific Merchant IDLive service

Merchant Key Provisioning (Post-Contract)

After signing a contract with Hecto Financial, you will receive the following credentials for the Production environment.

ItemDescription
Merchant ID (mId)Unique merchant identifier
AES Encryption KeyKey for encrypting and decrypting personal and sensitive data (32 bytes)
SHA-256 Hash KeyKey for generating tamper-prevention hashes
NOTE

Key Provisioning

The shared Sandbox keys and your merchant-specific Production keys are delivered separately at the time of service onboarding.

Server Integration Environment

Server Addresses and Network Information

SecurePay Prepaid has two server types: a UI server and an API server.

UI (MNG)

Used for member registration and My Information pages.

EnvironmentDomainIP AddressProtocol
Sandboxtb-mps.hectofinancial.co.kr61.252.169.99HTTPS(TCP/443)
Productionmps.hectofinancial.co.kr14.34.14.47 (Main)
61.252.169.103 (DR)
HTTPS(TCP/443)

API

Used for API calls such as balance inquiry, spend, top-up, and withdrawal.

EnvironmentDomainIP AddressProtocol
Sandboxtb-mps-api.hectofinancial.co.kr61.252.169.100HTTPS(TCP/443)
Productionmps-api.hectofinancial.co.kr14.34.14.48 (Main)
61.252.169.104 (DR)
HTTPS(TCP/443)
NOTE

Dual IDC Configuration

• The Hecto Financial SecurePay Prepaid system is configured with a primary center (Main) and a disaster recovery center (DR). • In the event of a Main center failure, traffic automatically switches to DR. Allow both the Main and DR IPs in your Production firewall rules. • DNS Lookup connections are recommended — center failover is handled automatically.

TLS Version

TLS 1.2 or higher is strongly recommended. Support for TLS 1.1 and below may be discontinued without prior notice in accordance with security guidelines.

Development Environment Requirements

SecurePay Prepaid uses both UI integration and API integration.

TypeRole
FrontendUI page integration for member registration and My Information
Backend (required)API calls for balance inquiry, spend, top-up, and withdrawal
NOTE

Mixed UI + API Integration

• UI integration: Member registration and My Information pages use Hecto Financial-provided screens. • API integration: Prepaid balance spend, top-up, and withdrawal are called from the merchant backend.

API Integration Details

The SecurePay Prepaid API is a JSON-based REST API.

ItemValue
EncodingUTF-8
MethodPOST
Data Formatapplication/json; charset=UTF-8
ProtocolHTTPS (TLS 1.2 or higher)

Security and Encryption

SecurePay Prepaid uses AES encryption and SHA-256 hashing to protect personal data.

AES Encryption (Personal Data)

ItemValue
AlgorithmAES-256/ECB/PKCS5Padding
EncodingBase64 Encoding
Target FieldsCI value, transaction amount, customer name, mobile number, date of birth, PIN, etc.

Encryption Example:

ItemValue
Encryption KeySETTLEBANKISGOODSETTLEBANKISGOOD (32 bytes)
Plaintext1234567890abcdef
Encrypted ValueojTD5p0w4oi2UgEozPuKoZa98R6rydxUF4PH0EikbVo=

Do Not Encrypt Empty Strings

Encrypting a blank or empty string will result in an A-001 error.

SHA-256 Hash (Tamper Prevention)

ItemValue
AlgorithmSHA-256
EncodingHex Encoding
PurposeGenerating pktHash (tamper detection for request data)

Hash Generation Example:

ItemValue
Hash KeyST7777777777777777777
Plaintext20241024 + TEST + ST7777777777777777777
(reqDt + data + HashKey)
Hash Value2f3e6b50773293a4ca25957a27a85dfc7a5f4b245c526e2fee657ce64770c85b

Integration Methods

SecurePay Prepaid uses both UI integration and API integration together.

TypeDescriptionPurpose
UI IntegrationUses Hecto Financial-provided screensMember registration, My Information management
API IntegrationDirect API calls from the merchant serverBalance inquiry, spend, top-up, withdrawal
NOTE

Detailed Integration Process

For a detailed step-by-step flow from member registration to API usage, refer to the Full Integration Flow document.

Important Notes

Test Environment

  • Test Hours: Be aware that between 1:00 PM and 2:00 PM on business days, test server deployments may occur.
  • Test Keys: The Sandbox uses shared keys; the Production environment uses merchant-specific keys.

API Request Notes

  • Use the POST method (UI uses GET)
  • UTF-8 encoding is required
  • Content-Type: application/json; charset=UTF-8
  • Personal data fields must be AES-256 encrypted
  • The pktHash field must be generated using SHA-256

CI Value Encryption

  • The CI value must be AES-256 encrypted when calling the member registration or My Information page
  • The encrypted CI value must be URI-encoded
  • The CI value must match what was entered during identity verification

Response Handling

  • If the response code is not "success," response data may be absent.
  • Response fields may be added without prior notice as the service improves.

Integration Steps


Documentation by Feature

💬

Need technical support?