Page Summary
-
PaymentCardRecognitionResult represents the result returned from a Google payment card recognition Activity after a card has been successfully recognized.
-
This class implements the Parcelable interface.
-
You can retrieve the credit card expiration date and the payment card number (PAN) from a PaymentCardRecognitionResult object.
-
A static method
getFromIntentallows you to get a PaymentCardRecognitionResult from the intent returned by the recognition activity.
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
CreditCardExpirationDateif the API recognizes a valid expiration date. Otherwise, returnsnullwhen 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
PaymentCardRecognitionResultif status code isActivity.RESULT_OK, ornullif status code isActivity.RESULT_CANCELEDorWalletConstants.ERROR_CODE_INTERNAL_ERROR.
public String getPan ()
Gets the payment card number (PAN) of the recognized credit card.