Networking (Pay Connect)
Gini Bank API Initialization
The pay feature depends on Gini Bank API Library, which provides an entry point through the GiniBankAPI
class.
You should receive Gini Bank API client credentials from us. Get in touch with us in case you don’t have them. Without credentials, you won’t be able to use the Gini Bank API.
The GiniBankAPI
class can be built either with client credentials or with a SessionManager
if you already have an authorization token. We provide helper methods for each case:
getGiniApi(context: Context, clientId: String, clientSecret: String,
emailDomain: String)
getGiniApi(context: Context, sessionManager: SessionManager)
SessionManager
is an interface that you need to implement to send the token. For more details about the GiniBankAPI
class see the Gini Bank API Library’s documentation.
Once you have a GiniBankAPI
instance, pass it to GiniBank.setGiniApi()
:
val giniApi = getGiniApi(this, myClientId, myClientSecret, myEmailDomain)
GiniBank.setGiniApi(giniApi)
Â
Â