SDK integration guide
Learn how you can install and use Okra's libraries and SDKs to benefit from features like callbacks, metadata, and bank filtering.
Overview
Okra's SDKs offer a quick and secure way to link bank accounts to Okra through your websie or app. The Okra app is a drop-in module that handles credential validation, MFA, and error handling for each financial institution that Okra supports, all without passing sensitive personal information to your server.
Install SDKs
Flutter
Follow these steps to integrate the Okra app into your Flutter application on Android and iOS using Okra's Flutter SDK.
Add
okra_widget_official
as a package dependency in yourpubspec.yaml
file:dependencies: okra_widget_official: ^3.1.12
If your application is for iOS, opt in to the embedded views preview and enable arbitrary loads by adding the following configuration to your application's
Info.plist
file:<key>io.flutter.embedded_views_preview</key> <string>YES</string> <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSAllowsArbitraryLoadsInWebContent</key> <true/> </dict>
React Native
Requirements
- React Native version
0.71.8
or higher - iOS Pods set up in your project
Follow these steps to integrate the Okra app into your React Native application. This guide is also relevant if you are using React Native CLI and an Expo Project.
Install the React Native WebView component
Install the Okra React Native official package
- Install Pods in the root directory of your project
$ pod install
Web
Follow these steps to integrate the Okra app into your web application using JavaScript, Angular, or Vue.
Install the OkraJS SDK
Install the OkraJS SDK:
When using Okra's CDN, include the initialization script on every page of your site. Always load the script directly from https://cdn.okra.ng
and do not bundle or self-host it.
- Retrieve your client token from the Dashboard
Android
Clone the GitHub repository and try out the example application, which provides a reference implementation in Java.
Requirements
- Android Studio 4.0 or above
- Android 5.0 (API level 21) or above
- Check out the Onboarding guide and create your account to retrieve your Client Token, API Keys, and Private Keys.
- Create sandbox customers and the account connection flow.
Follow these steps to integrate the Okra app into your Android application in native Android.
gradle
- Add it to your root
build.gradle
at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add the dependency:
dependencies {
implementation 'ng.okra.com:okra:1.0.0'
}
React
Follow these steps to integrate the Okra app into your React application using OkraJS.
- Create your app:
npm create react-app okra-widget
- Navigate to your app and start it:
cd okra-widget
npm start
- Install OkraJS:
To add logic that triggers the Okra app, install the OkraJS library.
npm install okra-js
Build your Okra app
Okra enables you to build an app that best fits your use case and business needs. You have the flexibility to fine-tune user interface elements like button texts and company branding. You can also determine what financial institutions you want your users to see when they connect their accounts, and set up the products that you want to retrieve data for.
You can build your Okra app in the App Builder without writing any code - visit the guide guide for more details.
Integrate your app
After you build and customize your Okra app, you have 2 options to embed it into your app or website: with short_url
, or with options
.
Visit the Embed your app guide to understand these options.
Sample code
You can find sample source codes for both intergation options here:
Using TypeScript
Using JavaScript
Need help?
- Check out the Okra app errors and the API Errors guide to understand the different error scenarios.
- Join Okra's Developer Community on Slack if you have technical questions or need help with your code.
- Get in touch with the Support team if you have any questions about Okra's products.
Was this page helpful?