我正在使用 card.io 在我的应用程序中扫描信用卡。我的问题是我无法获得卡片图像徽标(即使我通过了(CardIOActivity.EXTRA_USE_CARDIO_LOGO,true))。我也没有拿到卡的钥匙(例如,VISA 有 4,MASTERCARD 有 55 或 51)。
答案将不胜感激。
提前致谢。
我对 Key 的意思是 CardTypeId。我们像这样在 ios 中获取 CardTypeId ..
(void)userDidProvideCreditCardInfo:(CardIOCreditCardInfo *)info inPaymentViewController:(CardIOPaymentViewController *)scanViewController {
// The full card number is available as info.cardNumber, but don't log that!
NSLog(@"Received card info. Number: %@, expiry: %02i/%i, cvv: %@.cardtype %u", info.cardNumber, info.expiryMonth, info.expiryYear, info.cvv,info.cardType);
//getting cardtype (like visa) from info.cardType (this is what we called as CardTypeId //an ineger value)
NSString *cardTypeString=[NSString stringWithFormat:@"%@",[CardIOCreditCardInfo displayStringForCardType:info.cardType usingLanguageOrLocale:[[NSLocale currentLocale] localeIdentifier]]];
}
那么如何在android(info.cardType)中获取该整数(信息是CardIOCreditCardInfo的对象)仅供参考,info.cardType返回整数,如53,52等。