[−][src]Struct stripe::PaymentIntent
The resource representing a Stripe PaymentIntent object.
For more details see https://stripe.com/docs/api/payment_intents.
Fields
id: Stringallowed_source_types: Vec<String>amount: u64amount_capturable: u64amount_received: u64application: Option<String>application_fee_amount: Option<u64>canceled_at: Option<Timestamp>cancellation_reason: Option<CancellationReason>capture_method: CaptureMethodcharges: List<Charge>client_secret: Option<String>confirmation_method: Option<ConfirmationMethod>created: Timestampcurrency: Currencycustomer: Option<String>description: Option<String>last_payment_error: Option<PaymentError>livemode: boolmetadata: Metadatanext_source_action: Option<NextSourceAction>on_behalf_of: Option<String>receipt_email: Option<String>review: Option<String>shipping: Option<ShippingDetails>source: Option<String>statement_descriptor: Option<String>status: PaymentIntentStatustransfer_data: Option<TransferData>transfer_group: Option<String>Methods
impl PaymentIntent[src]
pub fn create(
client: &Client,
params: PaymentIntentCreateParams
) -> Response<PaymentIntent>[src]
client: &Client,
params: PaymentIntentCreateParams
) -> Response<PaymentIntent>
Creates a new payment_intent.
For more details see https://stripe.com/docs/api/payment_intents/create.
pub fn retrieve(
client: &Client,
payment_intent_id: &str
) -> Response<PaymentIntent>[src]
client: &Client,
payment_intent_id: &str
) -> Response<PaymentIntent>
Retrieves the details of a payment_intent.
For more details see https://stripe.com/docs/api/payment_intents/retrieve.
pub fn update(
client: &Client,
payment_intent_id: &str,
params: PaymentIntentUpdateParams
) -> Response<PaymentIntent>[src]
client: &Client,
payment_intent_id: &str,
params: PaymentIntentUpdateParams
) -> Response<PaymentIntent>
Updates a payment_intent's properties.
For more details see https://stripe.com/docs/api/payment_intents/update.
pub fn confirm(
client: &Client,
payment_intent_id: &str,
params: PaymentIntentConfirmParams
) -> Response<PaymentIntent>[src]
client: &Client,
payment_intent_id: &str,
params: PaymentIntentConfirmParams
) -> Response<PaymentIntent>
Confirm that customer intends to pay with current or provided source. Upon confirmation, the PaymentIntent will attempt to initiate a payment.
For more details see https://stripe.com/docs/api/payment_intents/confirm.
pub fn capture(
client: &Client,
payment_intent_id: &str,
params: PaymentIntentCaptureParams
) -> Response<PaymentIntent>[src]
client: &Client,
payment_intent_id: &str,
params: PaymentIntentCaptureParams
) -> Response<PaymentIntent>
Capture the funds of an existing uncaptured PaymentIntent where required_action="requires_capture".
For more details see https://stripe.com/docs/api/payment_intents/capture.
pub fn cancel(
client: &Client,
payment_intent_id: &str,
params: PaymentIntentCancelParams
) -> Response<PaymentIntent>[src]
client: &Client,
payment_intent_id: &str,
params: PaymentIntentCancelParams
) -> Response<PaymentIntent>
A PaymentIntent object can be canceled when it is in one of these statuses: requires_source, requires_capture, requires_confirmation, requires_source_action.
For more details see https://stripe.com/docs/api/payment_intents/cancel.
pub fn list(
client: &Client,
params: PaymentIntentListParams
) -> Response<List<PaymentIntent>>[src]
client: &Client,
params: PaymentIntentListParams
) -> Response<List<PaymentIntent>>
List all payment_intents.
For more details see https://stripe.com/docs/api/payment_intents/list.
Trait Implementations
impl Clone for PaymentIntent[src]
fn clone(&self) -> PaymentIntent[src]
default fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for PaymentIntent[src]
impl Serialize for PaymentIntent[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de> Deserialize<'de> for PaymentIntent[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for PaymentIntent
impl Sync for PaymentIntent
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self