How to Setup Payment Gateways
Configure SSLCommerz, bKash, Nagad, Stripe, and other payment gateways for online course payments
How to Setup Payment Gateways
Enable online payments so students can pay directly from your website or app using local and international payment methods.
Setting Up a Payment Gateway
- Go to Settings → Integrations → Payment Gateways
- Select the gateway to configure
- Enter your credentials
- Enable Test Mode first to verify (if available)
- Click Save
Supported Gateways
SSLCommerz (Bangladesh - Recommended)
Accepts: Visa, Mastercard, bKash, Nagad, Rocket, bank transfer, and 20+ methods.
| Field | Description |
|---|---|
| Store ID | Your SSLCommerz Store ID |
| Store Password | Your SSLCommerz Store Password |
| Mode | Sandbox (testing) or Live (production) |
Register at sslcommerz.com to get your credentials.
bKash Direct
For direct bKash integration:
| Field | Description |
|---|---|
| App Key | bKash merchant app key |
| App Secret | bKash merchant app secret |
| Username | Merchant username |
| Password | Merchant password |
| Mode | Sandbox or Live |
Stripe (International)
Accepts: Visa, Mastercard, American Express, and international cards.
| Field | Description |
|---|---|
| Publishable Key | Starts with pk_ |
| Secret Key | Starts with sk_ |
| Mode | Test or Live |
Get your keys from dashboard.stripe.com/apikeys
How Online Payments Work
Student clicks "Enroll" on your website
↓
Redirected to payment gateway
↓
Completes payment (card, bKash, etc.)
↓
Gateway sends confirmation to Course37
↓
Student automatically enrolled in course
↓
Receipt generated and sent
The entire process is automated — no manual intervention needed.
Testing Before Going Live
- Set the gateway to Sandbox / Test mode
- Use test credentials provided by the gateway
- Make a test payment
- Verify the payment appears in your dashboard
- Check that the student got access
- Switch to Live mode when satisfied
Important: Always test with sandbox/test mode before switching to live. Never use real money for testing.
Multiple Gateways
You can enable multiple payment gateways simultaneously:
- Students see all enabled gateways as options at checkout
- Different gateways serve different audiences (local vs. international)
- Revenue from all gateways is consolidated in your payment analytics
Troubleshooting
| Issue | Solution |
|---|---|
| "Payment failed" | Check if credentials are correct. Try sandbox mode first |
| Student not enrolled after payment | Check webhook URL configuration in gateway dashboard |
| Wrong amount | Verify course price settings |
| Gateway not showing at checkout | Ensure the gateway is enabled in settings |
Related Articles
- How to Add Payment — Manual payment recording
- How to See Payment Analytics — Revenue tracking
- How to Setup Installments — Payment plans
- How to Enable the Website — Students pay through your website
payment gatewaySSLCommerzbKashNagadStripeonline paymentsetup
More in Integrations
How to Setup SMTP (Email)
Configure SMTP email settings with Gmail, SendGrid, SES, or custom server for transactional emails and notifications
How to Setup SMS
Configure SMS providers (BulkSMSBD, Twilio) for OTP verification, notifications, and marketing messages
How to Setup AI Providers
Configure OpenAI, Gemini, and other AI providers for AI-powered question generation, grading, and content creation
How to Setup Other Integrations
Configure Cloudflare R2 storage, CDN, and other third-party service integrations