SampleConfig

data class SampleConfig(val apiVersionV1: String, val apiVersionV2: String, val environment: String, val providerCallbackHost: String, val apiUserId: String, val collectionPrimaryKey: String, val collectionSecondaryKey: String, val remittancePrimaryKey: String, val remittanceSecondaryKey: String, val disbursementsPrimaryKey: String, val disbursementsSecondaryKey: String)

Runtime configuration values required by the sample app to initialise the MTN MOMO SDK.

All values are sourced from io.rekast.sdk.app.BuildConfig (populated via the Secrets Gradle Plugin from local.properties) and injected by AppModule through Hilt.

Constructors

Link copied to clipboard
constructor(apiVersionV1: String, apiVersionV2: String, environment: String, providerCallbackHost: String, apiUserId: String, collectionPrimaryKey: String, collectionSecondaryKey: String, remittancePrimaryKey: String, remittanceSecondaryKey: String, disbursementsPrimaryKey: String, disbursementsSecondaryKey: String)

Properties

Link copied to clipboard

UUID identifying the API user created on the MTN MOMO Developer portal.

Link copied to clipboard

API version string for v1 endpoints (e.g. "v1_0" on sandbox, "v1" on production).

Link copied to clipboard

API version string for v2 endpoints (e.g. "v2_0" on sandbox, "v2" on production).

Link copied to clipboard

Primary subscription key for the Collection product.

Link copied to clipboard

Secondary subscription key for the Collection product.

Link copied to clipboard

Primary subscription key for the Disbursements product.

Link copied to clipboard

Secondary subscription key for the Disbursements product.

Link copied to clipboard

Target environment identifier (e.g. "sandbox" or "production").

Link copied to clipboard

Host used for provider callback URLs (e.g. "localhost" on sandbox).

Link copied to clipboard

Primary subscription key for the Remittance product.

Link copied to clipboard

Secondary subscription key for the Remittance product.