Token导航 LogoToken导航TokenDH.com
待分类敏感数据github未标认证来源可访问许可证需确认审计提醒

payment-module-development支付模块开发

Agent Skill

payment-module-development 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

259

周安装

11

GitHub Stars

公开资料未说明

下载量

91
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:payment-module-development(支付模块开发)
来源仓库:https://github.com/qloapps/agent-skills
仓库路径:skills/payment-module-development
安装命令:
npx skills add https://github.com/qloapps/agent-skills --skill payment-module-development
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/qloapps/agent-skills --skill payment-module-development

简介

payment-module-development 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理时使用。

  • 适用于待分类的协作流程管理,可结合项目实际维护状态使用。
  • 通过 npx skills add 命令从 GitHub 安装,需确认权限范围和维护状态。
  • 安装前建议检查是否会触发联网、命令执行或文件读写等操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

QloApps Payment Module Development

Create payment gateway modules that extend PaymentModule using hooks-first architecture.

Quick Commands

# Payment module structure
modules/qlopaymentname/
├── qlopaymentname.php           # Main PaymentModule class
├── controllers/front/
│   ├── payment.php              # Payment confirmation page
│   ├── validation.php           # Order processing (offline)
│   ├── callback.php             # Payment callback (online)
│   └── webhook.php              # Payment webhook (online)
├── classes/                     # Helper/Service classes
├── views/templates/
│   ├── front/payment.tpl        # Payment option display
│   └── hook/payment_return.tpl  # Success/failure message
└── LICENSE.md

Common operations:


When to Use This Skill

Applies to:

  • Creating payment gateway integration
  • Adding payment method to QloApps
  • Integrating third-party payment processors
  • Building custom payment solutions

When NOT to Use

  • Feature modules → module-development skill
  • Statistics modules → stats-module-development skill

Payment Module Types

TypeExampleControllersAPIOrder State
OfflineBankwire, Chequepayment, validationNoAwaiting Payment
OnlinePayPal, Credit Card Gatewayspayment, callback, webhookYesPayment Accepted

Payment type constants (from OrderPayment):

  • PAYMENT_TYPE_ONLINE = 1 — Real-time processing (credit cards, PayPal)
  • PAYMENT_TYPE_PAY_AT_HOTEL = 2 — Payment on arrival (QloApps specific)
  • PAYMENT_TYPE_REMOTE_PAYMENT = 3 — Offline (bank transfer, cheque)

The PaymentModule base class also provides:

  • $validateOrderAmount — When true (default), validateOrder() checks that the paid amount matches the cart total

Skill Components

Reference guides for each area of payment module development:

  • module-structure.md — Folder structure, mandatory files, install/uninstall, currency/country restrictions, payment hooks
  • payment-patterns.md — PaymentModule class, offline pattern, online pattern, advance payment, pattern selection
  • integration-api.md — Configuration forms, API credentials, sandbox/production, webhooks, authentication
  • controllers-transactions.md — Payment/validation/callback/webhook controllers, validateOrder(), transactions, refunds, order states, security

Quick Reference

Offline Payment Checklist

  • Create main module class (extends PaymentModule)
  • Set payment_type = REMOTE_PAYMENT
  • Create payment.php controller (show confirmation page)
  • Create validation.php controller (create order)
  • Register payment hooks
  • Create payment.tpl template
  • Add configuration for payment details
  • Setup email template with instructions

Online Payment Checklist

  • Create main module class (extends PaymentModule)
  • Set payment_type = ONLINE
  • Create configuration form (API keys, test/live mode)
  • Create payment.php controller
  • Create callback.php controller (handle return)
  • Create webhook.php controller (handle notifications)
  • Create helper/service classes for API
  • Implement API authentication
  • Setup webhook URL
  • Handle payment success/failure
  • Implement refund capability
  • Create transaction logging

Security Checklist

  • Never store full credit card data
  • Use HTTPS for all payment pages
  • Validate secure_key before order creation
  • Verify webhook signatures
  • Use Configuration::get() for API keys
  • Sanitize all user inputs
  • Log payment transactions
  • Handle errors gracefully

Common Pitfalls

  1. Storing credit card data — Use tokenization; gateway handles card data, store only token.
  2. Missing webhook signature verification — Always verify webhook signatures from gateway.
  3. No test/live mode separation — Separate test and live API keys, mode switcher in config.
  4. Creating order before payment confirmation — Offline: use "Awaiting Payment" state. Online: create order only after success callback/webhook.
  5. Missing advance payment check — Always check $cart->is_advance_payment and use Cart::ADVANCE_PAYMENT for total calculation.

Reference Modules

ModuleTypeKey Concepts
modules/bankwire/OfflineSimple config, email instructions, basic pattern
modules/cheque/OfflineMinimal setup example
modules/qlopaypalcommerce/OnlineOAuth, webhooks, refunds, API integration

Core files:

  • classes/PaymentModule.php — Base payment module class
  • classes/order/Order.php — Order creation
  • classes/order/OrderPayment.php — Payment type constants

Troubleshooting

  1. Payment option not showing — Check: module active, hookPayment registered, currency enabled for module, configuration completed.
  2. Webhook not working — Check: webhook URL registered with gateway, signature verification passing, controller accessible (no 404), module logs.
  3. Order creation fails — Check: cart exists and not converted, secure_key matches, order state exists, all validateOrder() parameters provided.

Development Workflow

  1. Plan — Choose payment type (offline vs online), review gateway documentation, get test credentials
  2. Setup — Create folder structure, main module file, mandatory files, install/uninstall, configuration form
  3. Payment Flow — Create payment controller, validation/callback controller, implement validateOrder(), add templates
  4. Advanced (Online) — Integrate gateway API, setup webhook handling, add transaction logging, implement refunds
  5. Test — Test currencies, advance payment, success/failure flows, webhook notifications, refunds

Additional Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.15%
按下载量换算34

Claude

28.42%
按下载量换算26

Cursor

18.57%
按下载量换算17

Gemini CLI

9.31%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills