Package com.stripe.model
Class ThreeDSecure
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.ThreeDSecure
- All Implemented Interfaces:
HasId
,StripeObjectInterface
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static ThreeDSecure
create
(ThreeDSecureCreateParams params) Initiate 3D Secure authentication.static ThreeDSecure
create
(ThreeDSecureCreateParams params, RequestOptions options) Initiate 3D Secure authentication.static ThreeDSecure
Initiate 3D Secure authentication.static ThreeDSecure
create
(Map<String, Object> params, RequestOptions options) Initiate 3D Secure authentication.boolean
Amount of the charge that you will create when authentication completes.True if the cardholder went through the authentication flow and their bank indicated that authentication succeeded.getCard()
You can store multiple cards on a customer in order to charge the customer later.Time at which the object was created.Three-letter ISO currency code, in lowercase.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.If present, this is the URL that you should send the cardholder to for authentication.Possible values areredirect_pending
,succeeded
, orfailed
.int
hashCode()
static ThreeDSecure
Retrieves a 3D Secure object.static ThreeDSecure
retrieve
(String threeDSecure, RequestOptions options) Retrieves a 3D Secure object.static ThreeDSecure
retrieve
(String threeDSecure, ThreeDSecureRetrieveParams params, RequestOptions options) Retrieves a 3D Secure object.static ThreeDSecure
Retrieves a 3D Secure object.void
Amount of the charge that you will create when authentication completes.void
setAuthenticated
(Boolean authenticated) True if the cardholder went through the authentication flow and their bank indicated that authentication succeeded.void
You can store multiple cards on a customer in order to charge the customer later.void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setRedirectUrl
(String redirectUrl) If present, this is the URL that you should send the cardholder to for authentication.void
Possible values areredirect_pending
,succeeded
, orfailed
.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
ThreeDSecure
public ThreeDSecure()
-
-
Method Details
-
retrieve
Retrieves a 3D Secure object.- Throws:
StripeException
-
retrieve
public static ThreeDSecure retrieve(String threeDSecure, RequestOptions options) throws StripeException Retrieves a 3D Secure object.- Throws:
StripeException
-
retrieve
public static ThreeDSecure retrieve(String threeDSecure, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a 3D Secure object.- Throws:
StripeException
-
retrieve
public static ThreeDSecure retrieve(String threeDSecure, ThreeDSecureRetrieveParams params, RequestOptions options) throws StripeException Retrieves a 3D Secure object.- Throws:
StripeException
-
create
Initiate 3D Secure authentication.- Throws:
StripeException
-
create
public static ThreeDSecure create(Map<String, Object> params, RequestOptions options) throws StripeExceptionInitiate 3D Secure authentication.- Throws:
StripeException
-
create
Initiate 3D Secure authentication.- Throws:
StripeException
-
create
public static ThreeDSecure create(ThreeDSecureCreateParams params, RequestOptions options) throws StripeException Initiate 3D Secure authentication.- Throws:
StripeException
-
getAmount
Amount of the charge that you will create when authentication completes. -
getAuthenticated
True if the cardholder went through the authentication flow and their bank indicated that authentication succeeded. -
getCard
You can store multiple cards on a customer in order to charge the customer later. You can also store multiple debit cards on a recipient in order to transfer to those cards later.Related guide: Card Payments with Sources.
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
three_d_secure
. -
getRedirectUrl
If present, this is the URL that you should send the cardholder to for authentication. If you are going to use Stripe.js to display the authentication page in an iframe, you should use the value "_callback". -
getStatus
Possible values areredirect_pending
,succeeded
, orfailed
. When the cardholder can be authenticated, the object starts with statusredirect_pending
. When liability will be shifted to the cardholder's bank (either because the cardholder was successfully authenticated, or because the bank has not implemented 3D Secure, the object wlil be in statussucceeded
.failed
indicates that authentication was attempted unsuccessfully. -
setAmount
Amount of the charge that you will create when authentication completes. -
setAuthenticated
True if the cardholder went through the authentication flow and their bank indicated that authentication succeeded. -
setCard
You can store multiple cards on a customer in order to charge the customer later. You can also store multiple debit cards on a recipient in order to transfer to those cards later.Related guide: Card Payments with Sources.
-
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
three_d_secure
. -
setRedirectUrl
If present, this is the URL that you should send the cardholder to for authentication. If you are going to use Stripe.js to display the authentication page in an iframe, you should use the value "_callback". -
setStatus
Possible values areredirect_pending
,succeeded
, orfailed
. When the cardholder can be authenticated, the object starts with statusredirect_pending
. When liability will be shifted to the cardholder's bank (either because the cardholder was successfully authenticated, or because the bank has not implemented 3D Secure, the object wlil be in statussucceeded
.failed
indicates that authentication was attempted unsuccessfully. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-