我可以在自定义手动输入屏幕中使用IOS中的card.io信用卡号文本字段吗?

问题描述:

我已经成功集成了Card.io,并且运行良好。但是,现在我们要在屏幕上手动添加卡详细信息的地方添加我们使用的支付网关的徽标。

I have integrated Card.io successfully and it is working perfectly. But we now want to add the logo of the payment gateway we use in the screen where the card details are entered manually.

由于无法自定义SDK的手动输入屏幕,因此我们考虑实现一个自定义屏幕来捕获卡的详细信息。

As there is no way to customize the SDKs "Enter Manually" screen, we thought of implementing a custom screen to capture the card details.

是否可以在自定义屏幕中使用SDK屏幕中的功能?
信用卡等功能类型检测,数字验证,月份和年份格式等…

Is there a way to use the features present in the SDK's screen, in a custom screen? Features such as credit card type detection, number validation, month and year formatting etc…

从card.io到Josh。这是一个合理的要求,但是为了使API保持较小,我们倾向于不公开很多细粒度的功能。如果您需要特定的东西来构建它,很难/复杂/乏味并且很好地独立使用,请随时提出问题进行请求。

Josh from card.io here. It is a reasonable request, but to keep the API small, we tend not to expose lots of fine-grained functionality. If there is a specific thing you need that is hard/complicated/tedious to build right and stands alone nicely, feel free to file an issue asking for it.

请注意,其中一种功能(信用卡类型检测)已经存在裸露。看一下CardIOCreditCardInfo.h。您可以创建 CardIOCreditCardInfo 类,设置其 cardNumber ,然后读取其 cardType

Note that one such feature, credit card type detection, is already exposed. Take a look at CardIOCreditCardInfo.h. You can create a CardIOCreditCardInfo class, set its cardNumber, and then read its cardType.

通常,浏览头文件。它们有据可查,并且集成文档中没有提供更多内容。

Generally, take a look around through the header files. They are well documented, and there is more there than is covered in just the integration docs.