1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Stripe-specific types and helpers for MPP.
//!
//! This module provides the Stripe payment method implementation for one-time
//! charges using Stripe's Shared Payment Tokens (SPTs).
//!
//! # Payment Flow
//!
//! 1. Server issues a 402 challenge with `method="stripe"`, `intent="charge"`
//! 2. Client creates an SPT via a server-proxied Stripe API call
//! 3. Client sends credential containing the SPT
//! 4. Server creates a Stripe PaymentIntent with `confirm: true` and the SPT
//! 5. If PaymentIntent status is `succeeded`, payment is verified
//!
//! # Types
//!
//! - [`StripeChargeRequest`]: Stripe-specific charge request fields
//! - [`StripeCredentialPayload`]: Client credential containing the SPT
//!
//! # Constants
//!
//! - [`METHOD_NAME`]: Payment method name ("stripe")
//! - [`INTENT_CHARGE`]: Charge intent name ("charge")
pub use ;
/// Payment method name for Stripe.
pub const METHOD_NAME: &str = "stripe";
/// Charge intent name (re-exported from [`crate::protocol::intents`]).
pub use crateINTENT_CHARGE;
/// Default Stripe API base URL.
pub const DEFAULT_STRIPE_API_BASE: &str = "https://api.stripe.com";