Supported Payment Gateways
TelemanAI supports multiple payment gateways for subscription billing and pay-as-you-go services. Choose the gateway that best fits your region and business needs.Available Payment Gateways
Stripe
International credit card processing
PayPal
Global payment platform
Razorpay
India’s leading payment gateway
Flutterwave
African payment solutions
Paystack
African payment infrastructure
Instamojo
Indian payment solution
Braintree
PayPal-owned gateway
Mollie
European payment methods
Square
All-in-one payment solution
SSLCommerz
Bangladesh payment gateway
Squad
Nigerian payment processing
Gateway Comparison
| Gateway | Best For | Currencies | Test Mode | Integration |
|---|---|---|---|---|
| Stripe | Global | 135+ currencies | Yes | API-based |
| PayPal | Global | 25+ currencies | Sandbox | OAuth/API |
| Razorpay | India | INR | Yes | API-based |
| Flutterwave | Africa | Multiple | Yes | API-based |
| Paystack | Africa | NGN, ZAR, GHS | Yes | API-based |
| Instamojo | India | INR | Yes | API-based |
| Braintree | Global | Multiple | Yes | SDK |
| Mollie | Europe | EUR, GBP, USD | Yes | API-based |
| Square | US, UK, Canada | Multiple | Sandbox | OAuth/API |
| SSLCommerz | Bangladesh | BDT | Sandbox | API-based |
| Squad | Nigeria | NGN, USD | Sandbox | API-based |
Configuration Overview
All payment gateways are configured through environment variables in the.env file.
Environment Variables by Gateway
Stripe
PayPal
Razorpay
Flutterwave
Paystack
Instamojo
Braintree
Mollie
Square
SSLCommerz
Squad
Choosing a Payment Gateway
Consider Your Region
Choose a gateway with strong presence in your target market:
- North America/Europe: Stripe, PayPal, Braintree
- Africa: Flutterwave, Paystack, Squad
- India: Razorpay, Instamojo
- Bangladesh: SSLCommerz
- Europe: Mollie, Stripe
Check Currency Support
Ensure the gateway supports your required currencies:
- Multi-currency: Stripe, PayPal, Braintree
- Local currency focused: Razorpay (INR), Paystack (NGN, ZAR)
Evaluate Fees
Compare transaction fees and setup costs:
- Stripe: ~2.9% + $0.30 per transaction
- PayPal: ~2.9% + $0.30 per transaction
- Razorpay: ~2% per transaction (India)
- Flutterwave: ~3.8% per transaction (Africa)
Enabling a Gateway
Configure in Dashboard
- Log in to TelemanAI admin panel
- Navigate to Settings → Payment Gateways
- Select the gateway you want to enable
- Enter your credentials
- Choose test or production mode
- Click Save Configuration
Payment Flow
TelemanAI follows a standard payment flow:Webhook Configuration
Most gateways require webhook endpoints for payment notifications:| Gateway | Webhook URL | Events |
|---|---|---|
| Stripe | /api/stripe/webhook | payment_intent.succeeded |
| PayPal | /api/paypal/webhook | PAYMENT.CAPTURE.COMPLETED |
| Razorpay | /api/razorpay/webhook | payment.captured |
| Flutterwave | /api/flutterwave/webhook | charge.completed |
| Paystack | /api/paystack/webhook | charge.success |
Replace
/api/ with your actual TelemanAI installation URL.Database Schema
Payment transactions are stored in thepayment_histories table:
Testing Payments
Test Cards by Gateway
Stripe:- Success:
4242 4242 4242 4242 - Decline:
4000 0000 0000 0002 - CVV: Any 3 digits
- Expiry: Any future date
- Use PayPal Sandbox accounts
- Create test buyer/seller accounts at developer.paypal.com
- Card:
4111 1111 1111 1111 - CVV: Any 3 digits
- Expiry: Any future date
- Card:
5531 8866 5214 2950 - CVV:
564 - Expiry:
09/32 - OTP:
12345
Security Best Practices
PCI Compliance
TelemanAI is designed to minimize PCI compliance requirements:- Credit card data never touches your server
- Payments processed directly on gateway
- No card storage in your database
- Tokens used for recurring payments
Most integrations use hosted payment pages or client-side tokenization to maintain PCI compliance.
Troubleshooting
Gateway Not Appearing
Gateway Not Appearing
Problem: Gateway doesn’t show on checkout pageSolution:
- Ensure the gateway is enabled:
STRIPE="YES" - Check credentials are correctly configured
- Verify the gateway is activated in settings
- Clear application cache:
php artisan cache:clear
Payment Fails
Payment Fails
Problem: Payment always failsSolution:
- Check you’re using test credentials in test mode
- Verify API keys are correct (no extra spaces)
- Test with known working test cards
- Check gateway status page for outages
- Review gateway dashboard for specific errors
Webhooks Not Received
Webhooks Not Received
Problem: Payment succeeds but subscription not activatedSolution:
- Verify webhook URL is publicly accessible
- Check webhook endpoint in gateway settings
- Ensure SSL certificate is valid
- Review webhook logs in gateway dashboard
- Test webhook with gateway’s testing tool
Currency Mismatch
Currency Mismatch
Problem: Wrong currency displayedSolution:
- Check
STRIPE_CURRENCYor similar environment variable - Ensure package prices match the currency
- Verify gateway supports the currency
- Update currency settings in admin panel
Multiple Gateway Setup
You can enable multiple gateways simultaneously:API Reference
Payment gateway services implement thePaymentGatewayInterface:
StripeGateway.php- Stripe implementationPayPalGateway.php- PayPal implementationRazorpayGateway.php- Razorpay implementation
Next Steps
Stripe Setup
Configure Stripe payment gateway
PayPal Setup
Configure PayPal payment gateway
Razorpay Setup
Configure Razorpay payment gateway
Subscription Plans
Configure subscription plans and pricing