payment-gateway-integration

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

A guide for connecting a Korean payment gateway using the PortOne V2 SDK, including card and easy-payment methods and mobile redirects.

In plain words
What is it for?
Use it when adding KG Inicis payments to a web or mobile service, supporting Naver Pay, Kakao Pay, Toss Pay, or storing payment data in D1.
Why use it?
It helps avoid common mistakes when sending payment requests, selecting payment channels, and tracking payments for individual customer records.

Skill for Claude CodeCodex

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

Good fit Use it when adding KG Inicis payments to a web or mobile service, supporting Naver Pay, Kakao Pay, Toss Pay, or storing payment data in D1.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/humanerd-drew/opencode-drewgent/payment-gateway-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 payment-gateway-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 payment-gateway-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/payment-gateway-integration.svg)](https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/payment-gateway-integration)
Your own site
<a href="https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/payment-gateway-integration"><img src="https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/payment-gateway-integration.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 849 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.00051 $0.00849
Opus 5 $0.00026 $0.00425
Sonnet 5 $0.00010 $0.00170
Haiku 4.5 $0.00005 $0.00085

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

Security

Grade A, and why

payment-gateway-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/payment/payment-gateway-integration/SKILL.md · 80 lines

How it starts

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

Payment Gateway Integration (Korean PG)

PortOne V2 SDK (KG이니시스) 결제 연동 패턴 및 함정.

PortOne V2 SDK Integration

SDK 로드

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

SDK 로드 시 window.PortOne에 객체가 주입됨 (PortOne.requestPayment()).

결제 요청 파라미터

PortOne.requestPayment({
  storeId: 'store-...',
  channelKey: 'channel-key-...',
  paymentId: `ORDER-${Date.now()}-${random}`,
  orderName: '상품명',
  totalAmount: 3800,      // 정수 (KRW)
  currency: 'KRW',
  payMethod: 'CARD',       // 또는 'EASY_PAY'
  easyPay: { easyPayProvider: 'NAVERPAY' },
  customer: {
    email: '[email protected]',
    fullName: '홍길동',
    phoneNumber: '01012345678',
  },
  redirectUrl: window.location.href, // 모바일 리디렉션 대응
});

PayMethod / EasyPayProvider

PayMethod EasyPayProvider (간편결제시)
CARD -
EASY_PAY NAVERPAY, KAKAOPAY, TOSSPAY

다중 채널 관리

const CHANNEL_KEYS = {
  naverpay: 'channel-key-...',
  card: 'channel-key-...',
};
channelKey: CHANNEL_KEYS[method === 'card' ? 'card' : 'naverpay'],

Per-Myeongsik (명식 단위) 결제

계정 단위가 아닌 생년월일시+성별+지역+이름 fingerprint 기준 결제 트래킹.

getFingerprint(fv) => `${year}_${month}_${day}_${hour}_${min}_${gender}_${lunar}_${loc}_${name}`;
getPurchaseKey(type) => `${type}_${fingerprint}`;
getDatingKey(type, A, B) => `${type}_${fpA}_vs_${fpB}`;

Dual Storage

  • localStorage: __PURCHASED_REPORTS__에 fingerprint-keyed 객체 저장
  • D1: POST /api/payment/verify로 PortOne 검증 후 저장, GET /api/payment/check로 조회

KG이니시스 필수값

customer.email, customer.phoneNumber, customer.fullName — phone은 입력폼 제공 + localStorage 저장. 테스트 카드: 1234-1234-1234-1234 (12/25, pw 00).

모바일

  • 인증마크: footer에만 두면 모바일에서 미노출 (display: none) → 결제 페이지 본문에도 배치
  • redirectUrl 필수 (PortOne SDK가 URL 파라미터로 결과 전달)

Pitfalls

  1. 테스트 채널은 테스트 연동 관리 탭에서 생성, 실 채널 테스트 불가
  2. 모바일 footer display:none — 중요 정보는 본문에도 배치
  3. D1 마이그레이션: 기존 테이블 있으면 실패 → .wrangler/state/v3/d1 리셋 후 재시도
  4. 익명 사용자 구매: anonymousId로 추적 (서버 user_id 대체)
  5. Store.state.user 접근은 Store 모듈 import 후에 가능

Read the full file on GitHub · 80 lines

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 · 80 lines · 51 tokens per session scan A b8066f1f7a0f

Subscribe to this mod's changes

payment-gateway-integration is a skill published in the GitHub repository humanerd-drew/opencode-drewgent (2 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 849 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

payment-processing

P-Link is a payment infrastructure designed for humans, APIs, and AI agents. You can use P-Link when you need a payment page (in order to collect payments without any prerequisities, no account, no subscription) or when you want to send payments massively, or programatically.

paracetamol951/P-Link-MCP · 60 tokens

payram-checkout-integration

Integrate PayRam checkout flow into web applications. Generate payment links, embed payment pages, handle redirects, and process payment confirmations. Supports Express, Next.js, FastAPI, Laravel, Gin, Spring Boot. Use when adding crypto checkout to e-commerce, building payment forms, implementing deposit flows, or…

PayRam/payram-mcp · 75 tokens

payram-widget-integration

Integrate the PayRam Add Credit widget (payram-add-credit-v1.js) into a website or web app. Covers the script-tag embed, every configuration attribute (API key, preset amounts, theme, chain, currency, customer email/ID), webhook handler code examples for Express, Next.js API routes, FastAPI, Laravel, and Gin, webhook…

PayRam/payram-mcp · 185 tokens

payram-payment-integration

Integrate crypto payments into any web application with PayRam. Self-hosted payment gateway — no KYC, no signup, no third-party custody. Accept USDT, USDC, Bitcoin, ETH in under 10 minutes. Works with Express, Next.js, FastAPI, Laravel, Gin, Spring Boot. Drop-in replacement for Stripe/PayPal for crypto. Use when…

PayRam/payram-mcp · 100 tokens

pop-pay

Runtime security layer for AI agent commerce — card credentials inject directly into the browser DOM via CDP, never entering the agent's context window. No SaaS, no login, fully local.

100xPercent/pop-pay · 41 tokens

pop-pay

Your card stays on your PC — no SaaS, no login, no external account. Credentials inject directly, keeping them out of the AI's context window.

100xPercent/pop-pay-python · 35 tokens