-
- All Implemented Interfaces:
-
android.os.Parcelable
public class PaymentParams implements Parcelable
Represents the payment parameters, providing access to the checkout id, payment brand and custom parameters.
-
-
Field Summary
Fields Modifier and Type Field Description private Connect.ProviderMode
providerMode
private String
checkoutId
private final String
paymentBrand
private String
shopperResultUrl
public final static Parcelable.Creator<PaymentParams>
CREATOR
-
Constructor Summary
Constructors Constructor Description PaymentParams(String checkoutId, String paymentBrand)
Constructs the PaymentParams with the checkout id and payment brand.
-
Method Summary
Modifier and Type Method Description Connect.ProviderMode
getProviderMode()
Returns the com.oppwa.mobile.connect.provider.Connect.ProviderMode. void
setProviderMode(@NonNull() Connect.ProviderMode providerMode)
Sets the com.oppwa.mobile.connect.provider.Connect.ProviderMode. String
getCheckoutId()
void
setCheckoutId(@NonNull() String checkoutId)
String
getPaymentBrand()
Returns payment brand. String
getShopperResultUrl()
Gets the URL which will receive the result of an asynchronous payment. void
setShopperResultUrl(@Nullable() String shopperResultUrl)
Sets the URL which will receive the result of an asynchronous payment. Parcelable.Creator<out Object>
getCreator()
void
mask()
Map<String, String>
getParamsForRequest()
Returns a map of all parameters needed for transaction. boolean
addParam(@NonNull() String name, @NonNull() String value)
Adds a parameter that will be sent to the server void
removeParam(@NonNull() String name)
Removes parameter by name. int
describeContents()
void
writeToParcel(Parcel dest, int flags)
boolean
equals(Object o)
int
hashCode()
-
-
Method Detail
-
getProviderMode
@NonNull() Connect.ProviderMode getProviderMode()
-
setProviderMode
void setProviderMode(@NonNull() Connect.ProviderMode providerMode)
- Parameters:
providerMode
- The provider mode.
-
getCheckoutId
@NonNull() String getCheckoutId()
-
setCheckoutId
void setCheckoutId(@NonNull() String checkoutId)
-
getPaymentBrand
@Nullable() String getPaymentBrand()
Returns payment brand.
-
getShopperResultUrl
@Nullable() String getShopperResultUrl()
Gets the URL which will receive the result of an asynchronous payment. Must be sent URL encoded.
-
setShopperResultUrl
void setShopperResultUrl(@Nullable() String shopperResultUrl)
Sets the URL which will receive the result of an asynchronous payment. Must be sent URL encoded.
- Parameters:
shopperResultUrl
- URL which receives the result of an asynchronous payment.
-
getCreator
Parcelable.Creator<out Object> getCreator()
-
mask
void mask()
-
getParamsForRequest
@NonNull() Map<String, String> getParamsForRequest()
Returns a map of all parameters needed for transaction.
-
addParam
boolean addParam(@NonNull() String name, @NonNull() String value)
Adds a parameter that will be sent to the server
- Parameters:
name
- parameter name, should be prepended in the following format ^[a-zA-Z0-9\.value
- parameter value, any string no longer than 2048 characters
-
removeParam
void removeParam(@NonNull() String name)
Removes parameter by name.
- Parameters:
name
- name of the parameter
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-