public class ThreeDSecureRequest
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<ThreeDSecureRequest> |
CREATOR |
static java.lang.String |
VERSION_1 |
static java.lang.String |
VERSION_2 |
Constructor and Description |
---|
ThreeDSecureRequest() |
ThreeDSecureRequest(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
ThreeDSecureRequest |
additionalInformation(ThreeDSecureAdditionalInformation additionalInformation)
Optional.
|
ThreeDSecureRequest |
amount(java.lang.String amount)
Set the amount
|
ThreeDSecureRequest |
billingAddress(ThreeDSecurePostalAddress billingAddress)
Optional.
|
java.lang.String |
build(java.lang.String dfReferenceId) |
ThreeDSecureRequest |
challengeRequested(boolean challengeRequested)
Optional If set to true, the customer will be asked to complete the authentication challenge if possible
|
int |
describeContents() |
ThreeDSecureRequest |
email(java.lang.String email)
Optional.
|
ThreeDSecureRequest |
exemptionRequested(boolean exemptionRequested)
Optional If set to true, an exemption to the authentication challenge will be requested
|
ThreeDSecureAdditionalInformation |
getAdditionalInformation() |
java.lang.String |
getAmount() |
ThreeDSecurePostalAddress |
getBillingAddress() |
java.lang.String |
getEmail() |
java.lang.String |
getMobilePhoneNumber() |
java.lang.String |
getNonce() |
java.lang.String |
getShippingMethod() |
UiCustomization |
getUiCustomization() |
java.lang.String |
getVersionRequested() |
boolean |
isChallengeRequested() |
boolean |
isExemptionRequested() |
ThreeDSecureRequest |
mobilePhoneNumber(java.lang.String mobilePhoneNumber)
Optional.
|
ThreeDSecureRequest |
nonce(java.lang.String nonce)
Set the nonce
|
ThreeDSecureRequest |
shippingMethod(java.lang.String shippingMethod)
Optional.
|
ThreeDSecureRequest |
uiCustomization(UiCustomization uiCustomization)
Optional UI Customization for the 3DS 2 challenge views.
|
ThreeDSecureRequest |
versionRequested(java.lang.String versionRequested)
Optional.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final java.lang.String VERSION_1
public static final java.lang.String VERSION_2
public static final android.os.Parcelable.Creator<ThreeDSecureRequest> CREATOR
public ThreeDSecureRequest()
public ThreeDSecureRequest(android.os.Parcel in)
public ThreeDSecureRequest nonce(java.lang.String nonce)
nonce
- The nonce that represents a card to perform a 3D Secure verification against.public ThreeDSecureRequest amount(java.lang.String amount)
amount
- The amount of the transaction in the current merchant account's currency. This must be expressed in numbers with an optional decimal (using `.`) and precision up to the hundredths place. For example, if you're processing a transaction for 1.234,56 € then `amount` should be `1234.56`.public ThreeDSecureRequest mobilePhoneNumber(java.lang.String mobilePhoneNumber)
mobilePhoneNumber
- The mobile phone number used for verification. Only numbers. Remove dashes, parentheses and other characters.public ThreeDSecureRequest email(java.lang.String email)
email
- The email used for verification.public ThreeDSecureRequest shippingMethod(java.lang.String shippingMethod)
shippingMethod
- The 2-digit string indicating the shipping method chosen for the transaction.public ThreeDSecureRequest billingAddress(ThreeDSecurePostalAddress billingAddress)
billingAddress
- The billing address used for verification.public ThreeDSecureRequest versionRequested(java.lang.String versionRequested)
ThreeDSecureVersion
.
VERSION_2
if ThreeDSecure V2 flows are desired, when possible.VERSION_1
if only ThreeDSecure V1 flows are desired. Default value.
Will default to VERSION_1
.
versionRequested
- ThreeDSecureVersion
The desired ThreeDSecure version.public ThreeDSecureRequest additionalInformation(ThreeDSecureAdditionalInformation additionalInformation)
additionalInformation
- Additional information.public ThreeDSecureRequest challengeRequested(boolean challengeRequested)
challengeRequested
- decides if a challenge will be forced.public ThreeDSecureRequest exemptionRequested(boolean exemptionRequested)
exemptionRequested
- decides if a exemption will be requested.public ThreeDSecureRequest uiCustomization(UiCustomization uiCustomization)
uiCustomization
- specifies how 3DS 2 challenge views should be customized.public java.lang.String getNonce()
public java.lang.String getAmount()
public java.lang.String getMobilePhoneNumber()
public java.lang.String getEmail()
public java.lang.String getShippingMethod()
public ThreeDSecurePostalAddress getBillingAddress()
public java.lang.String getVersionRequested()
public ThreeDSecureAdditionalInformation getAdditionalInformation()
ThreeDSecureAdditionalInformation
is only used for
VERSION_2
requests.public boolean isChallengeRequested()
public boolean isExemptionRequested()
public UiCustomization getUiCustomization()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public java.lang.String build(java.lang.String dfReferenceId)
ThreeDSecureRequest
for API use.