Accessing the SDK
The purpose of the SDK is to process payment, whilst you embed it in your current working application.
The SDK is hosted in a maven repo, hosted in an S3 bucket in a Halo AWS account.
A debug version of the SDK is made available to support development efforts, but only the release version will be permitted to transact in production. The debug version has full logging enabled and allows a debugger to be attached to the app.
Accessing Maven Repo
You can access your AWS access key and secret key by registering on the developer portal here. These are sensitive and should not be committed to source control. Add the credentials to your
local.properties
located in your android development folder.
Add the following to your project-level gradle file, to read the access credentials into variables:
Add the following to your module-level gradle file, to pull the artifacts:
We are adding two repos:
Snapshots: Debug builds
Release: Release builds
Finally, also please add the following to your
build.gradle
:
After a gradle sync, you should now be able to import from the za.co.synthesis.halo.sdk namespace, e.g:
For a more technical integration guide, see the next guide.
Last updated