maton stripe charge create
maton stripe charge create [flags]
Create a charge against a customer or token.
Stripe recommends payment intents for new integrations; use ‘maton stripe payment create’ instead unless you specifically need the legacy Charges API.
Options
-
--amount <string> - Amount in cents (required)
-
--connection <string> - Connection ID to route through (Maton-Connection header)
-
--currency <string> - Three-letter currency code (required, e.g. usd)
-
--customer <string> - Customer ID
-
--description <string> - Description of the charge
-
--dry-run - Print the request that would be sent without executing it
-
--format <string> - Output format: 'json' (default) or 'text' on supported commands
-q,--jq <expression>- Filter JSON output using a jq expression
-
--metadata <stringArray> - Metadata key=value pair (repeatable)
-
--paginate - Follow next_cursor and concatenate all pages (list commands only)
-
--source <string> - Payment source (token or card ID)
-
--template <string> - Format JSON output using a Go template; see "maton help formatting"
Options inherited from parent commands
-p,--profile <string>- Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)
Examples
$ maton stripe charge create --amount 1999 --currency usd --customer cus_123