Integrations & API
Payment gateway setup (Razorpay/Stripe)
5 minutes read time Difficulty: intermediate
Payment gateway setup
Accept payments directly in WhatsApp conversations by sending payment links.
Supported gateways
| Gateway | Regions | Currencies |
|---|---|---|
| Razorpay | India | INR |
| Stripe | Global | USD, EUR, GBP, + 135 more |
Setting up Razorpay
Prerequisites
- A Razorpay account (razorpay.com)
- API Key ID and Key Secret from Razorpay Dashboard
Configuration
- Go to Settings → Integrations (or contact admin)
- Find Razorpay section
- Enter:
- Key ID — From Razorpay Dashboard → Settings → API Keys
- Key Secret — The secret key (shown once when generated)
- Save
Testing
- Use Razorpay's Test Mode keys first
- Send a test payment link to yourself
- Verify the payment flow works end-to-end
- Switch to Live Mode keys for production
Setting up Stripe
Prerequisites
- A Stripe account (stripe.com)
- Publishable Key and Secret Key
Configuration
- Go to Settings → Integrations
- Find Stripe section
- Enter:
- Publishable Key —
pk_live_...orpk_test_... - Secret Key —
sk_live_...orsk_test_...
- Publishable Key —
- Save
Sending payment links in chat
- Open a conversation
- Click the 💳 Payment button in the header
- Fill in:
- Amount — Payment amount
- Currency — INR, USD, etc.
- Description — What the payment is for (e.g., "Order #123")
- Click "Create & Send"
The customer receives a clickable payment link in WhatsApp. When they pay:
- You receive a notification
- The payment status updates in the conversation
- A receipt is generated
Payment status tracking
| Status | Meaning |
|---|---|
| Created | Link sent, awaiting payment |
| Paid | Customer completed payment ✅ |
| Failed | Payment attempt failed |
| Expired | Link expired (configurable timeout) |
Tips
- Include order details — Clear descriptions reduce payment disputes
- Set expiry — Payment links should expire after 24-48 hours
- Follow up — If not paid within a few hours, send a reminder
- Test first — Always test with test mode keys before going live
- Keep records — Payment IDs are logged for reconciliation
Security
- API keys are encrypted at rest in AIsoule
- Payment processing happens directly between customer and gateway
- AIsoule never stores card numbers or sensitive payment data
- All payment links use HTTPS
Related Articles
Was this guide helpful?
Your feedback helps us make these guides better for everyone.