Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-stripe

Package Overview
Dependencies
Maintainers
1
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-stripe - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

12

bundles/ngx-stripe.umd.js

@@ -227,3 +227,4 @@ (function (global, factory) {

.filter(function (stripe) { return Boolean(stripe); })
.map(function (stripe) { return ((stripe)).elements(options); });
.map(function (stripe) { return ((stripe)).elements(options); })
.first();
};

@@ -250,3 +251,4 @@ /**

}
});
})
.first();
};

@@ -268,3 +270,4 @@ /**

return rxjs_Observable.Observable.fromPromise(stripe.createSource(/** @type {?} */ (a), b));
});
})
.first();
};

@@ -282,3 +285,4 @@ /**

return rxjs_Observable.Observable.fromPromise(stripe.retrieveSource(source));
});
})
.first();
};

@@ -285,0 +289,0 @@ /**

@@ -1,2 +0,2 @@

!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports,require("@angular/core"),require("@angular/common"),require("rxjs/BehaviorSubject"),require("rxjs/Observable"),require("rxjs/add/observable/combineLatest"),require("rxjs/add/observable/fromPromise"),require("rxjs/add/observable/of"),require("rxjs/add/operator/switchMap"),require("rxjs/add/operator/filter"),require("rxjs/add/operator/first"),require("rxjs/add/operator/map")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/common","rxjs/BehaviorSubject","rxjs/Observable","rxjs/add/observable/combineLatest","rxjs/add/observable/fromPromise","rxjs/add/observable/of","rxjs/add/operator/switchMap","rxjs/add/operator/filter","rxjs/add/operator/first","rxjs/add/operator/map"],factory):factory((global.ng=global.ng||{},global.ng.stripe=global.ng.stripe||{}),global.ng.core,global.ng.common,global.Rx,global.Rx)}(this,function(exports,_angular_core,_angular_common,rxjs_BehaviorSubject,rxjs_Observable){"use strict";function isSourceData(sourceData){return"type"in sourceData}function isBankAccount(account){return"bank_account"===account}function isBankAccountData(bankAccountData){return"country"in bankAccountData&&"currency"in bankAccountData&&"routing_number"in bankAccountData&&"account_number"in bankAccountData&&"account_holder_name"in bankAccountData&&"account_holder_type"in bankAccountData&&("individual"===bankAccountData.account_holder_type||"company"===bankAccountData.account_holder_type)}function isPii(pii){return"pii"===pii}function isPiiData(piiData){return"personal_id_number"in piiData}var WindowRef=function(){function WindowRef(platformId){this.platformId=platformId}return WindowRef.prototype.getNativeWindow=function(){return _angular_common.isPlatformBrowser(this.platformId)?window:{}},WindowRef}();WindowRef.decorators=[{type:_angular_core.Injectable}],WindowRef.ctorParameters=function(){return[{type:void 0,decorators:[{type:_angular_core.Inject,args:[_angular_core.PLATFORM_ID]}]}]};var DocumentRef=function(){function DocumentRef(platformId){this.platformId=platformId}return DocumentRef.prototype.getNativeDocument=function(){return _angular_common.isPlatformBrowser(this.platformId)?document:{}},DocumentRef}();DocumentRef.decorators=[{type:_angular_core.Injectable}],DocumentRef.ctorParameters=function(){return[{type:void 0,decorators:[{type:_angular_core.Inject,args:[_angular_core.PLATFORM_ID]}]}]};var LazyStripeAPILoader=function(){function LazyStripeAPILoader(platformId,window,document){this.platformId=platformId,this.window=window,this.document=document,this.status=new rxjs_BehaviorSubject.BehaviorSubject({error:!1,loaded:!1,loading:!1})}return LazyStripeAPILoader.prototype.asStream=function(){return this.load(),this.status.asObservable()},LazyStripeAPILoader.prototype.isReady=function(){return this.status.getValue().loaded},LazyStripeAPILoader.prototype.load=function(){var _this=this;if(!_angular_common.isPlatformServer(this.platformId)){var status=this.status.getValue();if(this.window.getNativeWindow().hasOwnProperty("Stripe"))this.status.next({error:!1,loaded:!0,loading:!1});else if(!status.loaded&&!status.loading){this.status.next(Object.assign({},status,{loading:!0}));var script=this.document.getNativeDocument().createElement("script");script.type="text/javascript",script.async=!0,script.defer=!0,script.src="https://js.stripe.com/v3/",script.onload=function(){_this.status.next({error:!1,loaded:!0,loading:!1})},script.onerror=function(){_this.status.next({error:!0,loaded:!1,loading:!1})},this.document.getNativeDocument().body.appendChild(script)}}},LazyStripeAPILoader}();LazyStripeAPILoader.decorators=[{type:_angular_core.Injectable}],LazyStripeAPILoader.ctorParameters=function(){return[{type:void 0,decorators:[{type:_angular_core.Inject,args:[_angular_core.PLATFORM_ID]}]},{type:WindowRef},{type:DocumentRef}]};var STRIPE_PUBLISHABLE_KEY=new _angular_core.InjectionToken("Stripe Publishable Key"),STRIPE_OPTIONS=new _angular_core.InjectionToken("Stripe Options"),StripeInstance=function(){function StripeInstance(loader,window,key,options){var _this=this;this.loader=loader,this.window=window,this.key=key,this.options=options,this.stripe$=new rxjs_BehaviorSubject.BehaviorSubject(void 0),this.loader.asStream().filter(function(status){return!0===status.loaded}).first().map(function(){return _this.window.getNativeWindow().Stripe}).subscribe(function(Stripe){var stripe=_this.options?Stripe(_this.key,_this.options):Stripe(_this.key);_this.stripe$.next(stripe)})}return StripeInstance.prototype.getInstance=function(){return this.stripe$.getValue()},StripeInstance.prototype.elements=function(options){return this.stripe$.asObservable().filter(function(stripe){return Boolean(stripe)}).map(function(stripe){return stripe.elements(options)})},StripeInstance.prototype.createToken=function(a,b){return this.stripe$.asObservable().filter(function(stripe){return Boolean(stripe)}).switchMap(function(s){var stripe=s;return isBankAccount(a)&&isBankAccountData(b)?rxjs_Observable.Observable.fromPromise(stripe.createToken(a,b)):(isPii(a)&&isPiiData(b),rxjs_Observable.Observable.fromPromise(stripe.createToken(a,b)))})},StripeInstance.prototype.createSource=function(a,b){return this.stripe$.asObservable().filter(function(stripe){return Boolean(stripe)}).switchMap(function(s){var stripe=s;return isSourceData(a)?rxjs_Observable.Observable.fromPromise(stripe.createSource(a)):rxjs_Observable.Observable.fromPromise(stripe.createSource(a,b))})},StripeInstance.prototype.retrieveSource=function(source){return this.stripe$.asObservable().filter(function(stripe){return Boolean(stripe)}).switchMap(function(s){var stripe=s;return rxjs_Observable.Observable.fromPromise(stripe.retrieveSource(source))})},StripeInstance.prototype.paymentRequest=function(options){var stripe=this.getInstance();if(stripe)return stripe.paymentRequest(options)},StripeInstance}(),StripeService=function(){function StripeService(key,options,loader,window){this.key=key,this.options=options,this.loader=loader,this.window=window,key&&(this.stripe=new StripeInstance(this.loader,this.window,key,options))}return StripeService.prototype.getStripeReference=function(){var _this=this;return this.loader.asStream().filter(function(status){return!0===status.loaded}).map(function(){return _this.window.getNativeWindow().Stripe})},StripeService.prototype.getInstance=function(){return this.stripe.getInstance()},StripeService.prototype.setKey=function(key,options){return this.changeKey(key,options)},StripeService.prototype.changeKey=function(key,options){return this.stripe=new StripeInstance(this.loader,this.window,key,options),this.stripe},StripeService.prototype.elements=function(options){return this.stripe.elements(options)},StripeService.prototype.createToken=function(a,b){return this.stripe.createToken(a,b)},StripeService.prototype.createSource=function(a,b){return this.stripe.createSource(a,b)},StripeService.prototype.retrieveSource=function(source){return this.stripe.retrieveSource(source)},StripeService.prototype.paymentRequest=function(options){return this.stripe.paymentRequest(options)},StripeService}();StripeService.decorators=[{type:_angular_core.Injectable}],StripeService.ctorParameters=function(){return[{type:void 0,decorators:[{type:_angular_core.Inject,args:[STRIPE_PUBLISHABLE_KEY]}]},{type:void 0,decorators:[{type:_angular_core.Inject,args:[STRIPE_OPTIONS]}]},{type:LazyStripeAPILoader},{type:WindowRef}]};var StripeFactoryService=function(){function StripeFactoryService(baseKey,baseOptions,loader,window){this.baseKey=baseKey,this.baseOptions=baseOptions,this.loader=loader,this.window=window}return StripeFactoryService.prototype.create=function(key,options){return new StripeInstance(this.loader,this.window,key,options)},StripeFactoryService}();StripeFactoryService.decorators=[{type:_angular_core.Injectable}],StripeFactoryService.ctorParameters=function(){return[{type:void 0,decorators:[{type:_angular_core.Inject,args:[STRIPE_PUBLISHABLE_KEY]}]},{type:void 0,decorators:[{type:_angular_core.Inject,args:[STRIPE_OPTIONS]}]},{type:LazyStripeAPILoader},{type:WindowRef}]};var StripeCardComponent=function(){function StripeCardComponent(stripeService){this.stripeService=stripeService,this.card=new _angular_core.EventEmitter,this.on=new _angular_core.EventEmitter,this.options$=new rxjs_BehaviorSubject.BehaviorSubject({}),this.elementsOptions$=new rxjs_BehaviorSubject.BehaviorSubject({}),this.stripe$=new rxjs_BehaviorSubject.BehaviorSubject(null)}return Object.defineProperty(StripeCardComponent.prototype,"options",{set:function(optionsIn){this.options$.next(optionsIn)},enumerable:!0,configurable:!0}),Object.defineProperty(StripeCardComponent.prototype,"elementsOptions",{set:function(optionsIn){this.elementsOptions$.next(optionsIn)},enumerable:!0,configurable:!0}),Object.defineProperty(StripeCardComponent.prototype,"stripe",{set:function(stripeIn){this.stripe$.next(stripeIn)},enumerable:!0,configurable:!0}),StripeCardComponent.prototype.ngOnInit=function(){var _this=this,elements$=rxjs_Observable.Observable.combineLatest(this.elementsOptions$.asObservable(),this.stripe$.asObservable()).switchMap(function(_a){var options=_a[0],stripe=_a[1];return stripe?Object.keys(options).length>0?stripe.elements(options):stripe.elements():Object.keys(options).length>0?_this.stripeService.elements(options):_this.stripeService.elements()});rxjs_Observable.Observable.combineLatest(elements$,this.options$.asObservable().filter(function(options){return Boolean(options)})).subscribe(function(_a){var elements=_a[0],options=_a[1];_this.element=elements.create("card",options),_this.element.on("blur",function(ev){return _this.on.emit({event:ev,type:"blur"})}),_this.element.on("change",function(ev){return _this.on.emit({event:ev,type:"change"})}),_this.element.on("click",function(ev){return _this.on.emit({event:ev,type:"click"})}),_this.element.on("focus",function(ev){return _this.on.emit({event:ev,type:"focus"})}),_this.element.on("ready",function(ev){return _this.on.emit({event:ev,type:"ready"})}),_this.element.mount(_this.stripeCard.nativeElement),_this.card.emit(_this.element)})},StripeCardComponent.prototype.getCard=function(){return this.element},StripeCardComponent}();StripeCardComponent.decorators=[{type:_angular_core.Component,args:[{selector:"ngx-stripe-card",template:'<div class="field" #stripeCard></div>'}]}],StripeCardComponent.ctorParameters=function(){return[{type:StripeService}]},StripeCardComponent.propDecorators={card:[{type:_angular_core.Output}],on:[{type:_angular_core.Output}],stripeCard:[{type:_angular_core.ViewChild,args:["stripeCard"]}],options:[{type:_angular_core.Input}],elementsOptions:[{type:_angular_core.Input}],stripe:[{type:_angular_core.Input}]};var NgxStripeModule=function(){function NgxStripeModule(){}return NgxStripeModule.forRoot=function(publishableKey,options){return{ngModule:NgxStripeModule,providers:[LazyStripeAPILoader,StripeService,StripeFactoryService,WindowRef,DocumentRef,{provide:STRIPE_PUBLISHABLE_KEY,useValue:publishableKey},{provide:STRIPE_OPTIONS,useValue:options}]}},NgxStripeModule}();NgxStripeModule.decorators=[{type:_angular_core.NgModule,args:[{declarations:[StripeCardComponent],exports:[StripeCardComponent]}]}],NgxStripeModule.ctorParameters=function(){return[]},exports.NgxStripeModule=NgxStripeModule,exports.StripeCardComponent=StripeCardComponent,exports.StripeService=StripeService,exports.StripeFactoryService=StripeFactoryService,exports.StripeInstance=StripeInstance,exports.LazyStripeAPILoader=LazyStripeAPILoader,exports.WindowRef=WindowRef,exports.DocumentRef=DocumentRef,exports.isSourceData=isSourceData,exports.STRIPE_PUBLISHABLE_KEY=STRIPE_PUBLISHABLE_KEY,exports.STRIPE_OPTIONS=STRIPE_OPTIONS,exports.isBankAccount=isBankAccount,exports.isBankAccountData=isBankAccountData,exports.isPii=isPii,exports.isPiiData=isPiiData,Object.defineProperty(exports,"__esModule",{value:!0})});
!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports,require("@angular/core"),require("@angular/common"),require("rxjs/BehaviorSubject"),require("rxjs/Observable"),require("rxjs/add/observable/combineLatest"),require("rxjs/add/observable/fromPromise"),require("rxjs/add/observable/of"),require("rxjs/add/operator/switchMap"),require("rxjs/add/operator/filter"),require("rxjs/add/operator/first"),require("rxjs/add/operator/map")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/common","rxjs/BehaviorSubject","rxjs/Observable","rxjs/add/observable/combineLatest","rxjs/add/observable/fromPromise","rxjs/add/observable/of","rxjs/add/operator/switchMap","rxjs/add/operator/filter","rxjs/add/operator/first","rxjs/add/operator/map"],factory):factory((global.ng=global.ng||{},global.ng.stripe=global.ng.stripe||{}),global.ng.core,global.ng.common,global.Rx,global.Rx)}(this,function(exports,_angular_core,_angular_common,rxjs_BehaviorSubject,rxjs_Observable){"use strict";function isSourceData(sourceData){return"type"in sourceData}function isBankAccount(account){return"bank_account"===account}function isBankAccountData(bankAccountData){return"country"in bankAccountData&&"currency"in bankAccountData&&"routing_number"in bankAccountData&&"account_number"in bankAccountData&&"account_holder_name"in bankAccountData&&"account_holder_type"in bankAccountData&&("individual"===bankAccountData.account_holder_type||"company"===bankAccountData.account_holder_type)}function isPii(pii){return"pii"===pii}function isPiiData(piiData){return"personal_id_number"in piiData}var WindowRef=function(){function WindowRef(platformId){this.platformId=platformId}return WindowRef.prototype.getNativeWindow=function(){return _angular_common.isPlatformBrowser(this.platformId)?window:{}},WindowRef}();WindowRef.decorators=[{type:_angular_core.Injectable}],WindowRef.ctorParameters=function(){return[{type:void 0,decorators:[{type:_angular_core.Inject,args:[_angular_core.PLATFORM_ID]}]}]};var DocumentRef=function(){function DocumentRef(platformId){this.platformId=platformId}return DocumentRef.prototype.getNativeDocument=function(){return _angular_common.isPlatformBrowser(this.platformId)?document:{}},DocumentRef}();DocumentRef.decorators=[{type:_angular_core.Injectable}],DocumentRef.ctorParameters=function(){return[{type:void 0,decorators:[{type:_angular_core.Inject,args:[_angular_core.PLATFORM_ID]}]}]};var LazyStripeAPILoader=function(){function LazyStripeAPILoader(platformId,window,document){this.platformId=platformId,this.window=window,this.document=document,this.status=new rxjs_BehaviorSubject.BehaviorSubject({error:!1,loaded:!1,loading:!1})}return LazyStripeAPILoader.prototype.asStream=function(){return this.load(),this.status.asObservable()},LazyStripeAPILoader.prototype.isReady=function(){return this.status.getValue().loaded},LazyStripeAPILoader.prototype.load=function(){var _this=this;if(!_angular_common.isPlatformServer(this.platformId)){var status=this.status.getValue();if(this.window.getNativeWindow().hasOwnProperty("Stripe"))this.status.next({error:!1,loaded:!0,loading:!1});else if(!status.loaded&&!status.loading){this.status.next(Object.assign({},status,{loading:!0}));var script=this.document.getNativeDocument().createElement("script");script.type="text/javascript",script.async=!0,script.defer=!0,script.src="https://js.stripe.com/v3/",script.onload=function(){_this.status.next({error:!1,loaded:!0,loading:!1})},script.onerror=function(){_this.status.next({error:!0,loaded:!1,loading:!1})},this.document.getNativeDocument().body.appendChild(script)}}},LazyStripeAPILoader}();LazyStripeAPILoader.decorators=[{type:_angular_core.Injectable}],LazyStripeAPILoader.ctorParameters=function(){return[{type:void 0,decorators:[{type:_angular_core.Inject,args:[_angular_core.PLATFORM_ID]}]},{type:WindowRef},{type:DocumentRef}]};var STRIPE_PUBLISHABLE_KEY=new _angular_core.InjectionToken("Stripe Publishable Key"),STRIPE_OPTIONS=new _angular_core.InjectionToken("Stripe Options"),StripeInstance=function(){function StripeInstance(loader,window,key,options){var _this=this;this.loader=loader,this.window=window,this.key=key,this.options=options,this.stripe$=new rxjs_BehaviorSubject.BehaviorSubject(void 0),this.loader.asStream().filter(function(status){return!0===status.loaded}).first().map(function(){return _this.window.getNativeWindow().Stripe}).subscribe(function(Stripe){var stripe=_this.options?Stripe(_this.key,_this.options):Stripe(_this.key);_this.stripe$.next(stripe)})}return StripeInstance.prototype.getInstance=function(){return this.stripe$.getValue()},StripeInstance.prototype.elements=function(options){return this.stripe$.asObservable().filter(function(stripe){return Boolean(stripe)}).map(function(stripe){return stripe.elements(options)}).first()},StripeInstance.prototype.createToken=function(a,b){return this.stripe$.asObservable().filter(function(stripe){return Boolean(stripe)}).switchMap(function(s){var stripe=s;return isBankAccount(a)&&isBankAccountData(b)?rxjs_Observable.Observable.fromPromise(stripe.createToken(a,b)):(isPii(a)&&isPiiData(b),rxjs_Observable.Observable.fromPromise(stripe.createToken(a,b)))}).first()},StripeInstance.prototype.createSource=function(a,b){return this.stripe$.asObservable().filter(function(stripe){return Boolean(stripe)}).switchMap(function(s){var stripe=s;return isSourceData(a)?rxjs_Observable.Observable.fromPromise(stripe.createSource(a)):rxjs_Observable.Observable.fromPromise(stripe.createSource(a,b))}).first()},StripeInstance.prototype.retrieveSource=function(source){return this.stripe$.asObservable().filter(function(stripe){return Boolean(stripe)}).switchMap(function(s){var stripe=s;return rxjs_Observable.Observable.fromPromise(stripe.retrieveSource(source))}).first()},StripeInstance.prototype.paymentRequest=function(options){var stripe=this.getInstance();if(stripe)return stripe.paymentRequest(options)},StripeInstance}(),StripeService=function(){function StripeService(key,options,loader,window){this.key=key,this.options=options,this.loader=loader,this.window=window,key&&(this.stripe=new StripeInstance(this.loader,this.window,key,options))}return StripeService.prototype.getStripeReference=function(){var _this=this;return this.loader.asStream().filter(function(status){return!0===status.loaded}).map(function(){return _this.window.getNativeWindow().Stripe})},StripeService.prototype.getInstance=function(){return this.stripe.getInstance()},StripeService.prototype.setKey=function(key,options){return this.changeKey(key,options)},StripeService.prototype.changeKey=function(key,options){return this.stripe=new StripeInstance(this.loader,this.window,key,options),this.stripe},StripeService.prototype.elements=function(options){return this.stripe.elements(options)},StripeService.prototype.createToken=function(a,b){return this.stripe.createToken(a,b)},StripeService.prototype.createSource=function(a,b){return this.stripe.createSource(a,b)},StripeService.prototype.retrieveSource=function(source){return this.stripe.retrieveSource(source)},StripeService.prototype.paymentRequest=function(options){return this.stripe.paymentRequest(options)},StripeService}();StripeService.decorators=[{type:_angular_core.Injectable}],StripeService.ctorParameters=function(){return[{type:void 0,decorators:[{type:_angular_core.Inject,args:[STRIPE_PUBLISHABLE_KEY]}]},{type:void 0,decorators:[{type:_angular_core.Inject,args:[STRIPE_OPTIONS]}]},{type:LazyStripeAPILoader},{type:WindowRef}]};var StripeFactoryService=function(){function StripeFactoryService(baseKey,baseOptions,loader,window){this.baseKey=baseKey,this.baseOptions=baseOptions,this.loader=loader,this.window=window}return StripeFactoryService.prototype.create=function(key,options){return new StripeInstance(this.loader,this.window,key,options)},StripeFactoryService}();StripeFactoryService.decorators=[{type:_angular_core.Injectable}],StripeFactoryService.ctorParameters=function(){return[{type:void 0,decorators:[{type:_angular_core.Inject,args:[STRIPE_PUBLISHABLE_KEY]}]},{type:void 0,decorators:[{type:_angular_core.Inject,args:[STRIPE_OPTIONS]}]},{type:LazyStripeAPILoader},{type:WindowRef}]};var StripeCardComponent=function(){function StripeCardComponent(stripeService){this.stripeService=stripeService,this.card=new _angular_core.EventEmitter,this.on=new _angular_core.EventEmitter,this.options$=new rxjs_BehaviorSubject.BehaviorSubject({}),this.elementsOptions$=new rxjs_BehaviorSubject.BehaviorSubject({}),this.stripe$=new rxjs_BehaviorSubject.BehaviorSubject(null)}return Object.defineProperty(StripeCardComponent.prototype,"options",{set:function(optionsIn){this.options$.next(optionsIn)},enumerable:!0,configurable:!0}),Object.defineProperty(StripeCardComponent.prototype,"elementsOptions",{set:function(optionsIn){this.elementsOptions$.next(optionsIn)},enumerable:!0,configurable:!0}),Object.defineProperty(StripeCardComponent.prototype,"stripe",{set:function(stripeIn){this.stripe$.next(stripeIn)},enumerable:!0,configurable:!0}),StripeCardComponent.prototype.ngOnInit=function(){var _this=this,elements$=rxjs_Observable.Observable.combineLatest(this.elementsOptions$.asObservable(),this.stripe$.asObservable()).switchMap(function(_a){var options=_a[0],stripe=_a[1];return stripe?Object.keys(options).length>0?stripe.elements(options):stripe.elements():Object.keys(options).length>0?_this.stripeService.elements(options):_this.stripeService.elements()});rxjs_Observable.Observable.combineLatest(elements$,this.options$.asObservable().filter(function(options){return Boolean(options)})).subscribe(function(_a){var elements=_a[0],options=_a[1];_this.element=elements.create("card",options),_this.element.on("blur",function(ev){return _this.on.emit({event:ev,type:"blur"})}),_this.element.on("change",function(ev){return _this.on.emit({event:ev,type:"change"})}),_this.element.on("click",function(ev){return _this.on.emit({event:ev,type:"click"})}),_this.element.on("focus",function(ev){return _this.on.emit({event:ev,type:"focus"})}),_this.element.on("ready",function(ev){return _this.on.emit({event:ev,type:"ready"})}),_this.element.mount(_this.stripeCard.nativeElement),_this.card.emit(_this.element)})},StripeCardComponent.prototype.getCard=function(){return this.element},StripeCardComponent}();StripeCardComponent.decorators=[{type:_angular_core.Component,args:[{selector:"ngx-stripe-card",template:'<div class="field" #stripeCard></div>'}]}],StripeCardComponent.ctorParameters=function(){return[{type:StripeService}]},StripeCardComponent.propDecorators={card:[{type:_angular_core.Output}],on:[{type:_angular_core.Output}],stripeCard:[{type:_angular_core.ViewChild,args:["stripeCard"]}],options:[{type:_angular_core.Input}],elementsOptions:[{type:_angular_core.Input}],stripe:[{type:_angular_core.Input}]};var NgxStripeModule=function(){function NgxStripeModule(){}return NgxStripeModule.forRoot=function(publishableKey,options){return{ngModule:NgxStripeModule,providers:[LazyStripeAPILoader,StripeService,StripeFactoryService,WindowRef,DocumentRef,{provide:STRIPE_PUBLISHABLE_KEY,useValue:publishableKey},{provide:STRIPE_OPTIONS,useValue:options}]}},NgxStripeModule}();NgxStripeModule.decorators=[{type:_angular_core.NgModule,args:[{declarations:[StripeCardComponent],exports:[StripeCardComponent]}]}],NgxStripeModule.ctorParameters=function(){return[]},exports.NgxStripeModule=NgxStripeModule,exports.StripeCardComponent=StripeCardComponent,exports.StripeService=StripeService,exports.StripeFactoryService=StripeFactoryService,exports.StripeInstance=StripeInstance,exports.LazyStripeAPILoader=LazyStripeAPILoader,exports.WindowRef=WindowRef,exports.DocumentRef=DocumentRef,exports.isSourceData=isSourceData,exports.STRIPE_PUBLISHABLE_KEY=STRIPE_PUBLISHABLE_KEY,exports.STRIPE_OPTIONS=STRIPE_OPTIONS,exports.isBankAccount=isBankAccount,exports.isBankAccountData=isBankAccountData,exports.isPii=isPii,exports.isPiiData=isPiiData,Object.defineProperty(exports,"__esModule",{value:!0})});
//# sourceMappingURL=ngx-stripe.umd.min.js.map

@@ -232,3 +232,4 @@ import { Component, EventEmitter, Inject, Injectable, InjectionToken, Input, NgModule, Output, PLATFORM_ID, ViewChild } from '@angular/core';

.filter(function (stripe) { return Boolean(stripe); })
.map(function (stripe) { return ((stripe)).elements(options); });
.map(function (stripe) { return ((stripe)).elements(options); })
.first();
};

@@ -255,3 +256,4 @@ /**

}
});
})
.first();
};

@@ -273,3 +275,4 @@ /**

return Observable.fromPromise(stripe.createSource(/** @type {?} */ (a), b));
});
})
.first();
};

