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.svg" alt="Measured on agentmods" 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 | $0.00026 | $0.00425 |
| Sonnet 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 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.
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.
- 3d 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 (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.
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.
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-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-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…
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.
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.