문제

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