问题
I'm currently working with credit-card integration using card.io SDK downloaded from github.
It works great, but the expiry date and the cvv number has to be entered manually. I searched for that and finds that
Newer versions of the card.io SDK (3.x and above) doesn't added expiry date scanning.-Reference.
But, the return values shows me
Received card info. Number: ••••••••••••xxxx, expiry: 09/2015, cvv: 123.
Is it possible to get the full number of the credit-card than getting dots?
Is it possible to download the older version of this SDK for expiration date scanning?
Any suggestions would be greatly appreciated.
回答1:
Josh from card.io here. The sample code you're probably looking at reads:
- (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: %@.", info.redactedCardNumber, info.expiryMonth, info.expiryYear, info.cvv);
// Use the card info...
[scanViewController dismissModalViewControllerAnimated:YES];
}
Note the comment above the NSLog call. What is being logged is info.redactedCardNumber
. You want info.cardNumber
instead. See the header files, which are pretty well documented, for more details.
The older version of the SDK is has been publicly deprecated for nearly a year and will be shut down on August 1st, 2013.
来源:https://stackoverflow.com/questions/17807508/card-io-sdk-gives-partial-credit-card-number