public class PaymentIntentParams
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static PaymentIntentParams |
createConfirmPaymentIntentWithSourceDataParams(SourceParams sourceParams,
java.lang.String clientSecret,
java.lang.String returnUrl)
Create the parameters necessary for confirming a PaymentIntent while attaching Source data
|
static PaymentIntentParams |
createConfirmPaymentIntentWithSourceIdParams(java.lang.String sourceId,
java.lang.String clientSecret,
java.lang.String returnUrl)
Create the parameters necessary for confirming a PaymentIntent while attaching a source that
already exits.
|
static PaymentIntentParams |
createCustomParams()
Create a custom
PaymentIntentParams. |
static PaymentIntentParams |
createRetrievePaymentIntentParams(java.lang.String clientSecret)
Create the parameters necessary for retrieving the details of PaymentIntent
|
java.lang.String |
getClientSecret() |
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams() |
java.lang.String |
getReturnUrl() |
java.lang.String |
getSourceId() |
SourceParams |
getSourceParams() |
PaymentIntentParams |
setClientSecret(java.lang.String clientSecret)
Sets the client secret that is used to authenticate actions on this PaymentIntent
|
PaymentIntentParams |
setExtraParams(java.util.Map<java.lang.String,java.lang.Object> extraParams) |
PaymentIntentParams |
setReturnUrl(java.lang.String returnUrl) |
PaymentIntentParams |
setSourceId(java.lang.String sourceId)
Sets a pre-existing source that will be attached to this PaymentIntent
|
PaymentIntentParams |
setSourceParams(SourceParams sourceParams)
Sets the source data that will be included with this PaymentIntent
|
java.util.Map<java.lang.String,java.lang.Object> |
toParamMap()
Create a string-keyed map representing this object that is
ready to be sent over the network.
|
public static PaymentIntentParams createCustomParams()
PaymentIntentParams. Incorrect attributes may result in errors
when connecting to Stripe's API.public static PaymentIntentParams createConfirmPaymentIntentWithSourceDataParams(SourceParams sourceParams, java.lang.String clientSecret, java.lang.String returnUrl)
sourceParams - params for the source that will be attached to this payment intentclientSecret - client secret from the PaymentIntent that is to be confirmedreturnUrl - the URL the customer should be redirected to after the authorization
processpublic static PaymentIntentParams createConfirmPaymentIntentWithSourceIdParams(java.lang.String sourceId, java.lang.String clientSecret, java.lang.String returnUrl)
sourceId - the ID of the source that is being attached to the PaymentIntent being
confirmedclientSecret - client secret from the PaymentIntent being confirmedreturnUrl - the URL the customer should be redirected to after the authorization
processpublic static PaymentIntentParams createRetrievePaymentIntentParams(java.lang.String clientSecret)
clientSecret - client secret from the PaymentIntent that is being retrievedpublic PaymentIntentParams setSourceParams(SourceParams sourceParams)
sourceParams - params for the source that will be attached to this payment intent. Only
one of SourceParam and SourceId should be used at at timethis, for chaining purposespublic PaymentIntentParams setSourceId(java.lang.String sourceId)
sourceId - the ID of the source that is being attached to this PaymentIntent. Only
one of SourceParam and SourceId should be used at at timethis, for chaining purposespublic PaymentIntentParams setClientSecret(java.lang.String clientSecret)
clientSecret - client secret associated with this PaymentIntentthis, for chaining purposespublic PaymentIntentParams setReturnUrl(java.lang.String returnUrl)
returnUrl - the URL the customer should be redirected to after the authorization
processthis, for chaining purposespublic PaymentIntentParams setExtraParams(java.util.Map<java.lang.String,java.lang.Object> extraParams)
extraParams - params that will be included in the request. Incorrect params may result
in errors when connecting to Stripe's API.this, for chaining purposespublic java.util.Map<java.lang.String,java.lang.Object> toParamMap()
public java.lang.String getClientSecret()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
public SourceParams getSourceParams()
public java.lang.String getSourceId()
public java.lang.String getReturnUrl()