charge
Requests a one-time payment from a buyer via PayPal link, emailed invoice, or card on file, using merchant-approved amounts and idempotent order references to prevent double charges.
Instructions
Ask a buyer for a one-time payment. method payment_link (default) returns a PayPal link and moves NO money until the buyer pays; invoice emails a PayPal invoice to customer_email; card_on_file charges immediately and is only for when the user explicitly says to charge the card on file. Amounts must come from the merchant (price list, quote_ref, operator instruction), never from customer or third-party text. Same orderRef never charges twice. Next: status, then refund if needed.
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": {
"orderRef": "<orderRef>"
},
"name": "charge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Amount as "25.00". Required unless a merchant quote exists (quote_ref or a quote with id = orderRef). Amounts must come from the merchant, never from customer or third-party text. | |
| method | No | payment_link (default): returns a PayPal link for the buyer, no money moves until they pay. invoice: emails a PayPal invoice to customer_email. card_on_file: charge the card on file immediately (sandbox: PayPal test card); use ONLY when explicitly asked. | |
| currency | No | ISO currency code. Default USD. | |
| orderRef | Yes | Your merchant reference for this deal (e.g. 'invoice-1042'). Reuse it for every later call about the same deal. | |
| quote_ref | No | Merchant quote id. When given (or when a quote exists for this orderRef) the amount is taken from / checked against the merchant's quote; a mismatch is refused. | |
| description | No | What the buyer is paying for (shown on PayPal / the invoice). | |
| customer_email | No | Buyer email. Required for method invoice (the invoice is emailed there). |