You need to follow the below steps to build an in-app payment flow using Smart2Pay.SDK.Payment, a class designed to make building your app’s checkout flow as easy as possible.
- Download the smart2pay.aar file located at: https://github.com/Smart2Pay/SDK-Android-Release/tree/master/releases.
- Place the .aar file in the app/libs folder.
- Add this to your app Gradle file and click on the Sync Now button.
dependencies { api files('libs/smart2pay.aar') }
Now that the SDK is in the app, you can actually use it in the code. Continue with setting up the SDK: