src/lib/config.ts file.
Current Configuration
The bank details shown to users are:src/lib/config.ts
These details are displayed when users send the
/start or /pay commands to the bot.Bank Details Properties
The name of the bank where the account is held.Example:
'PAYSTACK TITAN', 'GTBank', 'Access Bank'The 10-digit bank account number where users should send payments.Format:
'0000000000' (10 digits as a string)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
Editsrc/lib/config.ts in your project:
2. Update the Details
Replace the values with your bank information:src/lib/config.ts
3. Deploy Changes
After updating the configuration:How Users See Bank Details
When users start a conversation with your bot, they receive a message like: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
- Create the dedicated account via Paystack API
- Update
BANK_DETAILSwith the virtual account information - 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
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:-
Direct Bank Transfer (Current method)
- Users transfer to your account
- Users provide transaction reference
- Bot verifies with Paystack API
-
Paystack Payment Links
- Generate unique payment links per user
- Automated webhook notifications
- Better tracking and analytics
-
Paystack Dedicated Virtual Accounts
- Unique account per customer
- Automatic payment detection
- No manual reference entry needed
Best Practices
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
- Check
src/lib/config.tshas the correct information - Verify the changes were committed and deployed
- Clear any caching (restart bot if needed)
- Test by sending
/startcommand to your bot
Payment Not Showing in Account
- Verify
accountNumberis correct (check for typos) - Confirm
bankNamematches the actual bank - Ensure users are sending to the right account
- Check with your bank for any account restrictions
Users Can’t Verify Payments
This is related to Paystack configuration, not bank details:- Verify
PAYSTACK_SECRET_KEYenvironment variable is correct - Ensure the Paystack account matches the bank account
- Check that users are copying the full transaction reference