fill_card
Type a saved card (number, expiry, CVC, name, billing address) into the checkout page at site over CDP. The page must be on one of the card's allowed sites. The number and CVC are never returned; the result names the fields typed, the site, last4 and the outcome. Pass amount_cents, the total you are about to pay. Above the card's spend rule, or with no amount when the rule needs one, nothing is typed: the owner is asked to approve and the result has outcome waiting_approval and approval_id. Then call wait_for_approval, and fill_card again with the same arguments and approval_id. This tool does not click pay.
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": {
"site": "<site>",
"cdp_url": "<cdp_url>"
},
"name": "fill_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| label | No | Which card. Omit to use the newest card allowed on site. | |
| fields | No | CSS selectors for fields the defaults miss: number, name, exp, exp_month, exp_year, cvc, address_line1, address_line2, city, state, postal_code, country. | |
| cdp_url | Yes | ||
| approval_id | No | The approval from an earlier fill_card that waited for the owner. | |
| identity_id | No | Identity to use. Omit when the account has exactly one identity. | |
| amount_cents | No | The checkout total, in cents. |