-
- All Implemented Interfaces:
-
android.os.Parcelable
public class SamsungPayConfig implements Parcelable
This class contains the Samsung Pay configuration for the checkout.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceSamsungPayConfig.CardInfoUpdateListenerThe listener interface for card info update event in Samsung Pay custom payment sheet.
-
Field Summary
Fields Modifier and Type Field Description private final StringserviceIdprivate SamsungPayConfig.CardInfoUpdateListenercardInfoUpdateListenerpublic final static Parcelable.Creator<SamsungPayConfig>CREATOR
-
Constructor Summary
Constructors Constructor Description SamsungPayConfig(String serviceId, CustomSheetPaymentInfo customSheetPaymentInfo)Creates the Samsung Pay configuration.
-
Method Summary
Modifier and Type Method Description StringgetServiceId()Returns the serviceId for Samsung Pay sdk. SamsungPayConfig.CardInfoUpdateListenergetCardInfoUpdateListener()Returns the listener for card info update event in Samsung Pay custom payment sheet. SamsungPayConfigsetCardInfoUpdateListener(@Nullable() SamsungPayConfig.CardInfoUpdateListener cardInfoUpdateListener)Sets the listener for card info update event in Samsung Pay custom payment sheet. CustomSheetPaymentInfogetCustomSheetPaymentInfo()Returns the custom sheet payment info. StringtoString()booleanequals(Object o)inthashCode()intdescribeContents()voidwriteToParcel(@NonNull() Parcel parcel, int flags)-
-
Constructor Detail
-
SamsungPayConfig
SamsungPayConfig(String serviceId, CustomSheetPaymentInfo customSheetPaymentInfo)
Creates the Samsung Pay configuration.- Parameters:
serviceId- The unique ID received from Samsung.customSheetPaymentInfo- The custom payment sheet information.
-
-
Method Detail
-
getServiceId
@NonNull() String getServiceId()
Returns the serviceId for Samsung Pay sdk. The unique ID to represent the service. Partner should on-board with Samsung Pay Developers to receive this ID.
-
getCardInfoUpdateListener
@Nullable() SamsungPayConfig.CardInfoUpdateListener getCardInfoUpdateListener()
Returns the listener for card info update event in Samsung Pay custom payment sheet.
-
setCardInfoUpdateListener
@NonNull() SamsungPayConfig setCardInfoUpdateListener(@Nullable() SamsungPayConfig.CardInfoUpdateListener cardInfoUpdateListener)
Sets the listener for card info update event in Samsung Pay custom payment sheet.
- Parameters:
cardInfoUpdateListener- The card info update event listener.
-
getCustomSheetPaymentInfo
@NonNull() CustomSheetPaymentInfo getCustomSheetPaymentInfo()
Returns the custom sheet payment info. This object provides payment information details with custom payment sheet information. Transaction details set by the merchant app.
-
hashCode
int hashCode()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(@NonNull() Parcel parcel, int flags)
-
-
-
-