enable-banking-quick-start
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseEnable Banking Quick Start
Enable Banking 快速入门
Overview
概述
Use this skill when a developer needs the shortest path from no Enable Banking setup to a working sandbox AIS or PIS request flow. For deeper behavior, use , , , or .
enable-banking-apienable-banking-control-panelenable-banking-sandboxenable-banking-faq-best-practices当开发者需要从无到有快速搭建可运行的Enable Banking沙箱AIS或PIS请求流程时,可使用本技能。如需了解更深入的功能细节,请使用、、或技能。
enable-banking-apienable-banking-control-panelenable-banking-sandboxenable-banking-faq-best-practicesWorkflow
工作流程
- Create or access an Enable Banking Control Panel account.
- Register a sandbox application with browser-generated key unless the user already has an external key pair.
- Use the downloaded private key and application UUID as JWT .
kid - Generate a short-lived RS256 JWT and send it as .
Authorization: Bearer <jwt> - For AIS:
GET /aspsps?country=FIPOST /auth- redirect user to returned
url - exchange callback with
codePOST /sessions - fetch balances and transactions for an account
uid
- For PIS:
POST /payments- redirect user to returned
url - fetch until useful/final status
GET /payments/{payment_id}
- Read references/quick-start.md for runnable flow details and sample payloads.
- 创建或登录Enable Banking控制面板账户。
- 注册沙箱应用,除非用户已有外部密钥对,否则使用浏览器生成的密钥。
- 将下载的私钥和应用UUID作为JWT的参数。
kid - 生成短有效期的RS256 JWT,并以的形式发送请求。
Authorization: Bearer <jwt> - 针对AIS流程:
- 调用接口
GET /aspsps?country=FI - 调用接口
POST /auth - 将用户重定向至返回的
url - 使用回调调用
code接口交换会话POST /sessions - 根据账户获取余额和交易记录
uid
- 调用
- 针对PIS流程:
- 调用接口
POST /payments - 将用户重定向至返回的
url - 循环调用接口,直到获取有效/最终状态
GET /payments/{payment_id}
- 调用
- 查看references/quick-start.md获取可运行流程的详细说明及示例请求体。
Core Rules
核心规则
- Start in unless explicitly building production onboarding.
SANDBOX - Keep the private key server-side and out of the repo.
- Use for API calls.
https://api.enablebanking.com - JWT is
iss; JWTenablebanking.comisaud.api.enablebanking.com - JWT max TTL is 86400 seconds; quick-start examples should use around 3600 seconds.
- Verify callback before exchanging an AIS
stateor trusting a payment return.code - Account values returned in
uidare session-scoped and used for account data endpoints.POST /sessions - For a more robust local JWT helper, use the sibling skill's
enable-banking-api.scripts/create-jwt.mjs
- 除非明确进行生产环境接入,否则默认使用环境。
SANDBOX - 私钥需存储在服务端,禁止提交至代码仓库。
- API调用使用地址。
https://api.enablebanking.com - JWT的字段为
iss;enablebanking.com字段为aud。api.enablebanking.com - JWT最长有效期为86400秒;快速入门示例建议使用约3600秒的有效期。
- 在交换AIS的或信任支付返回结果前,需验证回调的
code参数。state - 接口返回的账户
POST /sessions值仅在当前会话范围内有效,用于账户数据相关接口调用。uid - 如需更健壮的本地JWT辅助工具,可使用关联技能中的
enable-banking-api脚本。scripts/create-jwt.mjs
Project Placement
项目架构建议
When turning quick-start code into production application code:
- Put the Enable Banking HTTP client and flow orchestration in backend services.
- Put secret env access in backend-only configuration.
- Keep direct database persistence behind repositories or data-access modules.
- Keep routes thin and use them only to start/complete flows.
- Never call Enable Banking directly from browser code.
将快速入门代码转换为生产环境应用代码时:
- 将Enable Banking HTTP客户端及流程编排逻辑放置在后端服务中。
- 敏感环境变量的访问需配置在后端专属配置中。
- 数据库持久化操作需通过仓储层或数据访问模块实现。
- 路由层应保持精简,仅用于启动/完成流程。
- 禁止在浏览器代码中直接调用Enable Banking接口。