execute_payment
Executes a payment with a one-time token: fills card fields, clicks Pay, verifies confirmation. Reports confirmed, declined, or unconfirmed status to guide next steps.
Instructions
Execute a payment with a one-time token: Z-Zero opens a headless browser, injects the card (you NEVER see the PAN), clicks Pay, then watches for a REAL confirmation before reporting success. Returns a status: confirmed (order placed → token burned, receipt_id may hold a real order #), declined (merchant rejected → token kept for refund), unconfirmed (submitted but no confirmation seen → do NOT retry blindly, verify first), not_submitted (no Pay button → supply a submit_selector hint), or no_fields. ALWAYS pass actual_amount so overcharges are blocked and underspend refunded.
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": {
"token": "<token>",
"checkout_url": "<checkout_url>"
},
"name": "execute_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hints | No | Optional hints from get_merchant_hints — selectors and pre-steps to guide Playwright. Use when default selectors fail or for complex multi-step checkouts. | |
| token | Yes | The temporary payment token from request_payment_token | |
| checkout_url | Yes | The full URL of the checkout/payment page | |
| actual_amount | No | STRONGLY RECOMMENDED. The final total shown on the checkout page (incl. shipping + tax). Enables the overcharge block and the underspend refund — omit only if it is genuinely unreadable. |