-
- 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 PaymentParamsgetPaymentParams()Returns the parameters representing a concrete payment method PaymentParams TransactionTypegetTransactionType()Returns the type of the transaction. voidsetTransactionType(@NonNull() TransactionType transactionType)Sets the TransactionType. StringgetRedirectUrl()Returns the URL to the receiver system (e.g. voidsetRedirectUrl(@Nullable() String redirectUrl)StringgetThreeDS2MethodRedirectUrl()The URL which posts threeDSMethodData to the ACS. ThreeDS2InfogetThreeDS2Info()Returns 3-D Secure parameters if 3DS 2 is enabled. voidsetThreeDS2Info(@Nullable() ThreeDS2Info threeDS2Info)YooKassaInfogetYooKassaInfo()Returns the YooKassa payment information if it's available. Map<String, String>getBrandSpecificInfo()Returns the map of specific brand parameters needed for payment. ThreeDS2InforequireThreeDS2Info()intdescribeContents()voidwriteToParcel(@NonNull() Parcel dest, int flags)booleanequals(Object o)inthashCode()-
-
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()
-
-
-
-