Enigmatic-Smile / fidel-android

FIDEL Android SDK
MIT License
5 stars 1 forks source link

Need card id for "Card already linked" #16

Open iasif-experlabs opened 1 year ago

iasif-experlabs commented 1 year ago

Do we plan to add card id if user enters duplicate card. We do get error toast "Card already linked" but onCardLinkingFailed(..) doesn't return card ID which could be helpful for some users in some cases.

        Fidel.setCardLinkingObserver(object : FidelCardLinkingObserver {
            override fun onCardLinkingFailed(linkResultError: LinkResultError) {
                Log.e(Fidel.FIDEL_DEBUG_TAG, "Error message = " + linkResultError.message)
            }

            override fun onCardLinkingSucceeded(linkResult: LinkResult) {
                Log.d(Fidel.FIDEL_DEBUG_TAG, "The link ID = " + linkResult.id)
            }
        })