360 Secure SkillHub
360 安全技能中心

Haresh Checkout Flow

面向电商结账场景,按购物车校验、身份验证、收货信息收集、支付处理、订单确认五步引导用户完成下单;通过本机 n8n webhook 与后端交互,声明了 JWT 身份校验、不记录完整支付信息等安全要求,并给出错误处理与重试说明。未包含商品目录、支付网关细节或工作流实现。

haresh-sai06
haresh-sai06
热度 55.07
最近更新 2026-05-18 12:12:42
分类:营销依赖:第三方 API应用场景:购物 / 工作流 / 财务

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add haresh-checkout-flow
Metadata
name
haresh-checkout-flow
description
Process e-commerce checkout via n8n webhook integration
user-invocable
true

Checkout Flow Skill

Purpose

Manages the complete checkout process including validation, authentication, shipping, and payment.

When to Use

  • User wants to checkout or place an order
  • User asks to proceed to payment
  • User wants to complete their purchase

Workflow

Step 1: Validate Cart

Call n8n webhook at http://localhost:5678/webhook/checkout-validate to check cart items availability and inventory status

Step 2: Check Authentication

Determine if user is authenticated from context. If guest, present login options or continue as guest.

Step 3: Collect Shipping Information

Show saved addresses for authenticated users or collect details for guests.

Step 4: Payment Processing

Present payment options and call n8n webhook at http://localhost:5678/webhook/checkout-process

Step 5: Order Confirmation

Display order summary and get final confirmation from user.

Security Requirements

  • Verify authentication status from JWT claims
  • Never store or log full payment details
  • Validate all inputs before sending to backend

Error Handling

  • If cart validation fails, show specific errors
  • If payment fails, allow retry with different method
  • If inventory changes, notify user