返回 Skill 列表
extension
分类: 开发与工程无需 API Key

integrating-payment-gateways

用于将支付提供商(如Stripe等)与Appwrite连接的模式。用于处理安全交易和更新预订状态。

person作者: jakexiaohubgithub

Payment Gateway Integration

When to use this skill

  • When implementating actual "checkout" flows.
  • When an order status needs to change from "pending" to "paid".

Architecture

  1. Client: Redirect user to payment provider (Stripe Checkout).
  2. Provider: Sends a Webhook back to your Appwrite Function or Route Handler upon success.
  3. Server: Verifies the webhook signature.
  4. Database: Updates the booking document in Appwrite.

Rules

  • Never Store CC Info: Use tokens/checkouts provided by the gateway.
  • Idempotency: Ensure that receiving the same webhook twice doesn't result in double bookings.

Instructions

  • Test Mode: Always use "Sandbox" or "Test" keys during development.
  • Logs: Keep detailed logs of webhook transactions for debugging.