Card.io SDK gives partial credit card number

匆匆过客 提交于 2019-12-08 03:22:07

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!