ITC
Add the following variables to your
.envfile:
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/v2The 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 referenceSending Money
Webhook Handling
POST /momo/api/webhook/itc
Example webhook payload:
responseCodemeanings:"01": Payment successful
Last updated