paygent-core

Official

Share secure Paygent API core across all gateways

AuthorWordPressBugBounty
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Paygent決済の各ゲートウェイ実装で毎回発生する共通処理(認証情報管理、送受信パラメータ組み立て、SJIS変換、ハッシュチェック、エラー処理、注文IDマッピング、Webhook受信、テスト/本番切替)を標準化して、実装の重複と事故を減らします。

Core Features & Use Cases

  • API共通コア: PaygentB2BModuleを用いた電文送受信、結果判定、共通レスポンス処理を一元化します(例: send_paygent_request 呼び出しに集約)。
  • 認証・ハッシュチェック: WordPress optionsから merchant_id/connect_id/connect_password を切替し、必要に応じて hc(SHA-256)を生成・付与します。
  • 注文IDマッピング & Webhook: trading_id の決定ロジックや _paygent_order_id 参照、Webhook受信エンドポイント(/wp-json/paygent/v1/check)向けの共通処理を提供します。
  • 技術要件の統制: Paygent通信の文字コード(Shift_JIS)変換方針とデバッグログ方針を前提化します。
  • 返金/取消の共通化: 全決済手段で共通となる返金・取消の2ステップ構成(情報照会→ステータス確認→取消/返金)に沿った処理枠組みを整理します。

Quick Start

Use the paygent-core skill to design and implement the shared Paygent request workflow (authentication, SJIS conversion, hash check, telegram_kind handling, trading_id mapping, and webhook authorization) for WooCommerce gateways like WC_Gateway_Paygent_Request.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: paygent-core
Download link: https://github.com/WordPressBugBounty/plugins-woocommerce-for-japan/archive/main.zip#paygent-core

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.