payment-gateway-integration by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill payment-gateway-integration与主流支付服务提供商(Stripe、PayPal、Square)构建安全的支付处理系统,处理交易、订阅、Webhook、PCI 合规性以及跨不同后端框架的错误场景。
最小工作示例:
# config.py
import os
class StripeConfig:
STRIPE_SECRET_KEY = os.getenv('STRIPE_SECRET_KEY')
STRIPE_PUBLISHABLE_KEY = os.getenv('STRIPE_PUBLISHABLE_KEY')
STRIPE_WEBHOOK_SECRET = os.getenv('STRIPE_WEBHOOK_SECRET')
# stripe_service.py
import stripe
from datetime import datetime, timedelta
import logging
logger = logging.getLogger(__name__)
stripe.api_key = os.getenv('STRIPE_SECRET_KEY')
class StripePaymentService:
@staticmethod
def create_payment_intent(amount, currency='usd', description=None, metadata=None):
"""创建支付意向"""
try:
intent = stripe.PaymentIntent.create(
amount=int(amount * 100), # 转换为美分
currency=currency,
// ... (完整实现请参阅参考指南)
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
references/ 目录下的详细实现:
| 指南 | 内容 |
|---|---|
| Stripe 与 Python/Flask 集成 | Stripe 与 Python/Flask 集成 |
| Node.js/Express Stripe 集成 | Node.js/Express Stripe 集成 |
| PayPal 集成 | PayPal 集成 |
| 订阅管理 | 订阅管理 |
每周安装量
140
代码仓库
GitHub 星标数
121
首次出现
2026年1月21日
安全审计
安装于
opencode122
gemini-cli119
codex115
cursor111
claude-code106
github-copilot98
Build secure payment processing systems with major payment providers (Stripe, PayPal, Square), handling transactions, subscriptions, webhooks, PCI compliance, and error scenarios across different backend frameworks.
Minimal working example:
# config.py
import os
class StripeConfig:
STRIPE_SECRET_KEY = os.getenv('STRIPE_SECRET_KEY')
STRIPE_PUBLISHABLE_KEY = os.getenv('STRIPE_PUBLISHABLE_KEY')
STRIPE_WEBHOOK_SECRET = os.getenv('STRIPE_WEBHOOK_SECRET')
# stripe_service.py
import stripe
from datetime import datetime, timedelta
import logging
logger = logging.getLogger(__name__)
stripe.api_key = os.getenv('STRIPE_SECRET_KEY')
class StripePaymentService:
@staticmethod
def create_payment_intent(amount, currency='usd', description=None, metadata=None):
"""Create a payment intent"""
try:
intent = stripe.PaymentIntent.create(
amount=int(amount * 100), # Convert to cents
currency=currency,
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Stripe Integration with Python/Flask | Stripe Integration with Python/Flask |
| Node.js/Express Stripe Integration | Node.js/Express Stripe Integration |
| PayPal Integration | PayPal Integration |
| Subscription Management | Subscription Management |
Weekly Installs
140
Repository
GitHub Stars
121
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode122
gemini-cli119
codex115
cursor111
claude-code106
github-copilot98
lark-cli 共享规则:飞书资源操作指南与权限配置详解
27,500 周安装
Claude测试模式:基于代理的实时集成测试与YAML规范方法
158 周安装
Claude AI金融分析师技能 - 智能财务分析与投资决策助手 | 开源AI工具
158 周安装
投资银行推介演示文稿模板填充指南:金融PPT制作与格式化标准
159 周安装
Tailwind UI 模式与组件库 | Tailwind v4 配置、按钮、卡片、表单组件代码示例
159 周安装
Git代码审查技能:自动化审查未提交更改,提升代码质量与安全性
159 周安装
codeagent-wrapper:多AI后端代码生成与分析工具,支持Codex、Claude、Gemini
159 周安装