« Back to Add-on Library
Stripe Keys
Stripe Keys provides a centralized, secure management interface for Stripe API credentials. Store and toggle between Live (production) and Test (development) key sets with a single environment switch. Global helper functions provide instant access to configured keys from anywhere in your WordPress installation.
### Key Features
- Environment Toggle - Switch between Live and Test modes instantly
- Key Management - Store publishable and secret keys securely
- Global Helper Function - Access keys from anywhere via `get_stripe_keys()`
- Test Mode Support - Easy development/testing without key swaps
- Live Mode Switch - Toggle production keys with confirmation
- Secure Storage - Keys encrypted in WordPress options
- Configuration Interface - Simple admin settings page
### Configuration Options
- Live API Keys - Production publishable and secret keys
- Test API Keys - Development publishable and secret keys
- Environment Selection - Live or Test mode toggle
- Key Display - Partial key visibility (masked for security)
- Update History - Track when keys were last modified
- Status Indicator - Shows current active mode
### Administration Interface
- Settings Tab - Dedicated admin page
- Key Input Fields - Separate sections for Live and Test keys
- Mode Selection - Radio button to toggle environment
- Save Confirmation - Verification when switching to Live mode
- Key Masking - Hide sensitive data while in use
- Help Text - Links to Stripe Dashboard for key retrieval
### Requirements
✓ CWP Snippets Pro plugin installed
✓ Stripe account (https://dashboard.stripe.com)
✓ WordPress 5.8 or higher
✓ PHP 7.4 or higher
### Global Access Pattern
```php
// Get configured Stripe keys from anywhere
$stripe_keys = get_stripe_keys();
// Access individual keys
$publishable_key = $stripe_keys['publishable_key'];
$secret_key = $stripe_keys['secret_key'];
$mode = $stripe_keys['mode']; // 'live' or 'test'
```
### Security Features
- Keys stored securely in WordPress options
- Partial display masking
- Confirmation on production mode changes
- Capability checking (manage_options)
- Sanitized input handling
- No keys in logs or debug output
### Ideal For
- Development and testing workflows
- Multiple environment management
- Team collaboration on Stripe integration
- Secure key storage in WordPress
- Any Stripe-integrated feature
- Payment processing systems
- Subscription management
### What's Included
✓ Admin settings interface
✓ Live and Test key management
✓ Environment toggle
✓ `get_stripe_keys()` global helper function
✓ Secure key storage
✓ Partial key masking
✓ Links to Stripe Dashboard
✓ Configuration documentation
---
Essential Stripe credential management for WordPress, supporting development and production workflows with a single function call.
### Key Features
- Environment Toggle - Switch between Live and Test modes instantly
- Key Management - Store publishable and secret keys securely
- Global Helper Function - Access keys from anywhere via `get_stripe_keys()`
- Test Mode Support - Easy development/testing without key swaps
- Live Mode Switch - Toggle production keys with confirmation
- Secure Storage - Keys encrypted in WordPress options
- Configuration Interface - Simple admin settings page
### Configuration Options
- Live API Keys - Production publishable and secret keys
- Test API Keys - Development publishable and secret keys
- Environment Selection - Live or Test mode toggle
- Key Display - Partial key visibility (masked for security)
- Update History - Track when keys were last modified
- Status Indicator - Shows current active mode
### Administration Interface
- Settings Tab - Dedicated admin page
- Key Input Fields - Separate sections for Live and Test keys
- Mode Selection - Radio button to toggle environment
- Save Confirmation - Verification when switching to Live mode
- Key Masking - Hide sensitive data while in use
- Help Text - Links to Stripe Dashboard for key retrieval
### Requirements
✓ CWP Snippets Pro plugin installed
✓ Stripe account (https://dashboard.stripe.com)
✓ WordPress 5.8 or higher
✓ PHP 7.4 or higher
### Global Access Pattern
```php
// Get configured Stripe keys from anywhere
$stripe_keys = get_stripe_keys();
// Access individual keys
$publishable_key = $stripe_keys['publishable_key'];
$secret_key = $stripe_keys['secret_key'];
$mode = $stripe_keys['mode']; // 'live' or 'test'
```
### Security Features
- Keys stored securely in WordPress options
- Partial display masking
- Confirmation on production mode changes
- Capability checking (manage_options)
- Sanitized input handling
- No keys in logs or debug output
### Ideal For
- Development and testing workflows
- Multiple environment management
- Team collaboration on Stripe integration
- Secure key storage in WordPress
- Any Stripe-integrated feature
- Payment processing systems
- Subscription management
### What's Included
✓ Admin settings interface
✓ Live and Test key management
✓ Environment toggle
✓ `get_stripe_keys()` global helper function
✓ Secure key storage
✓ Partial key masking
✓ Links to Stripe Dashboard
✓ Configuration documentation
---
Essential Stripe credential management for WordPress, supporting development and production workflows with a single function call.
Downloads
- Download v1.0.0 stripe-keys-1.0.0.zip