Get Stripe payment intent by ID is a WordPress ability from WooCommerce Stripe Gateway — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get Stripe payment intent by ID

Read-only
WooCommerce Stripe Gateway Ecommerce woocommerce-gateway-stripe/get-payment-intent

Look up a single Stripe payment intent by ID to check its status and payment method details.

Requires the WooCommerce Stripe Gateway plugin active on WordPress 6.9+ with WooCommerce 10.9 or later, since every ability registers through WooCommerce Core's AbilitiesLoader. Abilities are also gated behind the 'wc_stripe_abilities_enabled' filter, which defaults to off, and the current user needs the 'manage_woocommerce' capability.

What it does

This ability retrieves a single Stripe payment intent by its payment_intent_id (a required pi_xxx string). It returns the raw Stripe payment_intent object, including status, charges, and the attached payment method's billing details. An optional expand array (allow-listed to customer, latest_charge, payment_method, and review, up to 4 items) inflates those related objects inline. A missing or empty payment_intent_id returns a 400 error before any Stripe call is made.

See it in action

You ask your AI assistant

"Get the status and billing details for Stripe payment intent pi_3PQxyz."

Inputs

Name Type Required Description
payment_intent_id string Yes Stripe payment intent ID (pi_xxx).
expand array No Related objects to inflate inline. Allowed values: customer, latest_charge, payment_method, review.

Returns

The raw Stripe payment_intent object for the given ID, including status, charges, and the attached payment method's billing details, with any requested expand fields inflated inline.

Permission

The current user must have the 'manage_woocommerce' capability, checked via WC_Stripe_Abilities_Registrar::can_manage_woocommerce().

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.