Setup Adyen 标志

Setup Adyen

社区
afu-it
setup-adyen

使用 Adyen 官方文档,设置、构建、调试、审查并讲解 Adyen 支付集成,涵盖 Checkout API v72(/sessions、/paymentMethods、/payments、/payments/details)、Hosted Checkout、Web Drop-in 和 Components、HMAC-SHA256 签名 Webhook、请款、退款、取消、冲正、Tokenization、支付链接、测试卡、正式环境端点前缀、API 密钥和客户端密钥配置,以及上线检查。适用于马来西亚商户使用 Adyen、MYR、FPX(MOLPay)、DuitNow QR、Touch 'n Go、GrabPay、Boost、Atome、Alipay、Alipay+、银行卡、Apple Pay、Google Pay、Adyen Webhook 结算、对账或正式上线准备等场景。

概览

发布者afu-it
代码仓库malaysia-payment-gateway
技能名称setup-adyen
星标数
74
复刻数
11
附带文件
11
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 11 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 afu-it 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Setup Adyen AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-adyen
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/afu-it/malaysia-payment-gateway.git /tmp/malaysia-payment-gateway
mkdir -p .claude/skills
cp -r /tmp/malaysia-payment-gateway/setup-adyen .claude/skills/setup-adyen
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Setup Adyen,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Setup Adyen。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Setup Adyen 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Adyen Payment Gateway

Use this skill for Adyen online payment integration work for Malaysian merchants.

Source

Read references/adyen-api.md first. It is the entry point: environments, auth, idempotency, endpoint catalogue, flow summary, HMAC algorithm, statuses, amounts, IP ranges, common errors, and links to the topic files.

Read the topic file for the task:

  • references/adyen-checkout.md: Sessions flow, Hosted Checkout, Advanced flow, Drop-in, actions, result codes, 3DS2.
  • references/adyen-webhooks.md: webhook setup, payload, HMAC verification code, event codes, retries.
  • references/adyen-modifications.md: capture, refund, cancel, reversal, amount update, lifecycle, disputes API.
  • references/adyen-payment-methods-my.md: FPX issuers, DuitNow, Touch 'n Go, GrabPay, Boost, Atome, Alipay, Alipay+, WeChat Pay, cards.
  • references/adyen-tokenization-links.md: tokens and payment links.
  • references/adyen-errors-testing.md: sandbox data, refusal reasons, error codes.
  • references/adyen-fields.md: full request and response field tables from the official OpenAPI.

Read references/account-setup.md for registration, documents, Customer Area paths, credentials, env vars, payment method activation, payouts, reports, and go live.

Read references/source-map.md to pick the right official page and to see what the skill covers.

Core Workflow

  1. Identify environment: test (checkout-test.adyen.com) or live (<PREFIX>-checkout-live.adyenpayments.com).
  2. Pick the flow: Hosted Checkout, Sessions flow with Drop-in, or Advanced flow; payment links for invoices.
  3. Confirm Customer Area setup: merchant account, API credential roles, API key, client key with allowed origins, payment methods added (FPX and others), webhook with HMAC key.
  4. Create a local pending order (amount in sen, MYR) before calling Adyen.
  5. Call POST /sessions (or /paymentMethods then /payments) server-side with x-API-key, idempotency-key, reference = order id, countryCode: "MY", returnUrl.
  6. Render Drop-in with session.id and sessionData and the client key, or redirect to the Hosted Checkout url.
  7. On return, submit redirectResult and show resultCode as UX only.
  8. Verify each webhook item's additionalData.hmacSignature (HMAC-SHA256, hex-decoded key, 8 fields joined by :), store it, return 2xx within 10 seconds, then process.
  9. Settle idempotently from AUTHORISATION with success == "true" after matching reference, amount, currency, merchant account and environment.
  10. Run captures, refunds, cancels and reversals server-side; treat their webhooks as the outcome.

Core Facts

  • Checkout API version used by the docs: v72. Test base https://checkout-test.adyen.com/v72.
  • Live base https://<PREFIX>-checkout-live.adyenpayments.com/checkout/v72; prefix from live Customer Area > Developers > API URLs.
  • Auth: x-API-key header from Developers > API credentials; client key (test_ / live_) for the frontend only.
  • amount.value is an integer in minor units; MYR has 2 decimals.
  • idempotency-key header, max 64 characters, kept at least 7 days.
  • Webhook HMAC string: pspReference:originalReference:merchantAccountCode:merchantReference:amount.value:amount.currency:eventCode:success.
  • Webhooks must get 2xx within 10 seconds; retries run up to 30 days.
  • Modifications return status: "received"; outcomes come by CAPTURE, REFUND, CANCELLATION, CANCEL_OR_REFUND, TECHNICAL_CANCEL webhooks.
  • FPX type molpay_ebanking_fpx_MY with required issuer; all 18 issuers must be shown (PayNet rule).
  • DuitNow is QR only and its result comes only by webhook; DuitNow and Touch 'n Go are enabled through Support.
  • Malaysian local methods have no recurring and no separate capture; Boost allows full refunds only.
  • No webhook is sent at settlement; use the Settlement details report.

