Description
Complete WordPress/WooCommerce plugin for gift cards, store credits, and coupon management integrated with Streamline POS.
Features
🎁 Gift Cards
- Auto-generated card numbers (GC-XXXX-XXXX-XXXX)
- E-gift cards with automatic email delivery
- Physical gift cards for in-store printing
- Balance tracking and transaction history
- Expiration date support
- Beautiful branded HTML emails
- Customer account integration – Link gift cards to accounts
- Combine cards – Merge multiple gift cards into one
- Edit functionality – Modify balance, status, notes from admin
- Import/Export – Bulk operations via CSV
💰 Store Credits
- Customer balance tracking
- Add/deduct credits easily
- Refund to store credit
- Full transaction history
- Order associations
- Import/Export – Bulk credit operations
🎟️ Coupons
- Uses WooCommerce coupons
- Integrated into POS Extensions tab
📦 Import/Export
- Export all gift cards to CSV
- Export all store credits to CSV
- Import gift cards from CSV (with template)
- Import store credits from CSV (with template)
- Download pre-formatted templates
- Validation and error reporting
👤 Customer Features
- View all gift cards in “My Account”
- Link received gift cards to account
- Combine multiple cards into one
- Check balances and transaction history
- Remove applied gift cards from cart
🔌 POS Integration
- Extensions tab with sub-tabs
- Store credit display in customer profile
- Gift card payment at checkout
- Permission management
Requirements
- WordPress 5.0+
- WooCommerce 5.0+
- PHP 7.4+
Database Tables
Created automatically on activation:
– wp_streamline_gift_cards – Gift card data
– wp_streamline_gift_card_transactions – Transaction history
– wp_streamline_store_credits – Store credit transactions
REST API Endpoints
Gift Cards
POST /wp-json/sl-gcsc/v1/gift-cards/validatePOST /wp-json/sl-gcsc/v1/gift-cards/createPOST /wp-json/sl-gcsc/v1/gift-cards/applyGET /wp-json/sl-gcsc/v1/gift-cards/balance/:number
Store Credits
GET /wp-json/sl-gcsc/v1/store-credit/balance/:customer_idGET /wp-json/sl-gcsc/v1/store-credit/history/:customer_idPOST /wp-json/sl-gcsc/v1/store-credit/addPOST /wp-json/sl-gcsc/v1/store-credit/apply
Usage
Admin Menu Pages
Navigate to Gift Cards & Credits in WordPress admin:
- Dashboard – Overview of gift cards and store credits
- Gift Cards – View all gift cards
- Edit – Modify balance, status, notes, recipient
- Combine – Transfer balance between cards
- Create Physical Card – Generate new physical gift cards
- Store Credits – View all customer store credits
- Add Store Credit – Add credits to customer accounts
- Reports – View gift card and store credit analytics
- Settings – Configure email templates and URLs
- Import/Export – Bulk operations
- Export gift cards to CSV
- Export store credits to CSV
- Import from CSV with templates
Customer Account Pages
Customers can access at My Account My Gift Cards:
- View all their gift cards
- Check balances and transaction history
- Link a gift card – Add received cards to account
- Combine – Merge multiple cards into one
- Remove applied gift cards from cart
Cart & Checkout
- Apply gift cards on cart page
- Apply gift cards on checkout page
- Remove applied gift cards with one click
- $0 total notice when fully covered
- Session-based persistence
Create Physical Gift Card
`php
$gift_card_id = SGCSC_Gift_Card::create([
‘initial_balance’ => 100.00,
‘is_physical’ => true
]);
`
Add Store Credit
`php
SGCSC_Store_Credit::add($customer_id, 25.00, [
‘reason’ => ‘Compensation’,
‘notes’ => ‘Issue #1234’
]);
`
Validate Gift Card
`php
$result = SGCSC_Gift_Card::validate(‘GC-XXXX-XXXX-XXXX’);
`
Creating E-Gift Card Products
- Products Add New
- Product Type: Gift Card
- Set price
- Publish
Customers can purchase and recipient receives email automatically!
Support
Check the included guides:
– COMPLETE-SETUP-GUIDE.md – Full setup instructions
– POS-INTEGRATION-CODE.js – POS integration code
– COMPLETE-INTEGRATION-GUIDE.md – Detailed integration
Version
1.0.4
Author
Streamline Diving — streamlinediving.com/plugins
Screenshots
Installation
- Upload the
sl-gift-cards-store-creditsfolder to/wp-content/plugins/ - Go to WordPress Admin Plugins
- Find “SL Gift Cards & Store Credits”
- Click “Activate”
- Refresh the page
- Look for “Gift Cards” menu in WordPress sidebar
Reviews
Contributors & Developers
“SL Gift Cards & Store Credits” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “SL Gift Cards & Store Credits” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.11
- Fixed double store credit deduction on POS orders
- Fixed double store credit/gift card restoration on POS returns
- Added CSV exports to Reports page (GC transactions, gift cards, store credits)
- Added customer-specific exports from GC Transaction History and Customer Lookup
- Added multi-customer picker when search matches multiple customers
- Fixed HTML appearing in CSV export files
1.0.8
- Security: Added nonce verification to gift card and store credit checkout handlers
- Security: Added nonce verification to admin download template and clear gift card URL handlers
- Security: Replaced wp_redirect with wp_safe_redirect throughout
- Security: Wrapped all echo output with appropriate escaping functions
- Code: Bundled Chart.js locally, removed remote CDN dependency
- Code: Replaced inline script tag with wp_add_inline_script and wp_localize_script
- Code: Renamed main plugin class to SGCSC_Plugin for consistent prefixing
- Code: Removed debug error_log calls
- Code: Fixed Text Domain header to match plugin slug
1.0.4 — February 2026
- Added plugin row meta links: Visit plugin site, View ReadMe, View Details, User Guide
- Added
user-guide.html,readme.html,readme.pdf - Minor stability improvements and code cleanup
1.0.3
- Added customer self-service card combining from My Account
- Added admin edit functionality for gift card balance, status, and notes
- Improved CSV import validation and error reporting
1.0.2
- Added bulk import/export for gift cards and store credits
- Added pre-formatted CSV templates with download links
- Added customer-facing gift card linking from My Account
1.0.1
- Added POS customer profile store credit display and “Use Credit” modal
- Added POS gift card payment input at checkout
- Added REST API endpoints for POS integration
1.0.0
- Initial release













