-
- All Implemented Interfaces:
-
android.os.Parcelable
public class STCPayPaymentParams extends PaymentParams
Represents payment parameters for STC pay payment brand.
-
-
Field Summary
Fields Modifier and Type Field Description private STCPayVerificationOptionverificationOptionprivate Array<byte>mobilePhoneNumberpublic final static Parcelable.Creator<STCPayPaymentParams>CREATOR
-
Constructor Summary
Constructors Constructor Description STCPayPaymentParams(String checkoutId, STCPayVerificationOption verificationOption)Creates the payment parameters for STC pay transaction.
-
Method Summary
Modifier and Type Method Description STCPayVerificationOptiongetVerificationOption()Returns verification option of STC pay transactions. voidsetMobilePhoneNumber(@Nullable() String mobilePhoneNumber)Sets the mobile phone number. static booleanisMobilePhoneNumberValid(@Nullable() String mobilePhoneNumber)Checks if mobile phone number is valid. Map<String, String>getParamsForRequest()Returns the map of all parameters needed for STC pay transaction. intdescribeContents()voidwriteToParcel(Parcel dest, int flags)booleanequals(@Nullable() Object o)inthashCode()-
-
Constructor Detail
-
STCPayPaymentParams
STCPayPaymentParams(String checkoutId, STCPayVerificationOption verificationOption)
Creates the payment parameters for STC pay transaction.- Parameters:
checkoutId- The checkout id of the transactionverificationOption- The verification option to proceed STC pay transaction
-
-
Method Detail
-
getVerificationOption
@Nullable() STCPayVerificationOption getVerificationOption()
Returns verification option of STC pay transactions.
-
setMobilePhoneNumber
void setMobilePhoneNumber(@Nullable() String mobilePhoneNumber)
Sets the mobile phone number.
- Parameters:
mobilePhoneNumber- The mobile phone number
-
isMobilePhoneNumberValid
static boolean isMobilePhoneNumberValid(@Nullable() String mobilePhoneNumber)
Checks if mobile phone number is valid.
- Parameters:
mobilePhoneNumber- The mobile phone number value
-
getParamsForRequest
@NonNull() Map<String, String> getParamsForRequest()
Returns the map of all parameters needed for STC pay transaction.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-