nelsonweze / nravepay Goto Github PK
View Code? Open in Web Editor NEWNravepay is a package that makes accepting card payments in a flutter project easier using Flutterwave
Home Page: https://pub.dev/packages/nravepay
License: MIT License
Nravepay is a package that makes accepting card payments in a flutter project easier using Flutterwave
Home Page: https://pub.dev/packages/nravepay
License: MIT License
Tried passing KE and currency as KES and it brings an error Bad state: No Element
Error from debug console below:
RangeError (end): Invalid value: Only valid value is 0: 2 [log] #0 RangeError.checkValidRange (dart:core/errors.dart:356:9) #1 List.sublist (dart:core-patch/growable_array.dart:84:38)
Steps to reproduce:
Setup plugin
Setup Initializer and call Paymanger().prompt()
Fill in card details and hit pay.
PS: Run with sound nullsafety
I was reading through the docs and found this image .
Debit cards are primarily/largely used in NG and that "add Credit Card" text is misleading. It might look ignorable, but from a UX POV it could use some tuning. Something generic like "add card", "new card" would suffice even for countries with large credit card support.
Good job on the plugin btw.
Running Gradle task 'assembleRelease'...
../programs/flutter/.pub-cache/hosted/pub.dartlang.org/nravepay-1.0.6/lib/src/pages/add.card.page.dart:45:26: Error: Required named parameter 'vsync' must be provided.
child: AnimatedSize(
^
../programs/flutter/packages/flutter/lib/src/widgets/animated_size.dart:56:9: Context: Found this candidate, but the arguments don't match.
const AnimatedSize({
^^^^^^^^^^^^
../programs/flutter/.pub-cache/hosted/pub.dartlang.org/nravepay-1.0.6/lib/src/pages/add.card.page.dart:98:36: Error: Required named parameter 'vsync' must be provided.
child: AnimatedSize(
^
../programs/flutter/packages/flutter/lib/src/widgets/animated_size.dart:56:9: Context: Found this candidate, but the arguments don't match.
const AnimatedSize({
^^^^^^^^^^^^
../programs/flutter/.pub-cache/hosted/pub.dartlang.org/nravepay-1.0.6/lib/src/pages/choose_card.payment.dart:108:36: Error: Required named parameter 'vsync' must be provided.
child: AnimatedSize(
^
../programs/flutter/packages/flutter/lib/src/widgets/animated_size.dart:56:9: Context: Found this candidate, but the arguments don't match.
const AnimatedSize({
^^^^^^^^^^^^
FAILURE: Build failed with an exception.
* Where:
Script '/Users/builder/programs/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1035
* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command '/Users/builder/programs/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
I get this error when building the app. I do not know where the animated widget is in the package but it is throwing the error. This is after upgrading to v1.0.6. I am also on flutter 2.5
Package not working when app built with flutter build apk --split-per-abi
It doesn't move forward after card details are entered.
It works on debug app but not when in Production. Please need help with this ASAP, thanks
I love the way this package is heading, I was about to create an issue for removing the 'Save Card' feature but that has been handled. Thank You
This is a customization issue, I need to customize the navbar text to read 'Add Card' not 'Card payment', also for the 'Pay' button if it could read something else like 'Add card' too. I will explain to the user beforehand that I will need to make a tiny charge in order for their card to be saved. Also, the Pay text and the currency on the right seem a bit off, maybe reduce the spacing between the two texts, this is in the pay button.
In summary,
Hey , great package , just one doubt , so i want that users pay directly to vendor from my flutter app , and i got commison out of it , so by using this split functionality , can i achieve this , and will payment settledown to bank accounts of vendors and mine , instantly ??
I am suddenly getting this error when using live keys and staging is set to false. I am not on the test environment. I am not repeating a charge
I've tried so many things. After debugging for hours I found that there's a problem with trippledes package. It is unable to generate the base64 key and throwing
List<int> is not subtype of Null error.
Please help me solve the issue.
var initializer = PayInitializer(
amount: 450,
email: '[email protected]',
txRef: 'TXREF-${DateTime.now().microsecondsSinceEpoch}',
narration: 'New payment',
country: 'NG',
currency: 'NGN',
firstname: 'Nelson',
lastname: 'Eze',
phoneNumber: '09092343432',
onComplete: (result) {
if (result.status == HttpStatus.success) {
if (result.card != null) {
print(result.card);
// saveCard(card);
}
}
print(result.message);
});
return PayManager().prompt(context: context, initializer: initializer);
}
This is the code I'm using, V3 though.
From looking at the error's stack trace, I noticed this was coming from the tripledes package used with the plugin, since you authored both packages and I only added directly referenced this, I figured I should open the issue here.
The exact error: 'Null' is not a subtype of type int in type cast.
Current flutter version: 2.5.2
Steps to reproduce:
PS: Run with sound nullsafety
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.