-
- 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 STCPayVerificationOption
verificationOption
private Array<byte>
mobilePhoneNumber
public 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 STCPayVerificationOption
getVerificationOption()
Returns verification option of STC pay transactions. void
setMobilePhoneNumber(@Nullable() String mobilePhoneNumber)
Sets the mobile phone number. static boolean
isMobilePhoneNumberValid(@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. int
describeContents()
void
writeToParcel(Parcel dest, int flags)
boolean
equals(@Nullable() Object o)
int
hashCode()
-
-
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()
-
-
-
-