Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Okraâs API empowers companies and developers to build products with seamless access to inclusive financial data and secure payments..
Official Okra SDK for Android applications. Don't forget to star ✨
Okra’s API empowers companies and developers to build products with seamless access to inclusive financial data and secure payments.
Andoird SDK for implementing the OkraJS widget - OkraJS is a safe and secure web drop-in module and this library provides a front-end web (also available in iOS and Android) SDK for account authentication and payment initiation for each bank that Okra supports.
Checkout the widget flow to view how the Okra Widget works. Click "See How it Works"
buildWithShortURL
version, you will first need to create a link on your dashboard, and use the short url
returend at the end of the creation flow.Bonus Points
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'ng.okra.com:okra:1.0.0'
}
val activityResultLauncher = registerForActivityResult(ActivityResultContracts.StartActivityForResult()
) {
if (it.resultCode == RESULT_OK && it.data != null) {
val okraResult = it.data!!.getStringExtra(OkraMainActivity.OKRA_RESULT)
//Successful operation, get the data and do whatever you want with it.
Toast.makeText(this, okraResult, Toast.LENGTH_SHORT).show()
} else {
val okraResult = it.data!!.getStringExtra(OkraMainActivity.OKRA_RESULT)
Toast.makeText(this, okraResult, Toast.LENGTH_SHORT).show()
}
}
val okraOptions = OkraOptions.ShortUrlBuilder("INSERT SHORT URL")
.build()
val intent = OkraMainActivity.newIntent(this, okraOptions)
activityResultLauncher.launch(intent)
For options, just use
val activityResultLauncher = registerForActivityResult(ActivityResultContracts.StartActivityForResult()
) {
if (it.resultCode == RESULT_OK && it.data != null) {
val okraResult = it.data!!.getStringExtra(OkraMainActivity.OKRA_RESULT)
//Successful operation, get the data and do whatever you want with it.
Toast.makeText(this, okraResult, Toast.LENGTH_SHORT).show()
} else {
val okraResult = it.data!!.getStringExtra(OkraMainActivity.OKRA_RESULT)
Toast.makeText(this, okraResult, Toast.LENGTH_SHORT).show()
}
}
val okraOptions = OkraOptions.OptionsBuilder("INSERT KEY HERE","INSERT TOKEN","INSERT ENV HERE","INSERT NAME HERE", "INSERT PRODUCTS HERE")
//Add additional properties here.
.appId("")
.color("")
.connectMessage("")
.currency("")
.isCorporate(true)
.build()
val intent = OkraMainActivity.newIntent(this, okraOptions)
activityResultLauncher.launch(intent)
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
app_id | String | true | Your app id from your Okra Dashboard. | |
okraKey | String | true | Your public key from your Okra Dashboard. | |
token | String | true | Your token from your Okra Dashboard. | |
env | String | false | production | production(live)/production-sandbox (test) |
products | Array | true | ['Auth'] | The Okra products you want to use with the widget. |
payment | Booelan | false | Whether you want to initiate a payment (https://docs.okra.ng/docs/payments) | |
charge | Object | false | Payment charge opject (https://docs.okra.ng/docs/widget-properties#set-up-payments) | |
products | Array | true | ['Auth'] | The Okra products you want to use with the widget. |
logo | String(URL) | false | Okra's Logo | |
name | String | false | Your Company's name | Name on the widget |
color | HEX | false | #3AB795 | Theme on the widget |
limit | Number | false | 24 | Statement length |
filter | Object | false | Filter for widget | |
isCorporate | Boolen | false | false | Corporate or Individual account |
connectMessage | String | false | Instruction to connnect account | |
widget_success | String | false | Widget Success Message | |
widget_failed | String | false | Widget Failed Message | |
callback_url | String(Url) | false | ||
currency | String | false | NGN | Wallet to bill |
exp | Date | false | Won't expire | Expirary date of widget |
options | Object | false | You can pass a object custom values eg id | |
onSuccess | Function | false | Action to perform after widget is successful | |
onClose | Function | false | Action to perform if widget is closed | |
onError | Function | false | Action to perform on widget Error | |
BeforeClose | Function | false | Action to perform before widget close | |
onEvent | Function | false | Action to perform on widget event |
View a complete list of customizable options here
Name | Type | Required | Description |
---|---|---|---|
short_url | String | true | Your generated url from our App builder. |
onSuccess | Function | false | Action to perform after widget is successful |
onClose | Function | false | Action to perform if widget is closed |
onError | Function | false | Action to perform on widget Error |
BeforeClose | Function | false | Action to perform before widget close |
onEvent | Function | false |
Checkout our API Overiview and see how to use the data you've received and other products you can use to create more personalized experiences for your customers!
Get started without writing a single line of code, Try our App Builder! Click here to get started
Want to help make this package even more awesome? feel free to send in your PR to dev branch and we'd review it and ensure it gets added to the next release 😊
This project is licensed under MIT license.
FAQs
Okraâs API empowers companies and developers to build products with seamless access to inclusive financial data and secure payments..
We found that ng.okra.com:okra demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.