-
- All Implemented Interfaces:
-
android.os.Parcelable
public class Transaction implements Parcelable
Class to encapsulate the parameters needed for performing transaction.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Transaction(PaymentParams paymentParams)
-
Method Summary
Modifier and Type Method Description PaymentParams
getPaymentParams()
Returns the parameters representing a concrete payment method PaymentParams TransactionType
getTransactionType()
Returns the type of the transaction. void
setTransactionType(@NonNull() TransactionType transactionType)
Sets the TransactionType. String
getRedirectUrl()
Returns the URL to the receiver system (e.g. void
setRedirectUrl(@Nullable() String redirectUrl)
String
getThreeDS2MethodRedirectUrl()
The URL which posts threeDSMethodData to the ACS. ThreeDS2Info
getThreeDS2Info()
Returns 3-D Secure parameters if 3DS 2 is enabled. void
setThreeDS2Info(@Nullable() ThreeDS2Info threeDS2Info)
YooKassaInfo
getYooKassaInfo()
Returns the YooKassa payment information if it's available. Map<String, String>
getBrandSpecificInfo()
Returns the map of specific brand parameters needed for payment. ThreeDS2Info
requireThreeDS2Info()
int
describeContents()
void
writeToParcel(@NonNull() Parcel dest, int flags)
boolean
equals(Object o)
int
hashCode()
-
-
Constructor Detail
-
Transaction
Transaction(PaymentParams paymentParams)
-
-
Method Detail
-
getPaymentParams
@NonNull() PaymentParams getPaymentParams()
Returns the parameters representing a concrete payment method PaymentParams
-
getTransactionType
@NonNull() TransactionType getTransactionType()
Returns the type of the transaction. TransactionType
-
setTransactionType
void setTransactionType(@NonNull() TransactionType transactionType)
Sets the TransactionType.
- Parameters:
transactionType
- The transaction type.
-
getRedirectUrl
@Nullable() String getRedirectUrl()
Returns the URL to the receiver system (e.g. 3-D Secure, PayPal) that the shopper should be forwarded to.
-
setRedirectUrl
void setRedirectUrl(@Nullable() String redirectUrl)
-
getThreeDS2MethodRedirectUrl
@Nullable() String getThreeDS2MethodRedirectUrl()
The URL which posts threeDSMethodData to the ACS. It should be opened in a hidden iframe.
-
getThreeDS2Info
@Nullable() ThreeDS2Info getThreeDS2Info()
Returns 3-D Secure parameters if 3DS 2 is enabled.
-
setThreeDS2Info
void setThreeDS2Info(@Nullable() ThreeDS2Info threeDS2Info)
-
getYooKassaInfo
@Nullable() YooKassaInfo getYooKassaInfo()
Returns the YooKassa payment information if it's available.
-
getBrandSpecificInfo
@NonNull() Map<String, String> getBrandSpecificInfo()
Returns the map of specific brand parameters needed for payment.
-
requireThreeDS2Info
@NonNull() ThreeDS2Info requireThreeDS2Info()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(@NonNull() Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-