Integrations

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

  1. Go to Settings → Integrations → Payment Gateways
  2. Select the gateway to configure
  3. Enter your credentials
  4. Enable Test Mode first to verify (if available)
  5. Click Save

Supported Gateways

SSLCommerz (Bangladesh - Recommended)

Accepts: Visa, Mastercard, bKash, Nagad, Rocket, bank transfer, and 20+ methods.

FieldDescription
Store IDYour SSLCommerz Store ID
Store PasswordYour SSLCommerz Store Password
ModeSandbox (testing) or Live (production)

Register at sslcommerz.com to get your credentials.

bKash Direct

For direct bKash integration:

FieldDescription
App KeybKash merchant app key
App SecretbKash merchant app secret
UsernameMerchant username
PasswordMerchant password
ModeSandbox or Live

Stripe (International)

Accepts: Visa, Mastercard, American Express, and international cards.

FieldDescription
Publishable KeyStarts with pk_
Secret KeyStarts with sk_
ModeTest 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

  1. Set the gateway to Sandbox / Test mode
  2. Use test credentials provided by the gateway
  3. Make a test payment
  4. Verify the payment appears in your dashboard
  5. Check that the student got access
  6. 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

IssueSolution
"Payment failed"Check if credentials are correct. Try sandbox mode first
Student not enrolled after paymentCheck webhook URL configuration in gateway dashboard
Wrong amountVerify course price settings
Gateway not showing at checkoutEnsure the gateway is enabled in settings

Related Articles

payment gatewaySSLCommerzbKashNagadStripeonline paymentsetup