Android/iOS SDK v9.2 – Balance Check Migration Guide

Version 9.2 of the Ready Remit SDK introduces an optional Balance Check feature. This allows you to display an account balance in the SDK UI to enhance the user experience.


Android Integration

To enable Balance Check on Android, pass a ReadyRemitBalanceCheck object to the remitFrom() method:

ReadyRemit.remitFrom(
    activity = this@MainActivity,
    requestCode = 100,
    themeResId = R.style.MyCustomTheme,
    localeCode = "en-US",
    rsp = RSP.VISA,
    singleMethod = TransferType.BANK_ACCOUNT,
    balanceCheck = ReadyRemitBalanceCheck(
        alias = "Everyday Checking",
        balance = BigDecimal("1000.00"),
        last4 = "0352",
        externalId = "external-id"
    )
)

Note: balanceCheck is optional. If omitted, the Balance Check UI will not appear.


iOS Integration

On iOS, the balanceCheck parameter is added to the RRMConfiguration and passed to startSDK():

ReadyRemit.shared.startSDK(
    delegate: self,
    configuration: .init(
        environment: .production,
        language: RRMLocale.enUS,
        rsp: .VISA,
        singleMethod: .BANK_ACCOUNT,
        balanceCheck: .init(
            alias: "Savings",
            last4: "1234",
            balance: Double(1000.00),
            externalId: "123-456-789"
        )
    ),
    onLoad: {
        // SDK loaded
    }
)

Note: This parameter is also optional on iOS.


BalanceCheck Parameters

ParameterAndroid TypeiOS TypeDescription
aliasStringStringFriendly name of the account, shown in the UI.
balanceBigDecimalDoubleStarting balance shown. Negative values are ignored on Android.
last4StringStringLast 4 digits of the account number, displayed for clarity.
externalIdStringStringUnique ID for referencing the account internally.