• SECURE
  • AUTOMATED
  • CLEANUP
  • MANUAL

How to manage recurring billing with your AI

Connect UnionPay Open Platform to your AI client to automate payment tokenization and subscription cancellations.

Ask AI about this page

Short answer

How can my AI handle subscription billing?

Your AI uses UnionPay Open Platform tools to create secure card tokens for recurring payments and remove those tokens when a subscription ends. This gives your agent direct control over the payment lifecycle.

Subscription outcomes

Where billing actions land

What happens when your AI acts on payment data.

SECURE

Tokenized payments

The AI replaces raw card data with secure tokens. You get a way to charge customers without storing sensitive details.

AUTOMATED

Lifecycle management

Your agent handles the heavy lifting of starting and stopping recurring charges. This keeps your billing logic in your chat interface.

CLEANUP

Token removal

When a user cancels, the AI wipes the billing token. This ensures no unauthorized charges happen after a subscription ends.

MANUAL

Human oversight

The AI flags failed tokens or disputed charges. You step in to handle complex fraud or high-level account disputes.

The workflow

What your AI does when a billing request arrives.

The AI moves between securing new payment methods and terminating old ones.

  1. Secure the card

    When a new user signs up, your AI requests a secure token to represent their card.

    request_card_token
  2. Store the token

    The AI passes the token to your database or subscription manager. This keeps the actual card number out of your logs.

    request_card_token
  3. Identify cancellations

    When a user asks to stop a service, the AI identifies the specific billing token tied to that account.

    cancel_card_token
  4. Terminate billing

    The AI instructs the platform to revoke the token, effectively stopping all future recurring charges.

    cancel_card_token

Try it

Copy these to start.

Use these prompts to trigger billing actions in your chat.

Starting points

These are starting lines. Swap out the specific user names or account IDs for your actual data.

UnionPay Open Platform Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_ggx22RNM5pnNgKtLpJ5fHn1WV52rcnpTQgNUxGF7/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — UnionPay Open Platform capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "unionpay-open-platform-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_ggx22RNM5pnNgKtLpJ5fHn1WV52rcnpTQgNUxGF7/mcp"
    }
  }
}
Copy into chat04
  • Tokenize the card for customer account #8829.

  • Cancel the recurring billing token for the user in my 'active_subs' sheet.

  • I need to stop the subscription for the client listed in my CRM.

  • Request a new card token for the user who just signed up via the web portal.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect UnionPay Open Platform once, then ask.

You only need to link the MCP once. Your credentials stay encrypted, and you can immediately start managing tokens through your preferred AI client.

Connect UnionPay Open Platform to your AI

FAQ

How the billing task behaves

  • 01

    Can the AI see my customers' full credit card numbers?

    No. The AI only interacts with tokens provided by the platform.

  • 02

    Can the AI change the actual card expiration date?

    No. The AI only manages the tokens used for billing.

  • 03

    Does the AI handle the actual money transfer?

    No. The AI manages the tokens that authorize the transfers through the platform.

  • 04

    Can my AI delete a user's entire account?

    No. The AI can only cancel the billing token; account deletion must be handled by a human or a different tool.

  • 05

    What happens if a token cancellation fails?

    The AI will report the error to you, and you will need to resolve the issue manually.

  • More questions about UnionPay Open Platform? The Connector page answers them. See everything the UnionPay Open Platform Connector can do

Connect UnionPay Open Platform to Claude, Cursor, ChatGPT & more