public class PayPalTwoFactorAuthRequest
extends java.lang.Object
Constructor and Description |
---|
PayPalTwoFactorAuthRequest() |
Modifier and Type | Method and Description |
---|---|
PayPalTwoFactorAuthRequest |
amount(java.lang.String amount)
The amount of the transaction that the authenticated nonce will be used in, as a
String . |
PayPalTwoFactorAuthRequest |
currencyCode(java.lang.String currencyCode)
The currency code to be used with the amount specified in
amount(String) . |
java.lang.String |
getAmount()
The amount to verify for the pending transaction.
|
java.lang.String |
getCurrencyCode()
The currency code to use for the specified amount.
|
java.lang.String |
getNonce()
The nonce to use in the two factor authentication lookup.
|
PayPalTwoFactorAuthRequest |
nonce(java.lang.String nonce)
The
PaymentMethodNonce generated from a payment method token stored in the Braintree Vault. |
java.lang.String |
toJson(java.lang.String authorizationFingerprint,
java.lang.String returnUrlScheme)
Format the request as a JSON payload.
|
public PayPalTwoFactorAuthRequest nonce(java.lang.String nonce)
PaymentMethodNonce
generated from a payment method token stored in the Braintree Vault.
See Braintree Vaultnonce
- PaymentMethodNonce
to be used for a two factor authentication lookup.public PayPalTwoFactorAuthRequest amount(java.lang.String amount)
String
.
This is required to determine if authentication is required. Passing an amount other than
the final total can result in a declined transaction.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 PayPalTwoFactorAuthRequest currencyCode(java.lang.String currencyCode)
amount(String)
.currencyCode
- public java.lang.String getNonce()
public java.lang.String getAmount()
public java.lang.String getCurrencyCode()
public java.lang.String toJson(java.lang.String authorizationFingerprint, java.lang.String returnUrlScheme)