Momo Suite
  • Introduction
  • Getting Started
  • Basic Concepts
  • Providers (Hubtel)
    • Korba
    • PayStack
    • ITC
  • Dashboard (Overview)
    • Transaction Detail Page
      • Status Check for Pending Transactions
      • Manual Status Update (Admin Only)
      • Transaction Timeline
      • Technical Details
  • User Management
  • Transaction Status Update Notifications
Powered by GitBook
On this page
  1. Providers (Hubtel)

ITC

  1. Add the following variables to your .env file:

ITC_MERCHANT_ID=your-merchant-id
ITC_PRODUCT_ID_CREDIT=your-product-id-credit
ITC_PRODUCT_ID_DEBIT=your-product-id-debit
ITC_API_KEY_CREDIT=your-api-key-credit
ITC_API_KEY_DEBIT=your-api-key-debit
ITC_BASE_URL=https://uniwallet.transflowitc.com/uniwallet/v2
  1. The configuration is loaded from config/momo-suite.php:

'itc' => [
    'merchant_id' => env('ITC_MERCHANT_ID'),
    'product_id_credit' => env('ITC_PRODUCT_ID_CREDIT'),
    'product_id_debit' => env('ITC_PRODUCT_ID_DEBIT'),
    'api_key_credit' => env('ITC_API_KEY_CREDIT'),
    'api_key_debit' => env('ITC_API_KEY_DEBIT'),
    'base_url' => env('ITC_BASE_URL', 'https://uniwallet.transflowitc.com/uniwallet/v2'),
],

Receiving Money

use Rais\MomoSuite\Facades\Momo;

$result = Momo::setProvider('itc')
    ->receive([
        'phone' => '0241234567',
        'amount' => 1.00,
        'network' => 'MTN',
        'reference' => 'Test Payment',
    ]);

// Required Parameters:
// - phone: Customer's phone number
// - amount: Transaction amount
// - network: Mobile network (MTN, VODAFONE, AIRTELTIGO)
// - reference: Your transaction reference

Sending Money

use Rais\MomoSuite\Facades\Momo;

$result = Momo::setProvider('itc')
    ->send([
        'phone' => '0241234567',
        'amount' => 1.00,
        'network' => 'MTN',
        'reference' => 'Test Disbursement',
    ]);

// Required Parameters:
// - phone: Recipient's phone number
// - amount: Amount to send
// - network: Mobile network (MTN, VODAFONE, AIRTELTIGO)
// - reference: Your transaction reference

Webhook Handling

```markdown
ITC sends webhook notifications for transaction updates. Configure your webhook URL in your ITC dashboard.

The package automatically handles webhooks at:

POST /momo/api/webhook/itc

Example webhook payload:

{
    "responseCode": "01",
    "refNo": "generated-refNo",
    "amount": "1.00",
    "network": "MTN",
    "message": "Payment successful"
}
  • responseCode meanings:

    • "01": Payment successful


PreviousPayStackNextDashboard (Overview)

Last updated 1 month ago