Class CardInfo
java.lang.Object
com.samsung.android.sdk.samsungpay.v2.payment.CardInfo
- All Implemented Interfaces:
android.os.Parcelable
This class provides card information related to payment operations.
- Since:
- API Level 1.1
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This is builder class for constructing CardInfo object which is passed to Samsung Pay from merchant. -
Field Summary
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Method Summary
Modifier and TypeMethodDescriptiongetBrand()
API to get the card brand.API to get unique identification of a card in Samsung Pay.android.os.Bundle
API to get extra card information(if any) related to the card.
-
Method Details
-
getBrand
API to get the card brand.- Returns:
- Card brand types such as:
SpaySdk.Brand.AMERICANEXPRESS
SpaySdk.Brand.MASTERCARD
SpaySdk.Brand.VISA
SpaySdk.Brand.DISCOVER
SpaySdk.Brand.CHINAUNIONPAY
SpaySdk.Brand.ECI
- Since:
- API Level 1.1
-
getCardId
API to get unique identification of a card in Samsung Pay.- Returns:
- Unique ID to refer a card in Samsung Pay.
- Since:
- API Level 1.1
-
getCardMetaData
public android.os.Bundle getCardMetaData()API to get extra card information(if any) related to the card.- Returns:
- Extra cardInfo bundle.
Since API level 1.5,SpaySdk.EXTRA_LAST4_FPAN
andSpaySdk.EXTRA_LAST4_DPAN
of the card which were used for the current transaction is included in CustomSheetPaymentInfo in case of onSuccess callback.
Refer toPaymentManager.CustomSheetTransactionInfoListener.onSuccess(CustomSheetPaymentInfo, String, Bundle)
. - Since:
- API Level 1.1
-
Samsung Electronics.
Samsung Pay SDK 2.19.00 - Jun 12 2024