Home / Servers / Stripe API / post_payment_intents

Create a PaymentIntent

An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.

Create a PaymentIntent Creates a PaymentIntent object. After the PaymentIntent is created, attach a payment method and confirm to continue the payment. Learn more about the available payment flows with the Payment Intents… [POST /v1/payment_intents]

Name on the gateway: stripe_api__post_payment_intents · may change things.

Parameters

NameTypeDescription
allowed_payment_method_typesarrayThe list of payment method types allowed for use with this payment. Stripe…
amount requiredintegerAmount intended to be collected by this PaymentIntent. A positive integer…
amount_detailsobjectProvides industry-specific information about the amount.
application_fee_amountintegerThe amount of the application fee (if any) that will be requested to be…
automatic_payment_methodsobjectWhen you enable this parameter, this PaymentIntent accepts payment methods…
capture_methodautomatic | automatic_async | manualControls when the funds will be captured from the customer's account.
confirmbooleanSet to true to attempt to confirm this PaymentIntent immediately. This…
confirmation_methodautomatic | manualDescribes whether we can confirm this PaymentIntent automatically, or if it…
confirmation_tokenstringID of the ConfirmationToken used to confirm this PaymentIntent. If the…
currency requiredstringThree-letter ISO currency code, in lowercase. Must be a supported currency.
customerstringID of the Customer this PaymentIntent belongs to, if one exists. Payment…
customer_accountstringID of the Account representing the customer that this PaymentIntent belongs…
descriptionstringAn arbitrary string attached to the object. Often useful for displaying to…
error_on_requires_actionbooleanSet to true to fail the payment attempt if the PaymentIntent transitions into…
excluded_payment_method_typesarrayThe list of payment method types to exclude from use with this payment.
expandarraySpecifies which fields in the response should be expanded.
hooksobjectAutomations to be run during the PaymentIntent lifecycle
mandatestringID of the mandate that's used for this payment. This parameter can only be…
mandate_dataobjectThis hash contains details about the Mandate to create. This parameter can…
metadataobjectSet of key-value pairs that you can attach to an object. This can be useful…
off_sessionbooleanSet to true to indicate that the customer isn't in your checkout flow during…
on_behalf_ofstringThe Stripe account ID that these funds are intended for. Learn more about the…
payment_detailsobjectProvides industry-specific information about the charge.
payment_methodstringID of the payment method (a PaymentMethod, Card, or compatible Source object)…
payment_method_configurationstringThe ID of the payment method configuration to use with this PaymentIntent.
payment_method_dataobjectIf provided, this hash will be used to create a PaymentMethod. The new…
payment_method_optionsobjectPayment method-specific configuration for this PaymentIntent.
radar_optionsobjectOptions to configure Radar. Learn more about Radar Sessions.
receipt_emailstringEmail address to send the receipt to. If you specify receipt_email for a…
return_urlstringThe URL to redirect your customer back to after they authenticate or cancel…
setup_future_usageoff_session | on_sessionIndicates that you intend to make future payments with this PaymentIntent's…
shippingobjectShipping information for this PaymentIntent.
statement_descriptorstringText that appears on the customer's statement as the statement descriptor for…
statement_descriptor_suffixstringProvides information about a card charge. Concatenated to the account's…
transfer_dataobjectThe parameters that you can use to automatically create a Transfer. Learn more…
transfer_groupstringA string that identifies the resulting payment as part of a group. Learn more…
use_stripe_sdkbooleanSet to true when confirming server-side and using Stripe.js, iOS, or Android…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "stripe_api__post_payment_intents",
  "arguments": {
    "amount": 0,
    "currency": "…"
  }
}

Or connect the Stripe API server directly, which lists 606 tools including this one:

Run in your terminal
claude mcp add --transport http hj-stripe-api https://mcp.hjlabs.in/mcp/stripe-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a paymentintent tool with allowed_payment_method_types set to ….

More from Stripe API