PaymentCardRecognitionResult

Stay organized with collections Save and categorize content based on your preferences.
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.