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-onlyLook 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().
More WooCommerce Stripe Gateway abilities
Get Stripe account summary
Summarize the current state of the store's connected Stripe account in one zero-argument read.
Get Stripe balance
Check the merchant's current Stripe balance across available, pending, and reserved amounts.
Get Stripe balance transactions
List Stripe balance transactions — charges, refunds, payouts, and adjustments — that moved money in or out of the balance.
Get Stripe charge by ID
Look up a single Stripe charge by its ID, with optional related objects inflated inline.
Get Stripe charges
List recent Stripe charges, optionally filtered by customer, payment intent, or date range.
Get Stripe dispute by ID
Look up a single Stripe dispute by ID, including its evidence and linked charge.