Airwallex Payments(カード決済サービス)のカード専用フローを使用するAIプロバイダー向けに、実装計画書の全体構成をサポートするスキルです。自分たちで購読管理、トークン残高、手動チャージ、自動再チャージ(販売店主導の取引)を管理するプロバイダーが対象です。 **カバーする内容:** - Web JS SDK Split Card Elements(複数のカード入力フィールド) - カード登録 - 請求情報の収集 - 不正検知チェック - 購読向け定期決済許可(スケジュール型) - 再チャージ向け定期決済許可(非スケジュール型) - ウェブフック(イベント通知) - 販売店側で管理する取引台帳、請求書、領収書、再試行、通知、キャンセル処理 **次のような場合に使用:** カード決済を用いた購読型AIサービスの実装計画を立案する際 **非対応:** カード以外の決済方法、顧客主導のワンクリック決済、ホストされたチェックアウト、ドロップイン、HPP、またはプロバイダー管理の購読商品
Use this skill to guide an end-to-end implementation plan document for card-only Airwallex Payments flows used by AI providers that self-manage subscriptions, token balances, manual top-ups, and auto-recharge with merchant-initiated transactions. Covers Web JS SDK Split Card Elements, card binding, billing information collection, fraud-data checks, scheduled MIT consent for subscriptions, unscheduled MIT consent for recharge, webhooks, and merchant-owned ledger, invoice, receipt, retry, notification, and cancellation logic. Do not use for non-card methods, customer-initiated one-click checkout, hosted checkout, Drop-in, HPP, or provider-managed subscription products.
Airwallex API のフィールド名と SDK の形状については、このスキルに組み込まれた例やキャッシュされた例よりも、Airwallex ドキュメント MCP(情報取得ツール)を優先してください。API フィールド、SDK コード、統合の説明を作成する前に、MCP で関連する Airwallex の動作を確認してください。
ソリューションはカード決済のみ、Web JavaScript SDK のみ、マーチャント(販売者)側の管理に限定してください。ホステッド決済ページ、ドロップイン決済、HPP(ホスト型決済ページ)、カード以外の決済方法、またはプロバイダ側で管理するサブスクリプション機能には対応しないでください。
ドキュメント参照に必要な Airwallex ドキュメント MCP コネクタだけをインストールしてください。公式セットアップガイドをご覧ください:
https://www.airwallex.com/docs/developer-tools/ai/developer-connector.md
SDK コードスニペット、API リクエスト例、HTML 例、JSON データ、curl コマンドをこのスキルに保存しないでください。このスキルは、操作デザイン、判断、フィールドの用途、状態の管理、実装チェックリストのためだけに使用してください。
実装に入る前に、必ず計画を確認して決定してください。最初に、マーチャント(販売者)のビジネス内容、購入者の操作フロー、各フローでの同意の種類、請求情報の収集方法、不正防止データの責任分担、バックエンド(後処理システム)とウェブフック(自動通知機能)の役割、未決定の項目を特定してください。
ユーザーが明確に計画をスキップするよう求めない限り、計画が承認されるまでコード生成に進まないでください。ユーザーが既存の計画なしでコードを求めた場合は、まずコンパクトな計画を提供し、そのコードが依存する仮定を明記してください。
このスキルの主要な成果物は、実装計画書です。まず対話の中で計画を話し合い、決定してください。その後、このスキルと Airwallex ドキュメント MCP を使用して計画書を作成します。
ユーザーが別の場所を指定しない限り、計画ファイルのデフォルト名は airwallex-ai-provider-card-mit-plan.md で、現在のプロジェクトに保存してください。指定されたパスにファイルが既に存在する場合は、上書きする前に確認してください。
完成した計画書は、実装開始前にユーザーが確認できるレベルの品質にしてください。MCP で確認済みの JavaScript フロントエンド例(分割カード入力要素)と、関連する決済意図(PaymentIntent)・決済同意(PaymentConsent)フロー用の MCP で確認済み API コール例を含める必要があります。
このスキルは、AI 製品向けのマーチャント側での決済方法保存(MIT)フローを設計します:
payment_consent_id(同意 ID)に紐付ける必要があります。$ARGUMENTS は計画対象のフロー(デフォルト plan ;対話的に範囲を決める)を選択します:plan、recharge、auto-recharge、subscription、saved-card、renewal、full。これらは下記の「対応業務」のフローに対応します。
このスキルは、次の AI プロバイダのビジネスフロー向けの、マーチャント管理型カード MIT 計画全体をガイドします:
計画では、該当する各フローについて、購入者の操作、同意の種類、請求情報の取り扱い、不正防止データの取り扱い、バックエンドワークフロー、ウェブフック確認、台帳への影響、失敗時の復旧を定義する必要があります。
タスクに必要な参照資料だけを読み込んでください:
references/interaction-flows.md を最初に読んでください。API マッピングの前に、その中のステップバイステップ図を使用してください。references/airwallex-objects-and-consents.md を読んでください。references/frontend-split-card-elements.md を読んでください。references/server-and-webhooks.md を読んでください。references/fraud-data-standards.md を読んでください。コード実装者は API コールを書く前に、Airwallex ドキュメント MCP で現在の不正防止データ標準を確認する必要があります。references/ux-copy-and-checklists.md を読んでください。計画の回答には、以下を含めてください:
airwallex-ai-provider-card-mit-plan.md のファイル名とパス(ユーザー確認用)計画では、次のビジネスフローセットから該当するものを明確にカバーしてください:チャージ承認用のカード登録、手動チャージ、自動チャージ設定、新規カードでのサブスクリプション登録、保存済みカードでのサブスクリプション登録、サブスクリプション更新料金。マーチャントにとって明らかに対象外のフローは省略してください。
実装の回答や最終計画書については、関連する MCP ドキュメントを確認した後にのみコードを作成してください。バックエンドが決済意図(PaymentIntent)と同意のステータスを確認するまで、フロントエンド実装を暫定版として扱ってください。
For current Airwallex API field names and SDK shapes, prefer the Airwallex docs MCP over any embedded or cached examples. Verify the relevant Airwallex behavior with MCP before producing API fields, SDK code, or integration claims.
Keep the solution card-only, Web JS SDK-only, and merchant-managed. Do not route the design to hosted checkout, Drop-in, HPP, non-card methods, or provider-managed subscription engines.
Install only the Airwallex Docs MCP connector needed for documentation lookup. Use the official setup guide:
https://www.airwallex.com/docs/developer-tools/ai/developer-connector.md
Do not store SDK snippets, API request examples, HTML examples, JSON payloads, or curl commands in this skill. Use this skill for interaction design, decisions, field intent, state handling, and implementation checklists only.
Always settle the plan before implementation. Start by identifying the merchant business entries, shopper interaction flows, consent type for each flow, billing-information collection, fraud-data responsibilities, backend/webhook responsibilities, and open questions.
Do not move into code generation until the plan is accepted, unless the user explicitly asks to skip planning. If the user asks for code without an existing plan, first provide a compact plan and call out any assumptions that the code will depend on.
The primary deliverable of this skill is an implementation plan document. First discuss and settle the plan in conversation. Then use this skill and the Airwallex docs MCP to create the plan artifact.
Default the plan filename to airwallex-ai-provider-card-mit-plan.md in the current project unless the user specifies another location. If a file already exists at that path, confirm before overwriting it.
The completed plan document should be suitable for user review before implementation begins. It should include MCP-verified JavaScript frontend examples for Split Card Elements and MCP-verified backend API call examples for the relevant PaymentIntent and PaymentConsent flows.
This skill designs merchant-initiated card-on-file flows for AI products:
unscheduled MIT consent.scheduled MIT consent.payment_consent_id.$ARGUMENTS selects which flow(s) to plan (default plan; scope the full plan collaboratively): plan, recharge, auto-recharge, subscription, saved-card, renewal, full. These map to the flows in Business Coverage below.
This skill guides the full merchant-managed card MIT plan for these AI provider business flows:
The plan must define the shopper interaction, consent type, billing-information handling, fraud-data handling, backend workflow, webhook confirmation, ledger impact, and failure recovery for each applicable flow.
Load only the reference needed for the task:
references/interaction-flows.md first when planning user journeys, product flows, or end-to-end implementation. Use its step-by-step ASCII flows before API mapping.references/airwallex-objects-and-consents.md for object mapping, consent selection, local data models, and charge routing.references/frontend-split-card-elements.md for Web JS SDK Split Card Elements UX, validation, 3DS, success, and failure handling.references/server-and-webhooks.md for backend endpoints, webhook processing, idempotency, ledger updates, invoices, receipts, and retries.references/fraud-data-standards.md whenever designing or implementing PaymentIntent creation or confirmation. The coding agent must use the Airwallex docs MCP to verify the current fraud-prevention data standards before writing API calls.references/ux-copy-and-checklists.md for authorization copy, settings screens, cancellation UX, and implementation checklists.For planning answers, include:
airwallex-ai-provider-card-mit-plan.md filename and path for user confirmation.The plan should explicitly cover the relevant business flows from this set: add card for recharge authorization, manual recharge, auto-recharge setup, subscription signup with a new card, subscription signup with a saved card, and subscription renewal. Omit flows only when they are clearly out of scope for the merchant.
For implementation answers or final plan documents, produce code only after checking the relevant MCP docs. Treat frontend completion as provisional until the backend confirms the PaymentIntent and consent status.
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。