설명
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.
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: [email protected]
For Tutor LMS: Tutor support
Credits
Developed by Hasin Hayder
Based on Tutor LMS Payment Gateway framework
SSLCommerz API integration
설치
- Upload the plugin folder to
/wp-content/plugins - Activate the plugin through the WordPress admin
- Ensure Tutor LMS is installed and activated
- Go to Tutor LMS > Settings > Payments
- Enable SSLCommerz and configure settings
Configuration
Step 1: Get SSLCommerz Credentials
Sandbox (Testing):
1. Register at https://developer.sslcommerz.com/registration/
2. Receive Store ID and Store Password via email
Live (Production):
1. Apply for merchant account at https://sslcommerz.com/
2. Complete KYC verification
3. Get Store ID and Store Password from merchant panel
Step 2: Configure Plugin
- Go to Tutor LMS > Settings > Payments
- Find SSLCommerz in payment gateways
- Enable and configure:
- Environment: Sandbox for testing, Live for production
- Store ID: Your SSLCommerz Store ID
- Store Password: Your Store Password (not login password)
- IPN URL: Copy this URL
Step 3: Configure SSLCommerz Panel
- Login to SSLCommerz merchant panel
- Go to IPN Settings
- Add the IPN URL from plugin settings
- Save settings
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.
후기
이 플러그인에 대한 평가가 없습니다.
기여자 & 개발자
변경이력
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
