PaymentIntent (resources/payment_intent.rs)

stripe-rs · src/resources/payment_intent.rs · rust · Apache-2.0
payments

Defines the Stripe PaymentIntent data model for Rust, including fields, serialization, and related types.

// Source: https://github.com/wyyerd/stripe-rs | License: Apache-2.0 | Copyright 2019 Wyyerd Group
// Provided via justclaw.it.com; keep this notice with the code.
use crate::config::{Client, Response};
use crate::ids::{CustomerId, PaymentIntentId};
use crate::params::{Expand, Expandable, List, Metadata, Object, RangeQuery, Timestamp};
use crate::resources::{
    Account, Application, Charge, Currency, Customer, Invoice, PaymentIntentOffSession,
    PaymentMethod, PaymentSource, Review, Shipping, TransferDataParams,
};
use serde_derive::{Deserialize, Serialize};

/// The resource representing a Stripe "PaymentIntent".
///
/// For more details see [https://stripe.com/docs/api/payment_intents/object](https://stripe.com/docs/api/payment_intents/object).
#[derive(Clone, Debug, Deserialize, Ser

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key