@nevermined-io/payments
    Preparing search index...

    Interface StripePaymentIntent

    The Stripe PaymentIntent POST /api/v1/fiat/stripe/payment creates for a fiat plan, returned by PlansAPI.orderFiatPlan. Confirm it client-side with Stripe.js and its client_secret. These fields are what callers can rely on; do not depend on any other field of the response.

    interface StripePaymentIntent {
        amount: number;
        client_secret: string | null;
        currency: string;
        id: string;
        status: StripePaymentIntentStatus;
    }
    Index

    Properties

    amount: number

    Amount in the currency's smallest unit (e.g. cents)

    client_secret: string | null

    Secret Stripe.js confirms the payment with. Pass it to Stripe.js only; never log or store it.

    currency: string

    Three-letter ISO currency code, lowercase

    id: string

    PaymentIntent id (pi_…)

    PaymentIntent status