
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
The NCBA gem is a wrapper that helps developers interface with the official NCBA OPEN BANKING API.
Add this line to your application's Gemfile:
gem 'ncba'
or install unstable version from git
gem 'ncba', git: 'git@github.com:BerjisTech/ncba.git', branch: 'main'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install ncba
ncba_client = client = Ncba::Client.new(
api_user: "your_user_name",
api_key: "your_api_key"
)
NCBA accepts almost all variables as string except for amount
which is float.
ncba_client.account_opening(
uid: "",
customer_category: "",
business_name: "",
prefered_name: "",
street: "",
town_country: "",
country: "",
sector: "",
industry: "",
nationality: "",
email: "",
emergency_email: "",
phone_number: "",
building: "",
website: "",
bank_name: "",
branch: "",
account_number: "",
bank_account_name: "",
account_currency: "",
cba_account: "",
bank_code: "",
swift_code: "",
business_phone_number: "",
postal_code: "",
postal_address: "",
stakeholder_director_shareholder: "",
stakeholder_surname: "",
stakeholder_forename: "",
stakeholder_salutation: "",
stakeholder_gender: "",
stakeholder_email: "",
stakeholder_phone: "",
stakeholder_postal_address: "",
stakeholder_town: "",
stakeholder_postal_code: "",
stakeholder_country: "",
stakeholder_id_type: "",
stakeholder_id_number: "",
brn: ""
)
ncba_client.credit_details(
bizpawa_id: "",
turnover_ratio: "",
saas_payment_rate: "",
payment_mode_rate: "",
predictive_analysis: "",
prev_loan_repayment_rate: "",
pre_existing_cba_account: "",
customer_bizpawa_age: "",
inventory_turnover: "",
director_listed_crb: "",
business_listed_crb: "",
bank_code: ""
)
ncba_client.credit_transfer(
bank_code: '', # Bank Code (For ALL MWallets use 99), (For MPesa use 16 if RTGS), (For Pesalink 404)
bank_swift_code: '',
branch_code: '', # Branch code ( For ALL Mwallets use 002 )
beneficiary_account_name: '',
country: 'Kenya', # Kenya, Uganda, Tanzania (Case Sensitive)
transaction_type: '', # Internal, Eft, RTGS, Pesalink, Mpesa, HalotelTz, AirtelTz, ZantelTz, TigoTz, VodacomTz
reference: '',
currency: '', # KES, TZS, UGX
account: '', # 254XXXXXX (or your country code) for mobile, account number if bank
amount: '',
narration: '',
transaction_date: '',
validation_id: '', # Validation from mpesa_verification
sender_name: '',
purpose_of_payment: '',
sender_principle_activity: '',
sender_address: '',
receiver_address: '',
receiver_id: '',
sender_id: '',
beneficiary_name: ''
)
ncba_client.mpesa_phone_number_validation(
mobile_number: "",
reference: ""
)
ncba_client.transaction_query(
country: "",
reference_number: ""
)
Bug reports and pull requests are welcome on GitHub at https://github.com/berjistech/ncba. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
We follow the GitHub Flow model:
git checkout -b 10-branch-name
git push origin 10-branch-name
git commit -am '[#10] added a feature'
main
and deploy to Heroku.We assume that main
is always deploy-ready.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Ncba project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that ncba demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.