forked from thijooree/android
Able to set Default card for payments now
This commit is contained in:
@@ -615,6 +615,18 @@ class CredentialStore(context: Context) {
|
||||
} catch (_: Exception) { null }
|
||||
}
|
||||
|
||||
// ── Default payment card ──────────────────────────────────────────────────
|
||||
|
||||
/** BML card account number the user has pinned as their default payment card, or null. */
|
||||
fun getDefaultCardAccountNumber(): String? = prefs.getString("default_card_account_number", null)
|
||||
|
||||
fun setDefaultCardAccountNumber(accountNumber: String?) {
|
||||
val editor = prefs.edit()
|
||||
if (accountNumber == null) editor.remove("default_card_account_number")
|
||||
else editor.putString("default_card_account_number", accountNumber)
|
||||
editor.apply()
|
||||
}
|
||||
|
||||
// ── MIB profile visibility (per loginId) ─────────────────────────────────
|
||||
|
||||
/** Returns the set of MIB profile IDs the user has chosen to hide (for a given loginId). */
|
||||
|
||||
Reference in New Issue
Block a user