A PaymentSourceParams represents all of the supported ways that can
be used to creating a new customer with a payment method or creating
a payment method directly for a customer via Customer::attach_source
.
Not to be confused with SourceParams
which is used by Source::create
to create a source that is not necessarily attached to a customer.
Creates a payment method (e.g. card or bank account) from tokenized data,
using a token typically received from Stripe Elements.
Attach an existing source to an existing customer or
create a new customer from an existing source.
Creates a Card
payment method from the full card information
(e.g. card number, expiration, etc).
You usually want to use a TokenId
received from
Stripe Elements
instead.
Creates a BankAccount
payment method from the full bank information
(e.g. account number, expiration, etc).
You usually want to use a TokenId
received from
Stripe Elements
instead.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static