Rocky_Mountain_Vending/.pnpm-store/v10/files/26/b98f17415f129464727b2a1d466cae31f3a73d1e4f889df48b26574868ae71241d7758deb0b5dd4978b83ddb3e5ca50388f39d1ef7ea278c6b4c6e7086faba
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

101 lines
2.4 KiB
Text

export type StripePaymentMethodMessagingElement = {
/**
* The `element.mount` method attaches your [Element](https://stripe.com/docs/js/element) to the DOM.
* `element.mount` accepts either a CSS Selector (e.g., `'#payment-method-messaging'`) or a DOM element.
*/
mount(domElement: string | HTMLElement): void;
/**
* Removes the element from the DOM and destroys it.
* A destroyed element can not be re-activated or re-mounted to the DOM.
*/
destroy(): void;
/**
* Unmounts the element from the DOM.
* Call `element.mount` to re-attach it to the DOM.
*/
unmount(): void;
/**
* Updates the options the `PaymentMethodMessagingElement` was initialized with.
* Updates are merged into the existing configuration.
*/
update(options: Partial<StripePaymentMethodMessagingElementOptions>): void;
/**
* Triggered when the element is fully loaded and ready to perform method calls.
*/
on(
eventType: 'ready',
handler: (event: {elementType: 'paymentMethodMessaging'}) => any
): StripePaymentMethodMessagingElement;
};
export interface StripePaymentMethodMessagingElementOptions {
/**
* The total amount in the smallest currency unit.
*/
amount: number;
/**
* The currency to display.
*/
currency:
| 'USD'
| 'GBP'
| 'EUR'
| 'DKK'
| 'NOK'
| 'SEK'
| 'AUD'
| 'CAD'
| 'NZD';
/**
* Payment methods to show messaging for.
*/
paymentMethodTypes?: Array<'afterpay_clearpay' | 'klarna' | 'affirm'>;
/**
* Override the order in which payment methods are displayed in the Payment Method Messaging Element.
* By default, the Payment Method Messaging Element will use a dynamic ordering that optimizes payment method display for each user.
*/
paymentMethodOrder?: Array<'afterpay_clearpay' | 'klarna' | 'affirm'>;
/**
* @deprecated Use `paymentMethodTypes` instead.
*/
paymentMethods?: Array<'afterpay_clearpay' | 'klarna' | 'affirm'>;
/**
* The country the end-buyer is in.
*/
countryCode:
| 'US'
| 'CA'
| 'AU'
| 'NZ'
| 'GB'
| 'IE'
| 'FR'
| 'ES'
| 'DE'
| 'AT'
| 'BE'
| 'DK'
| 'FI'
| 'IT'
| 'NL'
| 'NO'
| 'SE';
/**
* The logo color to display in the message. Defaults to black
*/
logoColor?: 'black' | 'white' | 'color';
metaData?: {
messagingClientReferenceId: string | null;
};
}