edlugz/tanda-v3
最新稳定版本:1.0.14
Composer 安装命令:
composer require edlugz/tanda-v3
包简介
This package provides you with the means to make requests to the Tanda API-V3
README 文档
README
Installation
Via Composer
composer require edlugz/tanda-v3
Publish Migration Files
php artisan vendor:publish --provider="EdLugz\Tanda\TandaServiceProvider" --tag="migrations"
Fill in all the details you will be requiring for your application. Here are the env variables for quick copy paste.
TANDA_RESULT_URL TANDA_C2B_RESULT_URL TANDA_CLIENT_ID TANDA_CLIENT_SECRET TANDA_ORG_ID TANDA_AUTH_BASE_URL TANDA_API_BASE_URL
Usage
Using the facade
C2B - Fund Wallet (send stk push to mobile number)
Tanda::C2B()->request($serviceProviderId, $merchantWallet, $mobileNumber, $amount, $customFieldsKeyValue = []);
P2P - send to internal wallets
Tanda::P2P()->send($senderWallet, $receiverWallet, $amount, $customFieldsKeyValue = []);
B2C - send to bank accounts and mobile wallets
Tanda::B2C()->bank($merchantWallet, $bankCode, $amount, $accountNumber, $narration, $customFieldsKeyValue = []); Tanda::B2C()->mobile($merchantWallet, $serviceProviderId, $amount, $mobileNumber, $customFieldsKeyValue = []); Tanda::B2C()->internationalBank($merchantWallet, $serviceProviderId, $amount, $mobileNumber, $customFieldsKeyValue = []);
B2B - to paybills and till numbers
Tanda::B2B()->buygoods($merchantWallet, $amount, $till, $contact, $customFieldsKeyValue = []); Tanda::B2B()->paybill($merchantWallet, $amount, $paybill, $accountNumber, $contact, $customFieldsKeyValue = []);
Status - check status
Tanda::status()->fundingCheck($reference, $shortCode); Tanda::status()->paymentCheck($reference, $shortCode);
Helper functions - get mno network based on mobile number
Tanda::helper()->serviceProvider($mobileNumber);
Helper functions - receive payout results
Tanda::helper()->payout($data);
Helper functions - receive c2b results
Tanda::helper()->c2b($data);
Security
If you discover any security related issues, please email eddy.lugaye@gmail.com instead of using the issue tracker.
Credits
- [Eddy Lugaye][link-author]
- [All Contributors][link-contributors]
License
MIT. Please see the license file for more information.
统计信息
- 总下载量: 140
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-21