-
- All Implemented Interfaces:
-
android.os.Parcelable
public class Transaction implements Parcelable
Class to encapsulate the parameters needed for performing transaction.
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
KLARNA_INLINE_CLIENT_TOKEN_KEY
public final static String
KLARNA_INLINE_CALLBACK_URL_KEY
public final static String
KLARNA_INLINE_FAILURE_CALLBACK_URL_KEY
public final static String
KLARNA_INLINE_INITIAL_TRANSACTION_ID
public final static String
BANCONTACT_LINK_APP_SCHEME_URL_KEY
public final static String
AFTERPAY_PACIFIC_REDIRECT_URL
public final static String
AFTERPAY_PACIFIC_CALLBACK_URL_KEY
public final static String
AFTERPAY_PACIFIC_FAILURE_CALLBACK_URL_KEY
private final PaymentParams
paymentParams
private TransactionType
transactionType
private String
redirectUrl
private String
threeDS2MethodRedirectUrl
private ThreeDS2Info
threeDS2Info
private YooKassaInfo
yooKassaInfo
private Map<String, String>
brandSpecificInfo
public final static Parcelable.Creator<Transaction>
CREATOR
-
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. String
getThreeDS2MethodRedirectUrl()
The URL which posts threeDSMethodData to the ACS. ThreeDS2Info
getThreeDS2Info()
Returns 3-D Secure parameters if 3DS 2 is enabled. 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. int
describeContents()
void
writeToParcel(Parcel dest, int flags)
boolean
equals(@Nullable() 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.
-
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.
-
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.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-