Builder

class Builder

Functions

Link copied to clipboard
fun build(): SetupIntentParameters

Create a final instance of SetupIntentParameters with the parameters that have been set with this builder.

Link copied to clipboard
fun setCustomer(customer: String?): <ERROR CLASS>

Set the ID of the Customer this SetupIntent belongs to, if one exists.

Link copied to clipboard
fun setDescription(description: String?): <ERROR CLASS>

Set an arbitrary string attached to the object. Often useful for displaying to users.

Link copied to clipboard
fun setMetadata(metadata: Map<String, String>?): <ERROR CLASS>

Set of key-value pairs that you can attach to an object.

Link copied to clipboard
fun setOnBehalfOf(onBehalfOf: String?): <ERROR CLASS>

The Stripe account ID for which this SetupIntent is created.

Link copied to clipboard
fun setUsage(usage: String?): <ERROR CLASS>

Indicates how the payment method is intended to be used in the future.