Get PayPal Payments connection status is a WordPress ability from WooCommerce PayPal Payments — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get PayPal Payments connection status

Read-only
WooCommerce PayPal Payments Ecommerce woocommerce-paypal-payments/get-connection-status

Check whether the store's PayPal merchant account is connected and see its sandbox/live mode, merchant ID, and email, without exposing API credentials.

Requires the WooCommerce PayPal Payments plugin with WooCommerce 10.9+ (which brings the Abilities API loader; implies WordPress 6.9+). Abilities are additionally gated behind the `woocommerce_paypal_payments_abilities_enabled` filter, which defaults to false, so a site admin or developer must explicitly enable it before any ability registers. Every ability requires the current user to have the 'manage_woocommerce' capability.

What it does

This ability delegates to the plugin's CommonRestEndpoint::get_merchant_details handler (via the internal REST route /wc/v3/wc_paypal/common/merchant) and returns the merchant connection state: whether the store is connected, sandbox vs. live mode, merchant ID, email, and seller type, plus an optional features block. It takes no input parameters. Before returning, it strips the clientId and clientSecret OAuth credential fields so an AI assistant can reason about the connection without ever seeing the store's live API secrets.

See it in action

You ask your AI assistant

"Is our PayPal Payments account connected, and is it running in sandbox or live mode?"

Returns

An object with a `merchant` subobject (connection state, sandbox flag, merchant ID, email, seller type — clientId/clientSecret redacted) and an optional `features` array.

Permission

The current user must have the 'manage_woocommerce' capability, checked via AbilitiesRegistrar::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.