onetaplogin 1.0.2
onetaplogin: ^1.0.2 copied to clipboard
Flutter plugin for Bureau's Onetaplogin
onetaplogin #
A Flutter plugin for Bureau's OnetapLogin product.
Usage #
To use this plugin, add co.onetaplogin/onetaplogin
as a [dependency in your pubspec.yaml file]
Example #
on Production
// Import package
import 'package:onetaplogin/onetaplogin.dart';
// Authenticate : msisdn should be starting with 91
var status = await Onetaplogin.authenticate(
clientID,
txnID,
msisdn);
on Sandbox
// Import package
import 'package:onetaplogin/onetaplogin.dart';
// Authenticate : msisdn should be starting with 91
var status = await Onetaplogin.authenticate(
clientID,
txnID,
msisdn, env : "Sandbox");
Android Manifest changes #
<application
android:usesCleartextTraffic="true"
or if you are using network config
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="false">PLEASE CONTACT BUREAU TO GET DOMAIN</domain>
</domain-config>
</network-security-config>
iOS #
Make below changes to Info.plist
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>