wilburx9/rave_flutter
Flutterwaves의 레이브를 위한 Flutter 플러그인입니다.
- Stars
- 31
- Forks
- 58
- 최근 푸시(UTC)
- 2022. 8. 28.
- 프로젝트 상태
- 활성
기술 주제
사용 중인 의존성
의존성 목록 12 개
- flutter
{"sdk":"flutter"} - flutter_svg
^0.18.1 - http
^0.12.2 - intl
^0.16.1 - meta
^1.1.8 - async
^2.4.2 - dio
^3.0.10 - get_it
^4.0.4 - equatable
^1.2.4 - tripledes
^2.1.0 - webview_flutter
^0.3.22+1 - flutter_test개발 의존성
{"sdk":"flutter"}
원본 README
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
README 펼치기 / 접기
Rave Flutter
build status Coverage Status pub package
https://raw.githubusercontent.com/wilburt/rave_flutter/master/screenshots/payment_methods.png https://raw.githubusercontent.com/wilburt/rave_flutter/master/screenshots/card_payment.png https://raw.githubusercontent.com/wilburt/rave_flutter/master/screenshots/nigerian_bank_payment.png
A robust Flutter plugin for accepting payment on Rave with
- [x] Card
- [x] Nigerian Bank Account
- [x] ACH Payments
- [x] Mobile money Francophone Africa
- [x] Mpesa
- [ ] Ghana Mobile Money
- [ ] Uganda Mobile Money
Keys
- Create your Rave staging keys from the sandbox environment
- Create your Rave live keys from the Rave Dashboard
Installation
To use this plugin, add rave_flutter as a dependency in your pubspec.yaml file.
Webview is required so enable PlatformView on iOS by adding:
<key>io.flutter.embedded_views_preview</key>
<true/
to Info.plist file
Making Payment
Instantiate RavePayInitializer and pass it to RavePayManager.prompt along
with the BuildContext. The result of the transaction is the Future
returned by RavePayManager.initialize
processTransaction() async {
// Get a reference to RavePayInitializer
var initializer = RavePayInitializer(
amount: 500, publicKey: publicKey, encryptionKey: encryptionKey)
..country = "NG"
..currency = "NGN"
..email = "customer@email.com"
..fName = "Ciroma"
..lName = "Adekunle"
..narration = narration ?? ''
..txRef = txRef
..subAccounts = subAccounts
..acceptMpesaPayments = acceptMpesaPayment
..acceptAccountPayments = acceptAccountPayment
..acceptCardPayments = acceptCardPayment
..acceptAchPayments = acceptAchPayments
..acceptGHMobileMoneyPayments = acceptGhMMPayments
..acceptUgMobileMoneyPayments = acceptUgMMPayments
..staging = true
..isPreAuth = preAuthCharge
..displayFee = shouldDisplayFee;
// Initialize and get the transaction result
RaveResult response = await RavePayManager()
.prompt(context: context, initializer: initializer);
}
Documentation
Documentation can be found here.
Contributing, Issues and Bug Reports
The project is open to public contribution. Please feel very free to contribute. Experienced an issue or want to report a bug? Please, report it here. Remember to be as descriptive as possible.