๐Ÿ”‘ IntaSend API Key Issue

โœ•
API Keys Not Working

The API keys you provided are showing as expired or invalid.

Current Keys Status

Publishable Key
โŒ Invalid
Secret Key
โŒ Expired
Environment
๐Ÿงช Test Mode
API Status
๐Ÿ”ด Not Connected
โš 
Error Message:

"Session expired (Code: authentication_failed)"

This means the API keys are either expired, invalid, or don't have the correct permissions enabled.

Your Provided Keys

These are the keys currently configured (not working):

Publishable Key:
ISPubKey_test_fb9c6680-dd6f-4cf6-8534-78a305a05629
Secret Key:
ISSecretKey_test_c3e2c838-fdf1-41a0-9a7-e5d5f8b39f9b

How to Fix This

  1. Log in to IntaSend Dashboard
    Visit https://dashboard.intasend.com and log in with your IntaSend account.
  2. Navigate to API Keys
    Click on Settings in the sidebar, then select API Keys.
  3. Generate New Keys or Check Existing
    โ€ข Look for your test keys in the list
    โ€ข Check if they are marked as "Active" or "Expired"
    โ€ข If expired, click "Generate New API Keys"
    โ€ข Make sure to enable "Send Money (B2C)" permission
  4. Copy Your New Keys
    Copy both the Publishable Key and Secret Key from the dashboard.
  5. Update Configuration File
    Edit the file: intasend_config.php
    define('INTASEND_PUBLISHABLE_KEY', 'YOUR_NEW_PUBLISHABLE_KEY');
    define('INTASEND_SECRET_KEY', 'YOUR_NEW_SECRET_KEY');
    Replace lines 11 and 12 with your new keys.
  6. Test the Connection
    Run the test script to verify the keys work:
    php test_intasend_b2c.php
    You should see: โœ“ Transaction initiated successfully!
๐Ÿ’ก
Important:

Make sure your API keys have the following permissions enabled in the IntaSend Dashboard:

  • โœ“ Send Money (B2C) - Required for withdrawals
  • โœ“ Payments (C2B) - For deposits
  • โœ“ Wallet - For balance checks

Alternative Solution

If you can't access the IntaSend account or the keys keep failing:

  1. Create a New IntaSend Account
    Visit https://intasend.com and sign up with a different email.
  2. Verify Your Email
    Check your inbox and verify your email address.
  3. Generate Fresh API Keys
    Go to Settings โ†’ API Keys โ†’ Create new test keys with B2C permissions.
  4. Update and Test
    Replace the keys in intasend_config.php and test again.

Quick Actions

๐Ÿ”‘ Go to IntaSend Dashboard ๐Ÿ“Š Check System Status ๐Ÿ“ฅ Download Full Guide โ† Back to Home
โœ“
Everything Else is Ready!

All code errors have been fixed. The database is properly set up with all 6 tables. The website is fully responsive. Once you add valid API keys, the M-Pesa B2C withdrawals will work perfectly!

Need Help?

IntaSend Support: