UNPKG

@unchainedshop/plugins

Version:

Official plugin collection for the Unchained Engine with payment, delivery, and pricing adapters

26 lines (25 loc) 1.04 kB
import type { Stripe } from 'stripe'; import type { IOrderPricingSheet } from '@unchainedshop/core'; import type { Order, OrderPayment } from '@unchainedshop/core-orders'; export declare let stripe: Stripe; export declare const upsertCustomer: ({ userId, name, email }: { userId: any; name: any; email: any; }) => Promise<string>; export declare const createRegistrationIntent: ({ userId, name, email, paymentProviderId, descriptorPrefix, }: { userId: string; name: string; email: string; paymentProviderId: string; descriptorPrefix?: string; }, options?: Record<string, any>) => Promise<Stripe.Response<Stripe.SetupIntent>>; export declare const createOrderPaymentIntent: ({ userId, name, email, order, orderPayment, pricing, descriptorPrefix, }: { userId: string; name: string; email: string; order: Order; orderPayment: OrderPayment; pricing: IOrderPricingSheet; descriptorPrefix?: string; }, options?: Record<string, any>) => Promise<Stripe.Response<Stripe.PaymentIntent>>;