softtek_openpay
This plugin was designed to facilitate the connect process with OpenPay in Android and iOS apps.
In this version only the token creation have been implemented for now.
Add Dependencies for Android app
- Add new directory 'openpay' inside 'Android' directory.
- Inside openpay directory add the last version of openpay-android-release.aar
- Inside openpay directory add new build.gradle file with following content:
configurations.maybeCreate("default")
artifacts.add("default", file('openpay-android-release.aar'))
dependencies { }
- Open build.gradle (in android directory) Add the below dependencies:
dependencies {
...
implementation 'com.google.http-client:google-http-client-jackson2:1.28.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.9.8'
implementation 'com.google.code.gson:gson:2.8.6'
compile project(':openpay')
}
- Open setting.gradle (in android directory). Add the below code:
include ':openpay'
Add Dependencies for iOS app
In progress...
Flutter implementation
Use the SofftekOpenpay class to call getToken method, send the request in json format.
main(List<String> arguments) async {
openPayToken = await SofttekOpenpay.getToken(JSON_REQUEST);
}
Getting Started with Flutter
This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.