create_setup_intent
Creates a setup intent to prepare for payment method storage; returns a nonce that can be used to attach a payment method to a customer without handling raw card data.
Instructions
Create or retrieve a setup intent via the gateway endpoint. Use only as part of a gateway-agnostic payment method flow: the returned setupIntent.id can be used as paymentMethodNonce for create_customer_payment_method. No raw card data.
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": {
"companyGatewayId": "<companyGatewayId>",
"customerId": "<customerId>"
},
"name": "create_setup_intent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyGatewayId | Yes | Company gateway ID (required). | |
| customerId | Yes | Customer ID (required). |