
Seamlessly integrate SSLCommerz with Tutor LMS for secure, multi-currency course payments via cards, mobile banking, and more.
TS Pay integrates SSLCommerz, Bangladesh’s leading payment gateway, with Tutor LMS to enable seamless course purchases. Accept payments from local and international customers using cards, mobile banking, and internet banking.
Website: https://hasinhayder.github.io/tutor-sslcommerz/
Features
- One-time payments for course purchases
- Multi-currency support (BDT, USD, EUR, GBP, SGD, INR, MYR)
- Sandbox and Live environments for testing and production
- IPN (Instant Payment Notification) integration for automatic order updates
- Secure payment processing with hash validation and transaction verification
- All SSLCommerz payment methods (Cards, Mobile Banking, Internet Banking)
- WordPress HTTP API for secure external communications
- Comprehensive error handling and logging
Requirements
- WordPress 5.3 or higher
- PHP 7.4 or higher
- Tutor LMS (Free version)
- SSLCommerz merchant account
How It Works
- Student initiates course purchase
- Plugin sends payment request to SSLCommerz
- Student completes payment on SSLCommerz secure page
- SSLCommerz sends IPN notification to your site
- Plugin validates transaction and updates order status
- Student gains course access upon successful payment
Security Features
- Hash verification for callback signatures
- Transaction validation through SSLCommerz API
- Amount verification to prevent tampering
- SSL-secured API communications
Support
Website: https://hasinhayder.github.io/tutor-sslcommerz/
For plugin issues: GitHub Issues
For SSLCommerz API: support@sslcommerz.com
For Tutor LMS: Tutor support
Credits
Developed by Hasin Hayder
Based on Tutor LMS Payment Gateway framework
SSLCommerz API integration
FAQ
Do I need a SSLCommerz account?
Yes, you need a merchant account. Sign up at https://sslcommerz.com/ for live or https://developer.sslcommerz.com/registration/ for sandbox.
Does this support subscriptions?
No, only one-time payments are supported. SSLCommerz doesn’t provide native recurring payment functionality.
Can I test before going live?
Yes, use Sandbox environment with test credentials. Test cards available in SSLCommerz documentation.
What currencies are supported?
BDT (primary), USD, EUR, GBP, SGD, INR, MYR. Non-BDT currencies are auto-converted to BDT at current rates.
How do I troubleshoot payment issues?
- Verify Store ID and Password are correct
- Ensure IPN URL is configured in SSLCommerz panel
- Check environment settings (Sandbox vs Live)
- Enable WordPress debug logging
- Verify SSL certificate on your site
What payment methods are supported?
All SSLCommerz methods: Credit/Debit Cards, Mobile Banking (bKash, Nagad, Rocket), Internet Banking, and others available in Bangladesh.
Is there a transaction fee?
Transaction fees depend on your SSLCommerz merchant agreement. Contact SSLCommerz for pricing details.
Can I process refunds?
Refunds must be processed manually through the SSLCommerz merchant panel. The plugin doesn’t handle automatic refunds.
ChangeLog
1.1.0
- Renamed: Plugin has been renamed to TSPay (Tutor SSLCommerz Pay) due to WordPress guidelines on trademark usage
- Improvement: Code cleanup and optimization
1.0.7
- Security: Added comprehensive input sanitization to prevent XSS attacks
- Security: Implemented proper data validation for all user inputs
- Security: Enhanced hash verification with sanitized inputs
- Improvement: Enhanced error handling and logging
- Improvement: Code organization and structure improvements
1.0.6
- Feature: Added complete internationalization (i18n) support
- Feature: Created translation template (.pot file)
- Improvement: Added languages directory for translation files
- Improvement: Updated plugin constants and code structure
- Improvement: Enhanced documentation with translation information
1.0.5
Minor Fixes
1.0.4
Minor Fixes
1.0.3
- Improvement: Replaced cURL with WordPress HTTP API for better compatibility
- Improvement: Enhanced error handling and JSON validation
- Improvement: More descriptive error messages
1.0.2
- Security: Fixed fatal errors in IPN handling
- Security: Improved validation for webhook requests
- Improved: Better error logging and debugging
1.0.1
- Fixed: Corrected payment amount sending (was sending 0)
- Fixed: Updated to use correct Tutor LMS field names
- Improved: Added payment amount validation
1.0.0
- Initial release
- One-time payment support
- Sandbox and Live environments
- IPN integration
- Multi-currency support
- Transaction validation