Polar WooCommerce Payment Gateway by ALT
Accept payments via Polar.sh Checkout for your WooCommerce store.
- Complete Polar.sh Checkout API integration
- Subscription support – Sell recurring products
- Dynamic pricing with ad-hoc prices
- Multiple product mapping modes
- Per-product Polar configuration
- Webhook support for payment confirmation
- Multi-currency support
- Debug logging
Requirements
- WordPress 5.8+
- WooCommerce 5.0+
- PHP 7.4+
- Polar.sh account with Access Token
Installation
- Upload plugin ZIP via Plugins → Add New → Upload Plugin
- Activate the plugin
- Go to WooCommerce → Settings → Payments → Polar
Quick Setup
Step 1: Create Product on Polar
- Go to https://polar.sh → Products → Create Product
- Set price type to “Pay what you want” or “Custom”
- Copy the Product ID (format:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
Step 2: Get Access Token
- Go to Polar Dashboard → Settings → API Tokens
- Create new token with checkout permissions
- Copy the Access Token
Step 3: Configure Plugin
- WooCommerce → Settings → Payments → Polar → Manage
- Enter:
- Polar Access Token: Your API token
- Product Mapping: Select “Single Product + Dynamic Pricing”
- Default Polar Product ID: Paste Product ID from Step 1
- Save changes
Product Mapping Modes
Single Product + Dynamic Pricing (Recommended)
Uses one Polar Product with dynamically calculated prices based on cart total.
Best for: Most WooCommerce stores
Single Product
Uses one Polar Product with fixed catalog price.
Best for: Fixed-price subscriptions
From Product Meta Field
Maps each WooCommerce product to a Polar Product using _polar_product_id meta field.
Best for: Advanced setups with multiple Polar products
Webhook Configuration
- Polar Dashboard → Settings → Webhooks
- Add URL:
https://yoursite.com/wc-api/wc_polar_gateway - Select event:
checkout.completed
Translation
The plugin is translation-ready with English as default.
Vietnamese translation included:
- File:
languages/apwg-vi_VN.po(editable) - File:
languages/apwg-vi_VN.mo(compiled)
The plugin automatically switches to Vietnamese when WordPress language is set to Vietnamese.
Adding New Languages
- Copy
languages/apwg-vi_VN.potoapwg-{locale}.po - Translate using Poedit or text editor
- Compile to .mo file
Troubleshooting
Error 422: UUID parsing error
Solution: Enter a valid Polar Product ID in settings. Create a product on Polar.sh first.
Access Token not configured
Solution: Enter your Polar Access Token in plugin settings.
Debug Logging
Enable in settings, then check WooCommerce → Status → Logs → polar-* file
Support
- Documentation: https://polar.sh/docs
- Polar Support: [email protected]
License
GPL v2 or later
Changelog
1.1.1 (2024-12-22)
- 🔧 Fixed Product ID format in all documentation
- 🔧 Updated examples to use correct UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
- 📚 Added PRODUCT-ID-FORMAT.md guide
- 🔒 Removed real Product IDs from examples
1.1.0 (2024-12-22)
- ✨ NEW: Subscription products support
- ✨ NEW: Product meta box for per-product Polar configuration
- ✨ NEW: Enable subscription checkbox on products
- ✨ NEW: Polar Product ID field per product
- ✨ NEW: Mixed cart support (subscription + one-time)
- ✨ NEW: Subscription webhook handling
- 🔧 Enhanced payment logic with subscription priority
- 🔧 Improved webhook matching
- 📚 Added SUBSCRIPTION-GUIDE.md
- 🌐 7 new Vietnamese translations
1.0.0 (2024-12-21)
- Initial release
- Polar Checkout API integration
- Dynamic pricing support
- Webhook handling
- Vietnamese translation
Subscription Products
The plugin supports selling products as subscriptions.
Quick Setup:
- Create a recurring Product on Polar.sh
- Edit your WooCommerce product
- Enable “Polar Subscription” in the Polar Payment Settings meta box
- Enter the Polar Product ID
- Save









Reviews
There are no reviews yet.