pub struct IncrementAuthorizationPaymentIntent { /* private fields */ }
Expand description
Perform an incremental authorization on an eligible
PaymentIntent. To be eligible, the
PaymentIntent’s status must be requires_capture
and
incremental_authorization_supported.
must be true
.
Incremental authorizations attempt to increase the authorized amount on
your customer’s card to the new, higher amount
provided. Similar to the
initial authorization, incremental authorizations can be declined. A
single PaymentIntent can call this endpoint multiple times to further
increase the authorized amount.
If the incremental authorization succeeds, the PaymentIntent object returns with the updated amount. If the incremental authorization fails, a card_declined error returns, and no other fields on the PaymentIntent or Charge update. The PaymentIntent object remains capturable for the previously authorized amount.
Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it’s captured, a PaymentIntent can no longer be incremented.
Learn more about incremental authorizations.
Implementations§
Source§impl IncrementAuthorizationPaymentIntent
impl IncrementAuthorizationPaymentIntent
Sourcepub fn new(intent: impl Into<PaymentIntentId>, amount: impl Into<i64>) -> Self
pub fn new(intent: impl Into<PaymentIntentId>, amount: impl Into<i64>) -> Self
Construct a new IncrementAuthorizationPaymentIntent
.
Sourcepub fn application_fee_amount(
self,
application_fee_amount: impl Into<i64>,
) -> Self
pub fn application_fee_amount( self, application_fee_amount: impl Into<i64>, ) -> Self
The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner’s Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents use case for connected accounts.
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
An arbitrary string attached to the object. Often useful for displaying to users.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Sourcepub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
pub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata
.
Sourcepub fn statement_descriptor(
self,
statement_descriptor: impl Into<String>,
) -> Self
pub fn statement_descriptor( self, statement_descriptor: impl Into<String>, ) -> Self
Text that appears on the customer’s statement as the statement descriptor for a non-card or card charge. This value overrides the account’s default statement descriptor. For information about requirements, including the 22-character limit, see the Statement Descriptor docs.
Sourcepub fn transfer_data(
self,
transfer_data: impl Into<IncrementAuthorizationPaymentIntentTransferData>,
) -> Self
pub fn transfer_data( self, transfer_data: impl Into<IncrementAuthorizationPaymentIntentTransferData>, ) -> Self
The parameters used to automatically create a transfer after the payment is captured. Learn more about the use case for connected accounts.
Source§impl IncrementAuthorizationPaymentIntent
impl IncrementAuthorizationPaymentIntent
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for IncrementAuthorizationPaymentIntent
impl Clone for IncrementAuthorizationPaymentIntent
Source§fn clone(&self) -> IncrementAuthorizationPaymentIntent
fn clone(&self) -> IncrementAuthorizationPaymentIntent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more