korean-payment-integration

korean-payment-integration is a skill for Claude Code, Codex from humanerd-drew/opencode-drewgent. It costs 70 tokens per session (905 once invoked), scanned A, original, MIT.

A setup guide for adding Korean online payments to a Cloudflare Workers web app using PortOne and payment providers such as KG Inicis, Kakao Pay, and Toss Payments.

In plain words
What is it for?
It helps configure payment channels, request payments, verify transactions on the backend, track purchases, support mobile redirects, and store payment data in Cloudflare D1.
Why use it?
It connects the browser payment request with server-side verification and a database record, reducing the risk of treating an unverified payment as complete.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps configure payment channels, request payments, verify transactions on the backend, track purchases, support mobile redirects, and store payment data in Cloudflare D1.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/humanerd-drew/opencode-drewgent/korean-payment-integration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add humanerd-drew/opencode-drewgent --skill korean-payment-integration
Clone the repo
git clone --depth 1 https://github.com/humanerd-drew/opencode-drewgent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for korean-payment-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/korean-payment-integration.svg)](https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/korean-payment-integration)
Your own site
<a href="https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/korean-payment-integration"><img src="https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/korean-payment-integration.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 905 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.00905
Opus 5 $0.00035 $0.00452
Sonnet 5 $0.00014 $0.00181
Haiku 4.5 $0.00007 $0.00090

Measured 3d ago against content hash d28dbe3fe4e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

korean-payment-integration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/korean-payment-integration/SKILL.md · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Korean Payment Gateway Integration (PortOne V2 + D1)

When to Use

Integrating PortOne (포트원) V2 SDK with KG이니시스, 카카오페이, or other Korean PGs into a Cloudflare Workers SPA.

Architecture

Frontend (PortOne SDK)  →  Backend (CF Worker)  →  D1 Database
     │                          │
     ├─ requestPayment()        ├─ POST /api/payment/verify
     │  with storeId +          │   (verify + save)
     │  channelKey + customer   │
     │                          ├─ GET /api/payment/check
     └─ fingerprint-based       │   (purchase lookup)
        localStorage cache      └─ PortOne API verify

PortOne V2 SDK Setup

CDN Script (in index.html)

<script src="https://cdn.portone.io/v2/browser-sdk.js"></script>

Configuration

const PORTONE_CONFIG = {
    storeId: 'store-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
    channelKeys: {
        naverpay: 'channel-key-...',   // KG이니시스
        kakaopay: 'channel-key-...',   // 카카오페이
        card: 'channel-key-...',       // 한국결제네트웍스
    },
};

requestPayment Parameters

const response = await window.PortOne.requestPayment({
    storeId, channelKey, paymentId, orderName,
    totalAmount: 10000,          // integer, KRW won
    currency: 'KRW',
    payMethod: 'EASY_PAY',       // or 'CARD'
    easyPay: { easyPayProvider: 'NAVERPAY' },
    customer: { email, fullName, phoneNumber },
    redirectUrl: window.location.href,    // mobile redirect
});

PayMethod Mapping

Method payMethod easyPayProvider
네이버페이 EASY_PAY NAVERPAY
카카오페이 EASY_PAY KAKAOPAY
신용카드 CARD (none)

Per-Entity Purchase Tracking

For apps where purchase is tied to a specific entity (record, chart, document, etc.), NOT to the user account. Each unique entity requires its own purchase.

function getEntityFingerprint(entity) {
    // deterministic fingerprint from entity fields
    return `${entity.id}_${entity.type}_${entity.hash}`.replace(/\s+/g, '');
}

function getPurchaseKey(reportType, entity) {
    return `${reportType}_${getEntityFingerprint(entity)}`;
}

Read the full file on GitHub · 118 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 118 lines · 70 tokens per session scan A d28dbe3fe4e5

Subscribe to this mod's changes

korean-payment-integration is a skill published in the GitHub repository humanerd-drew/opencode-drewgent (2 stars, last pushed 1mo ago), licensed MIT. It adds 70 tokens to every session and 905 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

convex-billing

Add Stripe billing/payments to the Convex app via @convex-dev/stripe (checkout + webhook + gating).

openclaw/clawhub · 29 tokens

cloudbase-wechat-integration

A guide for connecting CloudBase applications to WeChat services, including payments, official accounts, and user identity.

TencentCloudBase/CloudBase-AI-Toolkit · 94 tokens

commerce-app-business-config

Manage custom business configuration in an Adobe Commerce app. Use when the user wants to add, modify, or remove merchant-configurable settings (config fields, admin config, store configuration) exposed through Commerce Admin. Creates typed config fields (text, password, email, url, tel, boolean, list) in…

adobe/skills · 80 tokens

baselinker-webhooks

Receive BaseLinker (Base.com) webhooks. Use when building a BaseLinker order or warehouse callback receiver, because BaseLinker is not a normal webhook source: deliveries arrive as HTTP HEAD requests with NO body, the entire payload is in the query string (observed params: orderid, state), there is NO signature…

hookdeck/webhook-skills · 131 tokens

tiktok-shop-webhooks

Receive and verify TikTok Shop webhooks. Use when setting up TikTok Shop webhook handlers, debugging Authorization-header signature verification, or handling events like ORDERSTATUSCHANGE, PACKAGEUPDATE, RECIPIENTADDRESSUPDATE, PRODUCTSTATUSCHANGE, or SELLERDEAUTHORIZATION.

hookdeck/webhook-skills · 59 tokens

gplay-purchase-verification

Server-side purchase verification for in-app products and subscriptions using Google Play Developer API. Use when implementing receipt validation in your backend.

hanamizuki/solopreneur · 32 tokens