is there a way to set the screenOrientation of io.card.payment.DataEntryActivity to be landscape? I tried to set it in Manifest but app crashed with error

             io.card.payment.DataEntryActivity requires attribute android:screenOrientation="portrait"

so, how could I customize this page? if I can't, is there a way that just delete this page? I think only credit card number should be enough for me and I don't need the expiration date.

Thanks

有帮助吗?

解决方案

I'm Jeff with the PayPal card.io team. The current DataEntryActivity does not support landscape, but we definitely should not be crashing. We've opened a bug for that issue.

Regarding the request to remove the activity altogether, we require this activity for users without cameras or otherwise unable to scan their card, and to review the card number captured. You can remove expiry through the intent extra like so:

scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_EXPIRY, false);

其他提示

Since last SDK version, v3.1.3, you don't need show the confirmation screen. Just put this intent extra:

scanIntent.putExtra(CardIOActivity.EXTRA_SUPPRESS_CONFIRMATION, true);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top