Integration Overview

In a live service, backend result verification is required in addition to the frontend payment call.


Integration Architecture

Customer
Frontend
Backend
Hecto Financial
11. Payment Request
22. Order Number Generation Request
33. Return Order Number + Hash Value
44. Launch Checkout
55. Display Checkout
66. Enter Payment Information
77. Webhook (notiUrl)
88. OK Response
99. Payment Complete (nextUrl)

Step 1: Backend — Order Creation

Before making a payment request, the backend generates an order number, encrypts the transaction amount (AES-256), and generates a request signature hash (SHA-256).

NOTE

Encryption and Hash Generation Rules

For AES-256 encryption rules, SHA-256 hash generation order, and required parameters by payment method, refer to the Before You Begin documentation. Before You Begin — Encryption/Decryption and Request Signature (pktHash)

Step 2: Frontend — Launch Checkout

Use the values received from the backend to launch the checkout page. You can use either the SDK or HTML Form Submit method.

For the SDK URL and usage, refer to the Checkout Integration documentation.

Frontend-Backend Role Division

PartyResponsibility
BackendOrder number generation (mchtTrdNo), amount encryption (trdAmt), hash generation (pktHash)
FrontendLaunch the checkout page, select UI display method (popup/iframe/self/blank)
Shared ConfigurationPayment method selection (method), environment configuration (env), result reception URLs (notiUrl, nextUrl, cancUrl)
NOTE

Detailed Parameters by Payment Method

Each payment method (credit card, bank transfer, virtual account, etc.) has additional required parameters. Refer to the documentation for each payment method for detailed parameters. Checkout Integration — Parameters by Payment Method

Step 3: Backend — Webhook Processing

Hecto Financial sends the payment result via POST to your server's notiUrl. Actual order processing must always be performed in notiUrl.

NOTE

Detailed Guide

For detailed webhook integration content, received data, hash verification, idempotency handling, etc., refer to the webhooks integration documentation. Webhooks (notiUrl) Integration Guide

Integration Checklist

StepCheck Item
BackendIs the order number generated uniquely on a daily basis?
BackendIs pktHash generated in the correct order?
BackendIs the amount encrypted with AES-256-ECB?
FrontendIs the SDK script loaded for the correct environment?
FrontendAre all required parameters passed?
notiUrlIs hash verification performed?
notiUrlIs amount verification performed?
notiUrlIs duplicate payment handling in place?
notiUrlIs OK or FAIL returned as Plain Text?

Next Steps

💬

Need technical support?