Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/polettoespana/carttrigger-stripe/archive/refs/heads/main.zipStripe Payment Element gateway for WooCommerce. Displays all payment methods enabled in your Stripe Dashboard automatically — no per-method configuration required.
Features
- Payment Element — single unified UI that shows every payment method enabled in your Stripe Dashboard (cards, Bizum, MB Way, Klarna, Revolut Pay, Multibanco, and more)
- Express Checkout Element — Apple Pay and Google Pay buttons via the
[ctstripe_express_checkout]shortcode, placeable on any page (cart, product, landing page) - Payment Method Configuration — supports
pmc_…profiles for fine-grained control over which methods appear - Webhook handler — processes
payment_intent.succeeded,payment_intent.payment_failed,payment_intent.canceledfor asynchronous methods (Klarna, bank transfers, etc.) - Apple Pay domain verification — serves the
.well-knownfile automatically - Refund support — partial and full refunds from the WooCommerce order screen
- Appearance customisation — theme, colours, font, border radius and custom CSS rules configurable from the admin panel
- No Stripe PHP SDK required — uses the WordPress HTTP API
Requirements
- WordPress 6.3+
- WooCommerce 8.0+
- PHP 7.4+
- A Stripe account (live or test mode)
Installation
- Upload the
carttrigger-stripefolder to/wp-content/plugins/. - Activate the plugin through Plugins in WordPress admin.
- Go to WooCommerce → Settings → Payments → CartTrigger Stripe.
- Enter your Publishable Key, Secret Key, and Webhook Secret.
- Optionally enter a Payment Method Configuration ID (
pmc_…) to use a specific Stripe profile. - Go to Settings → Permalinks and click Save to flush rewrite rules.
- In the Stripe Dashboard, create a webhook pointing to:
https://yoursite.com/wc-api/ctstripe_webhookEvents to listen for:
payment_intent.succeeded,payment_intent.payment_failed,payment_intent.canceled
Express Checkout Shortcode
Place Apple Pay / Google Pay buttons anywhere with:
[ctstripe_express_checkout]
Available attributes:
| Attribute | Default | Description |
|---|---|---|
id |
auto-generated | Stable HTML ID for the container |
class |
— | CSS class added to the wrapper |
style |
— | Inline style added to the wrapper |
notice |
Se utilizarán los datos guardados… |
Informational text shown outside the checkout page |
checkout_link |
Para otros datos, ve al checkout. |
Link text pointing to the checkout page |
Example with stable ID (recommended to avoid issues after fragment refresh):
[ctstripe_express_checkout id="ctstripe-ece-cart" style="margin-bottom:24px;"]
Apple Pay Domain Verification
The plugin automatically serves the Apple Pay domain association file at /.well-known/apple-developer-merchantid-domain-association.
- Go to WooCommerce → Settings → Payments → CartTrigger Stripe → Apple Pay domain verification.
- Paste the content of the verification file. If Stripe did not generate it for your account, use the default file hosted by Stripe:
https://stripe.com/files/apple-pay/apple-developer-merchantid-domain-association - Save settings — the plugin serves the file automatically at the correct path.
- In the Stripe Dashboard go to Settings → Payment methods → Apple Pay and register your domain.
Changelog
See readme.txt.
License
GPL-2.0-or-later — see LICENSE.