@@ -287,3 +290,4 @@ /**

return Observable.fromPromise(stripe.retrieveSource(source));
});
})
.first();
};

@@ -290,0 +294,0 @@ /**

@@ -234,3 +234,4 @@ import { Component, EventEmitter, Inject, Injectable, InjectionToken, Input, NgModule, Output, PLATFORM_ID, ViewChild } from '@angular/core';

.filter(stripe => Boolean(stripe))
.map(stripe => ((stripe)).elements(options));
.map(stripe => ((stripe)).elements(options))
.first();
}

@@ -257,3 +258,4 @@ /**

}
});
})
.first();
}

@@ -275,3 +277,4 @@ /**

return Observable.fromPromise(stripe.createSource(/** @type {?} */ (a), b));
});
})
.first();
}

@@ -289,3 +292,4 @@ /**

return Observable.fromPromise(stripe.retrieveSource(source));
});
})
.first();
}

@@ -292,0 +296,0 @@ /**

{
"name": "ngx-stripe",
"version": "0.7.0",
"version": "0.7.1",
"description": "Angular 2+ wrapper for StripeJS",

@@ -5,0 +5,0 @@ "main": "./bundles/ngx-stripe.umd.js",

@@ -13,2 +13,11 @@ # ngx-stripe

## Angular 6
There is a branch **6.x** for development to make the library compatible with
Angular 6, to give it a try, use the next tag:
```bash
$ npm install ngx-stripe@next --save
```
## Installation

@@ -15,0 +24,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc