ngx-stripe
Version:
Collect Payments with Stripe: The Angular Way
32 lines (31 loc) • 2.32 kB
TypeScript
import { ElementRef, EventEmitter, OnInit, OnChanges, SimpleChanges, OnDestroy, TemplateRef, ChangeDetectorRef } from '@angular/core';
import { StripeElementsOptions, StripeElements, StripeIssuingCardNumberDisplayElementOptions, StripeIssuingCardNumberDisplayElement } 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 StripeIssuingCardNumberDisplayComponent implements OnInit, OnChanges, OnDestroy {
private cdr;
stripeElementsService: StripeElementsService;
private elementsProvider;
loadingTemplate?: TemplateRef<NgxStripeElementLoadingTemplateDirective>;
stripeElementRef: ElementRef;
element: StripeIssuingCardNumberDisplayElement;
containerClass: string;
options: StripeIssuingCardNumberDisplayElementOptions;
elementsOptions: Partial<StripeElementsOptions>;
stripe: StripeServiceInterface;
load: EventEmitter<StripeIssuingCardNumberDisplayElement>;
elements: StripeElements;
state: 'notready' | 'starting' | 'ready';
private elementsSubscription;
constructor(cdr: ChangeDetectorRef, stripeElementsService: StripeElementsService, elementsProvider: StripeElementsDirective);
ngOnChanges(changes: SimpleChanges): Promise<void>;
ngOnInit(): Promise<void>;
ngOnDestroy(): void;
update(options: Partial<StripeIssuingCardNumberDisplayElementOptions>): void;
private createElement;
static ɵfac: i0.ɵɵFactoryDeclaration<StripeIssuingCardNumberDisplayComponent, [null, null, { optional: true; }]>;
static ɵcmp: i0.ɵɵComponentDeclaration<StripeIssuingCardNumberDisplayComponent, "ngx-stripe-issuing-card-number-display", never, { "containerClass": { "alias": "containerClass"; "required": false; }; "options": { "alias": "options"; "required": false; }; "elementsOptions": { "alias": "elementsOptions"; "required": false; }; "stripe": { "alias": "stripe"; "required": false; }; }, { "load": "load"; }, ["loadingTemplate"], never, true, never>;
}