Setting Up Pay-Per-Minute Calling on Your Website with AtomChat and Stripe
Overview
AtomChat's Pay-Per-Minute Calling feature lets you turn audio and video calls on your website into a revenue stream. Instead of offering calls for free, you can charge visitors by the minute for time spent talking to an expert, consultant, coach, doctor, or any other service provider on your platform.
Payments are processed through Stripe, so billing is handled securely and in real time — the call is metered and the customer's card is charged automatically based on call duration and your configured rate.
This guide walks through the entire setup process end-to-end: creating and configuring your Stripe account, connecting it to AtomChat, enabling the feature, choosing how you want to charge users, and testing everything before you go live.
Before You Start
Make sure you have:
- An active AtomChat subscription and access to your AtomChat Admin Panel
- A Stripe account (free to create — see Step 1 below if you don't have one yet).
- A list of the users/experts on your platform whom you want to enable paid calling for. Please have them login to your site atleast once after you've integrated AtomChat. ONLY then, they'll be visible in your AtomChat User list (if you plan to charge per individual user).
- Your website's Terms and Conditions page URL, since it will be shown to customers before they pay.
If you already have a Stripe account with API keys handy, you can skip to Step 2. Otherwise, follow these steps first.
1.1 Sign up for Stripe
- Go to stripe.com and create an account using your business email.
- Stripe will prompt you to activate your account by providing some basic business details (business type, country, bank details for payouts, etc.).
You can start testing immediately even before this activation is complete — Stripe lets you use Test Mode right away.
1.2 Understand Test Mode vs. Live Mode
Stripe has two separate environments:
Mode | Purpose | Card charges
|
Test Mode | Simulate payments during setup and QA | No real money moves; use Stripe's test card numbers |
Live Mode | Real transactions with real customers | Actual money is charged and deposited to your bank account |
It's strongly recommended to build and verify your entire pay-per-minute flow in Test Mode first, then switch to Live Mode only once you've confirmed calls are billed correctly.
You can toggle between Test and Live mode from within your Stripe Dashboard, and AtomChat also has a corresponding Test/Live toggle (covered in Step 3) that must match the type of keys you enter.
1.3 Retrieve your Stripe API Keys
- Log in to your Stripe Dashboard.
- Click the Settings (gear icon) in the top-right corner.
- Under Personal settings, select Developers (found under "Workbench, developer tools, and more").
- On the Developers page, click Manage API keys under the API keys section.
- You'll land on the API keys page, which shows two sections:
- Restricted keys — keys with limited, specific permissions (optional, for advanced use).
- Standard keys — your main Publishable key and Secret key, with full API access.
Copy both the Publishable key and the Secret key from the Standard keys section. Note that:
- Test mode keys are prefixed with pk_test_... and sk_test_...
- Live mode keys are prefixed with pk_live_... and sk_live_...
Keep your Secret key confidential — never share it publicly or commit it to public code repositories. Only the Publishable key is safe to expose client-side.
You now have everything you need to connect Stripe to AtomChat!
Step 2: Enable Pay-Per-Minute Calling in AtomChat
- Log in to your AtomChat Admin Panel.
- Navigate to Features in the left-hand sidebar.
- Scroll down the features list until you find Pay Per Minute.
- Enable it for one-on-one (1:1) chats by clicking the person icon next to it — hovering over it shows a tooltip confirming "Add in one on one". Pay-Per-Minute is only available for individual conversations, not group chats.
Once enabled, the feature becomes available for configuration under the Monetize section.
- In the Admin Panel sidebar, go to Monetize.
- You'll see the Pay-per-minute via Stripe configuration panel. Here's what to configure:
3.1 Enable Pay-Per-Minute For
Choose whether the paid-per-minute model applies to:
- Text Chat — charge for text-based conversations.
- Calling — charge for audio/video calls.
You can select one or both, depending on what you want to monetize.
3.2 Set Per-Minute Charge For
This determines how the rate is decided, and there are three options:
Option | Description |
| Individual Users | Set a unique per-minute rate for each specific user — ideal when experts have different rates based on experience or seniority. |
Default | Set a single flat rate that applies uniformly to every user on the platform. Simplest option if all experts should charge the same amount. |
Roles (Coming Soon..!) | Set one common per-minute rate for an entire user role (e.g., all "Consultant" role users are charged the same rate). Note - this option is unavailable currently. |
Pick whichever model fits your use-case! This guide covers configuring both Individual Users (Step 5) and Default (Step 6) later on.
3.3 Payment Mode
Choose Test or Live, matching the type of Stripe keys you plan to enter:
- Use Test while you're setting up and validating the flow.
- Switch to Live only when you're ready to accept real payments.
3.4 Add Your Stripe Keys
- Secret Key: Paste the Secret key you copied from Stripe in Step 1.3.
- Publishable Key: Paste the Publishable key you copied from Stripe in Step 1.3.
Make sure the keys match the Payment Mode selected above (test keys for Test mode, live keys for Live mode) — mismatched keys will cause payment failures.
When a user initiates a paid call, AtomChat shows them a payment popup before connecting the call. Configure what appears in it:
- Terms and Conditions Link: Enter the URL to your website's Terms and Conditions page (e.g., https://yourwebsite.com/terms). This link is shown to users so they can review your policies before paying.
- Pre-set Minutes for Quick Selection: Enter comma-separated minute values (e.g., 15,20,40) that will appear as quick-select buttons in the payment popup, letting users quickly choose a call duration/package instead of typing a custom value.
- Choose Currency: Select the currency you want to receive payments in (e.g., Indian Rupee (INR), US Dollar (USD)). Important: this must match the currency configured on your Stripe account, or transactions may fail.
Step 5: Set Per-Minute Rates for Individual Users
(Only needed if you selected "Individual Users" in Step 3.2.)
Go to Users in the Admin Panel sidebar.
Find the user (expert/consultant) you want to enable paid calling for, and click Edit next to their name.
In the Edit User panel, scroll to the field labeled Amount Per Minute - Calling.
Enter the rate you want to charge for calls with this specific user.
⚠️ Important: This field must not be left as 0 or blank — a zero or empty value means the call won't be billed correctly. Always enter a positive number.
Click Update to save the change.
Repeat this for every user you want to enable individual pay-per-minute rates for
Step 6: Set a Default Rate for All Users
Only needed if you selected "Default" in Step 3.2.)
- Go back to Monetize in the Admin Panel.
- Under Set per-minute charge for, make sure Default is selected.
- In the Default amount per minute field, enter the flat rate that will be charged for calls with any user on your platform.
This is the fastest way to set up billing if all your users should charge the same per-minute rate — you don't need to configure anything per-user.
Step 7: Test the Complete Flow
Before going live, verify the setup works as expected:
- Confirm Payment Mode is set to Test in the Monetize section.
- Use one of Stripe's official test card numbers (e.g., 4242 4242 4242 4242 with any future expiry date and any CVC) to simulate a payment.
- Initiate a call with a user who has pay-per-minute enabled, and confirm:
- The payment popup appears with the correct terms link, minute options, and currency.
- The call connects only after a successful test payment.
- The correct amount is deducted based on call duration and your configured rate.
4. Check the Payment History section in the Admin Panel to confirm the test transaction is logged correctly.
Step 8: Go Live
Once you've confirmed everything works correctly in Test Mode:
- In your Stripe Dashboard, switch to Live Mode and retrieve your live Publishable and Secret keys (prefixed pk_live_ and sk_live_).
- In the AtomChat Monetize section, switch Payment Mode to Live.
- Replace the test keys with your live Stripe keys.
- Do a small real transaction yourself to confirm live billing works end-to-end, then you're ready to start earning from real customer calls.
Troubleshooting Tips
- Payments not going through: Double-check that your Payment Mode (Test/Live) matches the type of keys entered, and that the currency selected matches your Stripe account's configured currency.
- Call not billing a specific user: If using Individual Users mode, make sure the "Amount Per Minute – Calling" field for that user isn't 0 or blank.
- Popup not showing terms link: Confirm a valid, publicly accessible URL was entered in the Terms and Conditions field.
- Keys rejected: Ensure you copied the full key from Stripe's Standard Keys section without extra spaces, and that you're using Secret/Publishable keys (not Restricted keys) unless you've specifically configured permissions for a restricted key.
Summary
Step | What you do
|
1 | Create a Stripe account and retrieve Test/Live API keys
|
2 | Enable Pay-Per-Minute in AtomChat's Features section |
3 | Configure Monetize settings: chat/calling, charge model, mode, keys |
4 | Set up the payment popup: terms link, minute options, currency |
5 | Set per-minute rates (individual users or a flat default) |
6 | Test thoroughly using Stripe test cards |
7 | Switch to Live Mode and start earning |
With this setup, your website can offer a professional, secure, pay-per-minute calling experience — fully integrated with Stripe billing and manageable entirely from the AtomChat Admin Panel.