humanerd-drew/opencode-drewgent/payment-gateway-integration
Claude Code and agent skill by humanerd-drew/opencode-drewgent
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
PortOne V2 SDK (KG이니시스) 결제 연동 패턴 — SDK 통합, 다중 채널, per-myeongsik 결제 트래킹, D1 저장, 모바일 대응
Install
npx vskill@latest install humanerd-drew/opencode-drewgent/payment-gateway-integrationSKILL.md
The same SKILL.md was published earlier as humanerd-drew/opencode-drewgent/payment-gateway-integration.
Payment Gateway Integration (Korean PG)
PortOne V2 SDK (KG이니시스) 결제 연동 패턴 및 함정.
PortOne V2 SDK Integration
SDK 로드
SDK 로드 시 window.PortOne에 객체가 주입됨 (PortOne.requestPayment()).
결제 요청 파라미터
PayMethod / EasyPayProvider
| PayMethod | EasyPayProvider (간편결제시) | |
|---|---|---|
CARD | - | |
EASY_PAY | NAVERPAY, KAKAOPAY, TOSSPAY |
다중 채널 관리
Per-Myeongsik (명식 단위) 결제
계정 단위가 아닌 생년월일시+성별+지역+이름 fingerprint 기준 결제 트래킹.
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 후에 가능
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/payment/payment-gateway-integration/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/humanerd-drew/opencode-drewgent/payment-gateway-integration)