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.
npx skills add humanerd-drew/opencode-drewgent --skill payment-gateway-integrationgit clone --depth 1 https://github.com/humanerd-drew/opencode-drewgentWrote 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.
[](https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/payment-gateway-integration)<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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00051 | $0.00849 |
| Opus 5.5 | $0.00020 | $0.00340 |
| Sonnet 5.5 | $0.00010 | $0.00170 |
| Haiku 4.5 | $0.00005 | $0.00085 |
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 3mo 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.
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
- 테스트 채널은
테스트 연동 관리탭에서 생성, 실 채널 테스트 불가 - 모바일 footer
display:none— 중요 정보는 본문에도 배치 - D1 마이그레이션: 기존 테이블 있으면 실패 →
.wrangler/state/v3/d1리셋 후 재시도 - 익명 사용자 구매:
anonymousId로 추적 (서버 user_id 대체) Store.state.user접근은 Store 모듈 import 후에 가능
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.
- 3mo ago First seen · 80 lines · 51 tokens per session scan A b8066f1f7a0f
payment-gateway-integration is a skill published in the GitHub repository humanerd-drew/opencode-drewgent (3 stars, last pushed 4mo ago), licensed MIT. It adds 51 tokens to every session and 849 once invoked, about $0.0002 per session on Opus 5.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.
payment-gateway-integration compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| payment-gateway-integrationhumanerd-drew/opencode-drewgent | Skill | 3 | 4mo ago | MIT | A | 51 | Claude Code, Codex |
| payment-processingparacetamol951/P-Link-MCP | Skill | 2 | 8mo ago | Apache-2.0 | A | 60 | Claude Code, Codex |
| payram-widget-integrationPayRam/payram-mcp | Skill | 158 | 9d ago | none | A | 193 | Claude Code, Codex |
| payram-checkout-integrationPayRam/payram-mcp | Skill | 158 | 9d ago | none | A | 75 | Claude Code, Codex |
| payram-payment-integrationPayRam/payram-mcp | Skill | 158 | 9d ago | none | A | 100 | Claude Code, Codex |
| oen-paymentOEN-Tech/oen-payment-skill | Skill | 9 | 2mo ago | MIT | A | 280 | Claude Code, Codex |
| pop-pay100xPercent/pop-pay | Skill | 1 | 5mo ago | MIT | A | 41 | Claude Code, Codex |