A Parcelable
that
represents the result passed back from Google payment card recognition Activity when a
payment card has been successfully recognized.
Inherited Constant Summary
Public Method Summary
CreditCardExpirationDate |
getCreditCardExpirationDate()
Gets
CreditCardExpirationDate of the recognized credit card.
|
static PaymentCardRecognitionResult |
getFromIntent(Intent
intent)
Gets a
PaymentCardRecognitionResult from the intent returned by a
successful Google payment card recognition Activity.
|
String |
getPan()
Gets the payment card number (PAN) of the recognized credit card.
|
Inherited Method Summary
Public Methods
public CreditCardExpirationDate getCreditCardExpirationDate ()
Gets CreditCardExpirationDate
of the recognized credit card.
Returns
- a non-null
CreditCardExpirationDate
if the API recognizes a valid expiration date. Otherwise, returnsnull
when the API recognizes either no expiration date or an expired expiration date.
public static PaymentCardRecognitionResult getFromIntent (Intent intent)
Gets a PaymentCardRecognitionResult
from the intent returned by a successful Google payment card recognition Activity.
Returns
- a non-null
PaymentCardRecognitionResult
if status code isActivity.RESULT_OK
, ornull
if status code isActivity.RESULT_CANCELED
orWalletConstants.ERROR_CODE_INTERNAL_ERROR
.
public String getPan ()
Gets the payment card number (PAN) of the recognized credit card.