ngx-stripe
Version: 
Collect Payments with Stripe: The Angular Way
36 lines (35 loc) • 2.39 kB
TypeScript
import { ElementRef, EventEmitter, OnInit, OnChanges, SimpleChanges, OnDestroy, TemplateRef } from '@angular/core';
import { StripeElementsOptions, StripeElements, StripePaymentMethodMessagingElement, StripePaymentMethodMessagingElementOptions } from '@stripe/stripe-js';
import { NgxStripeElementLoadingTemplateDirective } from '../directives/stripe-element-loading-template.directive';
import { StripeElementsDirective } from '../directives/elements.directive';
import { StripeServiceInterface } from '../interfaces/stripe-instance.interface';
import { StripeElementsService } from '../services/stripe-elements.service';
import * as i0 from "@angular/core";
export declare class StripePaymentMethodMessagingComponent implements OnInit, OnChanges, OnDestroy {
    stripeElementsService: StripeElementsService;
    private elementsProvider;
    loadingTemplate?: TemplateRef<NgxStripeElementLoadingTemplateDirective>;
    stripeElementRef: ElementRef;
    element: StripePaymentMethodMessagingElement;
    containerClass: string;
    options: StripePaymentMethodMessagingElementOptions;
    elementsOptions: Partial<StripeElementsOptions>;
    stripe: StripeServiceInterface;
    load: EventEmitter<StripePaymentMethodMessagingElement>;
    ready: EventEmitter<void>;
    elements: StripeElements;
    state: 'notready' | 'starting' | 'ready';
    private elementsSubscription;
    constructor(stripeElementsService: StripeElementsService, elementsProvider: StripeElementsDirective);
    ngOnChanges(changes: SimpleChanges): Promise<void>;
    ngOnInit(): Promise<void>;
    ngOnDestroy(): void;
    update(options: Partial<StripePaymentMethodMessagingElementOptions>): void;
    /**
     * @deprecated
     */
    getPaymentMethodMessaging(): StripePaymentMethodMessagingElement;
    private createElement;
    static ɵfac: i0.ɵɵFactoryDeclaration<StripePaymentMethodMessagingComponent, [null, { optional: true; }]>;
    static ɵcmp: i0.ɵɵComponentDeclaration<StripePaymentMethodMessagingComponent, "ngx-stripe-payment-method-messaging", never, { "containerClass": { "alias": "containerClass"; "required": false; }; "options": { "alias": "options"; "required": false; }; "elementsOptions": { "alias": "elementsOptions"; "required": false; }; "stripe": { "alias": "stripe"; "required": false; }; }, { "load": "load"; "ready": "ready"; }, ["loadingTemplate"], never, true, never>;
}