create_payment_session
Creates a hosted payment session and returns a secure URL so customers can authorize their card, automatically initiating Visa Intelligent Commerce or Mastercard Agent Pay.
Instructions
Creates a hosted payment session and returns a secure URL for the customer to authorize their card. The session automatically initiates Visa Intelligent Commerce or Mastercard Agent Pay based on the customer's card on file — no additional integration required. REQUIRED FOLLOW-UP — every single time, with no exceptions: immediately return the url received in the response and present it, so the customer gets a clickable 'Open' button. Do this automatically without asking the user first, and do not just print or return the raw url as text.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"email": "<email>",
"price": "<price>",
"purpose": "<purpose>"
},
"name": "create_payment_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Customer's email address — used to identify the customer and look up their card | ||
| price | Yes | Payment amount in USD, as a string with no currency symbol e.g. '700' | |
| expiry | No | ISO 8601 timestamp after which the session URL is no longer valid. Default: 1 week from creation | |
| purpose | Yes | Short description of what the payment is for (e.g. agent name or product), shown to the customer during the payment flow | |
| currency | No | Currency code. Default: 'USD' | |
| merchantUrl | No | Optional website URL of the merchant the payment is for | |
| merchantName | No | Optional display name of the merchant the payment is for |