-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Flutter Web #65
Comments
Is there any Platform specific code that is used in the Plugin. I want to try to add Web Support. |
Did you try to make it work with WEB? |
I tried but unfortunately, the plugin has a Platform Check (* To check if it's Android or iOS), but looking through the code, there wasn't any platform specific functions that cannot be implemented on Web. I also thought of embedding paystack's javascript but I was really lazy! :( I still don't see any reason why I can't work on web! |
I was able to get this to work on web but I had to create a new package for web, then wrap this plugin for mobile. |
Nice Plugin Works fine to me!! |
Good work @djade007. Is it possible to integrate the changes here and create a PR? |
Thank you @DEVSOG12. I will take a look at the PR. |
@djade007 you can also take a look at the PR. |
The web version still only has the checkout option. I wanted to look if it will be possible to also add the Charge Card option on web. So as to make this package consistent. |
@djade007 That's a very valid point. I think the major functionality we need from iOS and Android is RSA encryption. And as at the time this package was released, the encrypt package wasn't as mature as it is now. I will find time to take a look if we can use encrypt instead of Objective-C and Kotlin for encryption. If this works, then we can go full Dart and support web properly otherwise we'll make do of #94. |
@djade007 I'm not too sure if via the UI the a card can be processed due to the nature of the Paystack JS.https://paystack.com/docs/payments/accept-payments @Wilburt Maybe you could look into finding a way to use RSA encryption on Dart. That would be better. I also think that the JS package handles the payment well. The Charge Card Option may not be the best in terms of security on Web |
If we can replicate the native encryption it should still be as secure as the Android/iOS SDK. Pending the time, I'll recommend the web version of the plugin I worked on should still be kept separate. It only exposes the checkout method, so only users who are interested in the default payment popup can use it. |
@Wilburt Hope you are still working on support for web, we need it soon, the other plugin for web is still just a JS pop up which is so unreliable(not the plugin the whole Js pop up is unreliable), I prefer the checkout method. Thanks |
Wooh no one replied @Wilburt can you reply please, so we know this issuses is still being worked on as it is really needed |
@Wilburt I'm trying work on the encryption natively on dart. I see that for android you use java. But.. the plugin extends a native channel for both android and iOS. So if we will be changing anything it would be best that we more everything to native dart. Because handling encryption in dart, and then some other things on the native channel may not be the best practice. Or.. |
Any support for desktop yet? |
Hey guys I implement paystack on web. It also supports various payment methods. check it out=> https://pub.dev/packages/flutter_paystack_plus |
This plugin is not supported for Flutter Web.
The text was updated successfully, but these errors were encountered: