Skip to main content
The Telegram Subscription Manager displays bank account details to users so they can make payments. These details are configured in the src/lib/config.ts file.

Current Configuration

The bank details shown to users are:
src/lib/config.ts
export const BANK_DETAILS = {
  bankName: 'PAYSTACK TITAN',
  accountNumber: '9740079311',
  accountName: 'learnrithmai/learnrithm ai'
}
These details are displayed when users send the /start or /pay commands to the bot.

Bank Details Properties

bankName
string
required
The name of the bank where the account is held.Example: 'PAYSTACK TITAN', 'GTBank', 'Access Bank'
accountNumber
string
required
The 10-digit bank account number where users should send payments.Format: '0000000000' (10 digits as a string)
Always use a string, not a number, to preserve leading zeros.
accountName
string
required
The registered name on the bank account.This helps users verify they’re sending money to the correct account.

Updating Bank Details

To change the bank account where you receive payments:

1. Open Configuration File

Edit src/lib/config.ts in your project:
# Open the file in your editor
code src/lib/config.ts

2. Update the Details

Replace the values with your bank information:
src/lib/config.ts
export const BANK_DETAILS = {
  bankName: 'YOUR BANK NAME',      // e.g., 'First Bank'
  accountNumber: '1234567890',     // Your 10-digit account number
  accountName: 'Your Business Name' // Registered account name
}
export const BANK_DETAILS = {
  bankName: 'GTBank',
  accountNumber: '0123456789',
  accountName: 'VIP Signals Ltd'
}

3. Deploy Changes

After updating the configuration:
# Commit your changes
git add src/lib/config.ts
git commit -m "Update bank account details"
git push

# Vercel will automatically redeploy

How Users See Bank Details

When users start a conversation with your bot, they receive a message like:
💰 Payment Information

━━━━━━━━━━━━━━━━━━━

📌 Bank: PAYSTACK TITAN
💳 Account Number: 9740079311
👤 Account Name: learnrithmai/learnrithm ai

━━━━━━━━━━━━━━━━━━━

After making payment, use:
/verify_basic YOUR_REFERENCE
/verify_premium YOUR_REFERENCE

Using Paystack Dedicated Accounts

Paystack offers dedicated virtual account numbers that can:
  • Accept payments 24/7
  • Automatically notify your webhook
  • Be linked to specific customers
Benefits of Paystack Dedicated Accounts:
  • Each customer can get a unique account number
  • Payments are automatically tracked
  • Reduces manual verification needs
  • Better security and audit trail
If using Paystack dedicated accounts:
  1. Create the dedicated account via Paystack API
  2. Update BANK_DETAILS with the virtual account information
  3. The account name will typically be formatted as businessname/business legal name

Additional Configuration Options

You can extend the bank details configuration with additional fields if needed:
src/lib/config.ts
export const BANK_DETAILS = {
  bankName: 'GTBank',
  accountNumber: '0123456789',
  accountName: 'VIP Signals Ltd',
  // Optional: Add more fields
  bankCode: '058',          // GTBank code
  branchName: 'Victoria Island',
  swiftCode: 'GTBINGLA'     // For international transfers
}
Additional fields won’t automatically display to users. You’ll need to update your bot message templates to include them.

Payment Provider Options

While this system uses Paystack for payment verification, you can accept payments through:
  1. Direct Bank Transfer (Current method)
    • Users transfer to your account
    • Users provide transaction reference
    • Bot verifies with Paystack API
  2. Paystack Payment Links
    • Generate unique payment links per user
    • Automated webhook notifications
    • Better tracking and analytics
  3. Paystack Dedicated Virtual Accounts
    • Unique account per customer
    • Automatic payment detection
    • No manual reference entry needed

Best Practices

Security Considerations:
  • Verify account ownership before going live
  • Test the payment flow with small amounts first
  • Monitor transactions regularly for discrepancies
  • Keep records of all configuration changes
  • Use business accounts rather than personal accounts for professionalism
User Experience Tips:
  • Use clear, recognizable account names
  • Double-check account number accuracy
  • Consider using bank name abbreviations that users recognize
  • Test that the details display correctly in the Telegram bot

Troubleshooting

Users Report Wrong Account Details

  1. Check src/lib/config.ts has the correct information
  2. Verify the changes were committed and deployed
  3. Clear any caching (restart bot if needed)
  4. Test by sending /start command to your bot

Payment Not Showing in Account

  1. Verify accountNumber is correct (check for typos)
  2. Confirm bankName matches the actual bank
  3. Ensure users are sending to the right account
  4. Check with your bank for any account restrictions

Users Can’t Verify Payments

This is related to Paystack configuration, not bank details:
  1. Verify PAYSTACK_SECRET_KEY environment variable is correct
  2. Ensure the Paystack account matches the bank account
  3. Check that users are copying the full transaction reference

Build docs developers (and LLMs) love