View Source Stripe.SetupAttempt (stripity_stripe v3.2.0)
A SetupAttempt describes one attempted confirmation of a SetupIntent, whether that confirmation is successful or unsuccessful. You can use SetupAttempts to inspect details of a specific attempt at setting up a payment method using a SetupIntent.
Summary
Functions
Returns a list of SetupAttempts that associate with a provided SetupIntent.
Types
@type t() :: %Stripe.SetupAttempt{ application: (binary() | term()) | nil, attach_to_self: boolean(), created: integer(), customer: (binary() | Stripe.Customer.t() | Stripe.DeletedCustomer.t()) | nil, flow_directions: term() | nil, id: binary(), livemode: boolean(), object: binary(), on_behalf_of: (binary() | Stripe.Account.t()) | nil, payment_method: binary() | Stripe.PaymentMethod.t(), payment_method_details: term(), setup_error: Stripe.ApiErrors.t() | nil, setup_intent: binary() | Stripe.SetupIntent.t(), status: binary(), usage: binary() }
The setup_attempt type.
applicationThe value of application on the SetupIntent at the time of this confirmation.attach_to_selfIf present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
createdTime at which the object was created. Measured in seconds since the Unix epoch.customerThe value of customer on the SetupIntent at the time of this confirmation.flow_directionsIndicates the directions of money movement for which this payment method is intended to be used.
Include inbound if you intend to use the payment method as the origin to pull funds from. Include outbound if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.
idUnique identifier for the object.livemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.objectString representing the object's type. Objects of the same type share the same value.on_behalf_ofThe value of on_behalf_of on the SetupIntent at the time of this confirmation.payment_methodID of the payment method used with this SetupAttempt.payment_method_detailssetup_errorThe error encountered during this attempt to confirm the SetupIntent, if any.setup_intentID of the SetupIntent that this attempt belongs to.statusStatus of this SetupAttempt, one ofrequires_confirmation,requires_action,processing,succeeded,failed, orabandoned.usageThe value of usage on the SetupIntent at the time of this confirmation, one ofoff_sessionoron_session.
Functions
@spec list( params :: %{ optional(:created) => created() | integer(), optional(:ending_before) => binary(), optional(:expand) => [binary()], optional(:limit) => integer(), optional(:setup_intent) => binary(), optional(:starting_after) => binary() }, opts :: Keyword.t() ) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Returns a list of SetupAttempts that associate with a provided SetupIntent.
Details
- Method:
get - Path:
/v1/setup_attempts