Version: 1.0.7
Installation
This guide will walk you through a straightforward solution to accept payments within your Android application. The Moyasar Android SDK helps you accept multiple payment methods in your app including Mada, Visa, MasterCard, Amex and STC-Pay.
Installation
Before we can use the SDK, we have to add a couple of things within the app
module build.gradle.kts
and settings.gradle.kts
files.
Add the SDK's hosting repository by adding the following to your settings.gradle.kts
file:
dependencyResolutionManagement {
// Other configurations
repositories {
// Other repositories
maven {
url = uri("https://jitpack.io")
}
}
}
Now, we can add the SDK dependency in the `dependencies` block inside `build.gradle.kts` file:
```kotlin
dependencies {
// Other dependencies
implementation("com.github.Moyasar:moyasar-android-sdk:1.0.7")
}
Adding permissions
Make sure you have the following permissions in your Android Manifest.
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />