-
- 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 interface
SamsungPayConfig.CardInfoUpdateListener
The listener interface for card info update event in Samsung Pay custom payment sheet.
-
Field Summary
Fields Modifier and Type Field Description private final String
serviceId
private SamsungPayConfig.CardInfoUpdateListener
cardInfoUpdateListener
public 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 String
getServiceId()
Returns the serviceId for Samsung Pay sdk. SamsungPayConfig.CardInfoUpdateListener
getCardInfoUpdateListener()
Returns the listener for card info update event in Samsung Pay custom payment sheet. SamsungPayConfig
setCardInfoUpdateListener(@Nullable() SamsungPayConfig.CardInfoUpdateListener cardInfoUpdateListener)
Sets the listener for card info update event in Samsung Pay custom payment sheet. CustomSheetPaymentInfo
getCustomSheetPaymentInfo()
Returns the custom sheet payment info. String
toString()
boolean
equals(Object o)
int
hashCode()
int
describeContents()
void
writeToParcel(@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)
-
-
-
-