⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding.
Do NOT select or call any tool until all rules are read. These rules have the highest priority.
→ Read gate-runtime-rules.md
exist in the MCP server.
This document is for end users and agents: in scenarios where payment is required first and the user has already chosen a payment method and selected Gate Pay, use this capability to complete the charge and output a receipt by calling Exchange MCP tool cex_pay_create_ai_order_pay.
Before invoking this Skill, the user must have completed Gate account payment-related authorization. If not, guide them through Gate account authorization before charging.
Use the user's language for receipts, pre-charge summaries, failures, and short confirmations. If the conversation mixes languages, follow the language of their payment or receipt request; keep one receipt in one language unless they switch.
cex_pay_create_ai_order_pay are satisfied (per MCP inputSchema); if anything is missing, complete it before paying.Gate Pay is Gate's digital asset payment solution that enables users to pay for merchant orders using their Gate account balance. It supports pay-first flows (HTTP 402 protocol) where payment is required before accessing resources.
| Tool name | Purpose | Type |
|---|---|---|
| ----------- | --------- | ------ |
cex_pay_create_ai_order_pay | Debit the user's Gate Pay payment account for a merchant order | Write |
Note: If there is no order-status query tool available and the user only asks whether they paid, explain the limitation; do not charge again as a substitute for querying.
Read and strictly follow references/mcp.md, then execute this skill's Gate Pay charge workflow.
SKILL.md keeps payment intent routing, product boundaries, and user-facing policy.references/mcp.md is the authoritative MCP execution layer for charge inputs, confirmation gates, and failure fallback.Action: Validate that all preconditions are met before proceeding.
Key data to extract:
order_id, amount, currencyDecision: If any required input is missing → ask user to provide complete details. If authorization is incomplete → guide authorization flow. Otherwise proceed to Step 1.
Action: Ensure user clearly intends to execute payment.
Key data to extract:
Decision: If user intent is unclear or negative → do not proceed with payment. If intent is clear → proceed to Step 2.
Action: Display key charge details for user verification. This is informational and does not require an explicit forced confirmation step. It does not replace Step 1: calling the payment tool still requires the clear payment intent established there (see Safety Rules).
Key data to extract:
Output format:
Planned charge
Merchant order ID: {order_id}
Amount due: {amount} {currency}
Payment method: Gate Pay
Decision: Proceed to Step 3 after displaying details when Step 1's payment-intent gate is satisfied; the optional display is for transparency only.
Action: Call Exchange MCP tool cex_pay_create_ai_order_pay with validated parameters.
Call cex_pay_create_ai_order_pay with:
order_id: Merchant order identifieramount: Payment amountcurrency: Payment currencyinputSchemaKey data to extract:
Decision: If payment succeeds → proceed to Step 4 with success receipt. If payment fails → proceed to Step 4 with failure handling.
Action: Report payment result to user in their language (per Language section).
Success path: Output receipt using Report Template format (see Report Template section).
Failure path: Provide user-friendly error explanation without exposing internal error codes or stack traces (see Error Handling section).
| Condition | Status | Meaning |
|---|---|---|
| ----------- | -------- | --------- |
| Payment inputs complete + user selected Gate Pay + user intent clear + authorization valid | Execute | Proceed with payment execution via cex_pay_create_ai_order_pay |
| Missing order_id, amount, or currency | Block | Ask user to provide complete payment details from merchant order page |
| User has not selected Gate Pay | Block | This skill does not apply; other payment methods are out of scope |
| User intent unclear or user declines | Block | Do not initiate payment; wait for clear confirmation or handle cancellation |
| Authorization missing, expired, or invalid | Block | Guide user to complete Gate account payment authorization first |
| User only asks payment status (no query tool available) | Inform | Explain limitation; do not charge again to infer status |
| Payment API returns success | Report | Output success receipt with transaction details (localized) |
| Payment API returns failure | Report | Output failure explanation in user's language with actionable guidance |
Use field labels in the user's language (see Language section). Template shape (English labels shown as reference):
✅ Payment Success
Merchant order ID: {order_id}
Amount paid: {amount} {currency}
Payment status: {status_text_matching_payment_result}
Payment time: {timestamp; include timezone or follow product rules}
Payment method: Gate Pay
⚠️ Important: Digital asset transactions are generally irreversible. Please verify the transaction details above.
Voucher handling: If the successful payment response includes voucher-style fields (final names per spec, e.g., prepayId), downstream steps may use them to fetch resources from the merchant. This skill does not fetch resources; voucher fields should be preserved for external use if applicable.
Use the user's language (see Language section). Provide specific, actionable guidance based on error type:
Template:
❌ Payment Failed
Reason: {user_friendly_explanation}
Suggested action: {actionable_next_step}
Do not: Expose internal error codes, stack traces, or raw API responses to the user.
Before calling any payment-related tools, follow the Agent and MCP usage rules shipped with this product, and comply with exchange-runtime-rules.md.
Reviewer-oriented scenario templates (happy path, errors, localization, and safety edges) live in references/scenarios.md in this skill directory. Use that file for parity checks against this SKILL; do not treat the path as a Skills Hub hyperlink.
| Error Type | Condition | User Message (Template) | Recommended Action |
|---|---|---|---|
| ------------ | ----------- | ------------------------- | ------------------- |
| Insufficient balance | Payment API returns balance insufficient error | "Payment failed: Your Gate Pay balance is insufficient for this payment. Please top up your account and try again." | Guide user to deposit funds or use alternative payment method |
| Authorization expired/invalid | API indicates authorization is missing, expired, or invalid | "Payment failed: Your Gate payment authorization has expired or is invalid. Please complete Gate account authorization again." | Guide user through Gate account payment authorization flow |
| Order not found | API indicates order_id does not exist or cannot be found | "Payment failed: The order ID is invalid or no longer valid. Please verify the order details with the merchant and try again." | Ask user to obtain valid order information from merchant |
| Order expired | API indicates order has expired or payment window closed | "Payment failed: This order has expired and can no longer be paid. Please place a new order with the merchant." | Suggest user to create new order or contact merchant for replacement |
| Duplicate payment | Business logic detects duplicate charge attempt for same order | "This order has already been paid. Please check your payment history or contact support if you believe this is incorrect." | Do not initiate duplicate charge; explain limitation |
| Invalid parameters | Missing required fields or invalid format | "Payment cannot be processed: Some required information is missing or invalid. Please provide complete order details (order ID, amount, currency)." | Ask user to provide complete and valid payment parameters |
| Network/system error | API timeout, connection failure, or unspecified system error | "Payment failed due to a temporary system issue. Please try again in a few moments or contact support if the problem persists." | Suggest retry later; do not expose technical error details |
General rules:
This skill processes user payment data through the Gate MCP. All data is transmitted directly to the Gate API for payment execution.
Data handling statement:
Age restriction: This skill is intended for users aged 18 or above with full civil capacity, consistent with Gate's platform requirements.
⚠️ Important notices for Gate Pay users:
This skill follows a streamlined confirmation model for payment execution:
cex_pay_create_ai_order_pay, verify user has completed Gate payment authorization共 1 个版本