@sergdudko/stripe-js
Version:
Additional methods for working with stripe-js
11 lines (10 loc) • 492 B
TypeScript
import { PaymentMethod } from "@stripe/stripe-js";
import { StripeExtension } from "./index";
/**
* Delete payment method from customer.
*
* @param paymentMethodId - payment method id (see: https://stripe.com/docs/api/customers/object#payment_method_object-id)
* @param ephemeralKey - customer ephemeral key
* @returns
*/
export declare const deletePaymentMethodFromCustomer: (this: StripeExtension, paymentMethodId: string, ephemeralKey: string) => Promise<PaymentMethod | undefined>;