PaymentCardRecognitionResult

  • 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 getFromIntent allows you to get a PaymentCardRecognitionResult from the intent returned by the recognition activity.

public final class PaymentCardRecognitionResult extends Object
implements Parcelable

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, returns null 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.

public String getPan ()

Gets the payment card number (PAN) of the recognized credit card.