UNPKG

opengig-stripe

Version:

A wrapper for Stripe payment services with support for checkout and payment intents

16 lines (15 loc) 744 B
import Stripe from 'stripe'; export declare class StripePaymentIntent { private stripe; constructor(stripe: Stripe); create({ amount, currency, customerId, metadata, }: { amount: number; currency?: string; customerId?: string; metadata?: Record<string, string>; }): Promise<Stripe.Response<Stripe.PaymentIntent>>; confirm(paymentIntentId: string, paymentMethodId?: string): Promise<Stripe.Response<Stripe.PaymentIntent>>; retrieve(paymentIntentId: string): Promise<Stripe.Response<Stripe.PaymentIntent>>; update(paymentIntentId: string, data: any): Promise<Stripe.Response<Stripe.PaymentIntent>>; cancel(paymentIntentId: string): Promise<Stripe.Response<Stripe.PaymentIntent>>; }