Critical Rules

  • Keep the API key, HMAC key and report credentials server-side. The client key is public but restrict its allowed origins.
  • Never fulfil from resultCode, onPaymentCompleted, redirectResult, sessionResult or a return URL alone.
  • Verify HMAC per notification item with the hex-decoded key and constant-time comparison; reject items without hmacSignature.
  • For header-signed webhooks (token life cycle, Management), verify over the raw body.
  • Use test keys with test hosts and live keys with the live prefix host; check webhook live matches.
  • Accept, store and acknowledge webhooks before business logic; make processing idempotent on pspReference, eventCode, success.
  • Compare amount.value as an integer and amount.currency against the stored order.
  • Send every POST with an idempotency-key; retry only with the same key.
  • Show all 18 FPX banks; do not filter the issuer list.
  • Respect method limits: GrabPay reference max 32 [A-Za-z0-9_-]; Atome MYR 10 to 1,500 debit or 5,000 credit, required shopper fields, no portable electronics.
  • Do not copy fees; link https://www.adyen.com/pricing.
  • Say "Not documented in official docs" instead of guessing.

Completion Criteria

An Adyen integration is done only when:

  1. Session or payment creation runs server-side with x-API-key and idempotency-key.
  2. The frontend only renders Drop-in or redirects; it cannot mark an order paid.
  3. A Standard webhook is configured per environment with its own HMAC key.
  4. The webhook handler verifies HMAC exactly as documented, stores, acknowledges within 10 seconds, and processes asynchronously.
  5. Settlement checks merchantReference, amount, currency, merchantAccountCode, live, and success.
  6. Duplicate webhooks, late AUTHORISATION after Pending, OFFER_CLOSED, and modification failures are handled idempotently.
  7. Tests cover bad HMAC, replayed event, wrong amount or currency, refused payment, pending FPX or wallet, refund failure, and a successful payment.
  8. Deployment docs list ADYEN_API_KEY, ADYEN_MERCHANT_ACCOUNT, ADYEN_CLIENT_KEY, ADYEN_HMAC_KEY, ADYEN_ENVIRONMENT, ADYEN_LIVE_URL_PREFIX, return URL, webhook URL, and test or live separation.

Loophole Review Loop

When asked whether an Adyen strategy is "100% confident", run this loop until no factual gaps remain:

  1. List trust boundaries: browser, Drop-in, return URL, Hosted Checkout page, backend creator, Adyen API, webhook receiver, queue, database, fulfilment, modification jobs, Customer Area settings, reports.
  2. Check bypasses: forged return URL, forged webhook, HMAC over wrong fields or unhexed key, test key in live, wrong prefix host, wrong merchant account, amount or currency mismatch, duplicate or out-of-order events, slow handler causing retries, pending marked failed too early, refunds before capture, cancel after capture, method not enabled, missing FPX banks.
  3. Add fixes: server-side creation, local pending order first, documented HMAC check, constant-time compare, strict field matching, durable event log, idempotency keys, environment-separated config, DNS-based allowlisting, report reconciliation.
  4. Re-read the relevant reference file for any gap.
  5. State remaining uncertainty that depends on the merchant's contract, enabled methods, live region, payout model, or Support-enabled features.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Setup Adyen AI 技能有什么作用?

使用 Adyen 官方文档,设置、构建、调试、审查并讲解 Adyen 支付集成,涵盖 Checkout API v72(/sessions、/paymentMethods、/payments、/payments/details)、Hosted Checkout、Web Drop-in 和 Components、HMAC-SHA256 签名 Webhook、请款、退款、取消、冲正、Tokenization、支付链接、测试卡、正式环境端点前缀、API 密钥和客户端密钥配置,以及上线检查。适用于马来西亚商户使用 Adyen、MYR、FPX(MOLPay)、DuitNow QR、Touch 'n Go、GrabPay、Boost、Atome、Alipay、Alipay+、银行卡、Apple Pay、Google Pay、Adyen Webhook 结算、对账或正式上线准备等场景。

为什么在 TypingMind 中使用 Setup Adyen?

因为您只需安装一次,就能搭配任何模型使用。Setup Adyen 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Setup Adyen?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-adyen。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Setup Adyen?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Setup Adyen 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Setup Adyen 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Setup Adyen AI 技能免费吗?

afu-it 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