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 9.0.3 to 10.0.0-alpha.0

__ivy_ngcc__/fesm5/ngx-stripe.js

4

bundles/ngx-stripe.umd.min.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("ngx-stripe",["exports","@angular/core","@angular/common","rxjs","rxjs/operators"],t):t((e=e||self)["ngx-stripe"]={},e.ng.core,e.ng.common,e.rxjs,e.rxjs.operators)}(this,(function(e,t,n,r,o){"use strict";
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("rxjs/operators"),require("@angular/common"),require("rxjs")):"function"==typeof define&&define.amd?define("ngx-stripe",["exports","@angular/core","rxjs/operators","@angular/common","rxjs"],e):e((t=t||self)["ngx-stripe"]={},t.ng.core,t.rxjs.operators,t.ng.common,t.rxjs)}(this,(function(t,e,n,i,r){"use strict";
/*! *****************************************************************************

@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation. All rights reserved.

and limitations under the License.
***************************************************************************** */var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,r){t(n,r,e)}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var c=function(){function e(e){this.platformId=e}return e.prototype.getNativeWindow=function(){return n.isPlatformBrowser(this.platformId)?window:{}},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},e=a([t.Injectable(),s(0,t.Inject(t.PLATFORM_ID))],e)}(),p=function(){function e(e){this.platformId=e}return e.prototype.getNativeDocument=function(){return n.isPlatformBrowser(this.platformId)?document:{}},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},e=a([t.Injectable(),s(0,t.Inject(t.PLATFORM_ID))],e)}(),f=function(){function e(e,t,n){this.platformId=e,this.window=t,this.document=n,this.status=new r.BehaviorSubject({error:!1,loaded:!1,loading:!1})}return e.prototype.asStream=function(){return this.load(),this.status.asObservable()},e.prototype.isReady=function(){return this.status.getValue().loaded},e.prototype.load=function(){var e=this;if(!n.isPlatformServer(this.platformId)){var t=this.status.getValue();if(this.window.getNativeWindow().hasOwnProperty("Stripe"))this.status.next({error:!1,loaded:!0,loading:!1});else if(!t.loaded&&!t.loading){this.status.next(i(i({},t),{loading:!0}));var r=this.document.getNativeDocument().createElement("script");r.type="text/javascript",r.async=!0,r.defer=!0,r.src="https://js.stripe.com/v3/",r.onload=function(){e.status.next({error:!1,loaded:!0,loading:!1})},r.onerror=function(){e.status.next({error:!0,loaded:!1,loading:!1})},this.document.getNativeDocument().body.appendChild(r)}}},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:c},{type:p}]},e=a([t.Injectable(),s(0,t.Inject(t.PLATFORM_ID))],e)}(),l=new t.InjectionToken("Stripe Publishable Key"),d=new t.InjectionToken("Stripe Options");function h(e){return"type"in e}function y(e){return"bank_account"===e}function m(e){return"country"in e&&"currency"in e&&"routing_number"in e&&"account_number"in e&&("individual"===e.account_holder_type||"company"===e.account_holder_type||void 0===e.account_holder_type)}function v(e){return"pii"===e}function b(e){return"personal_id_number"in e}var g=function(){function e(e,t,n,i){var a=this;this.loader=e,this.window=t,this.key=n,this.options=i,this.stripe$=new r.BehaviorSubject(void 0),this.loader.asStream().pipe(o.filter((function(e){return!0===e.loaded})),o.first(),o.map((function(){return a.window.getNativeWindow().Stripe}))).subscribe((function(e){var t=a.options?e(a.key,a.options):e(a.key);a.stripe$.next(t)}))}return e.prototype.getInstance=function(){return this.stripe$.getValue()},e.prototype.elements=function(e){return this.stripe$.asObservable().pipe(o.filter((function(e){return Boolean(e)})),o.map((function(t){return t.elements(e)})),o.first())},e.prototype.createToken=function(e,t){return this.stripe$.asObservable().pipe(o.filter((function(e){return Boolean(e)})),o.switchMap((function(n){var o,i=n;return"account"===e&&((o=t).legal_entity||o.tos_shown_and_accepted)||y(e)&&m(t)||v(e)&&b(t),r.from(i.createToken(e,t))})),o.first())},e.prototype.createSource=function(e,t){return this.stripe$.asObservable().pipe(o.filter((function(e){return Boolean(e)})),o.switchMap((function(n){var o=n;return h(e)?r.from(o.createSource(e)):r.from(o.createSource(e,t))})),o.first())},e.prototype.retrieveSource=function(e){return this.stripe$.asObservable().pipe(o.filter((function(e){return Boolean(e)})),o.switchMap((function(t){var n=t;return r.from(n.retrieveSource(e))})),o.first())},e.prototype.paymentRequest=function(e){var t=this.getInstance();if(t)return t.paymentRequest(e)},e.prototype.handleCardPayment=function(e,t,n){return this.stripe$.asObservable().pipe(o.filter((function(e){return Boolean(e)})),o.switchMap((function(o){var i=o;return"type"in t?r.from(i.handleCardPayment(e,t)):r.from(i.handleCardPayment(e,t,n))})))},e.prototype.handleCardAction=function(e){return this.stripe$.asObservable().pipe(o.filter((function(e){return Boolean(e)})),o.switchMap((function(t){var n=t;return r.from(n.handleCardAction(e))})))},e.prototype.confirmPaymentIntent=function(e,t){return this.stripe$.asObservable().pipe(o.filter((function(e){return Boolean(e)})),o.switchMap((function(n){var o=n;return r.from(o.confirmPaymentIntent(e,t))})))},e.prototype.createPaymentMethod=function(e,t,n){return this.stripe$.asObservable().pipe(o.filter((function(e){return Boolean(e)})),o.switchMap((function(o){var i=o;return r.from(i.createPaymentMethod(e,t,n))})),o.first())},e.prototype.handleCardSetup=function(e,t,n){return this.stripe$.asObservable().pipe(o.filter((function(e){return Boolean(e)})),o.switchMap((function(o){var i,a=o;return(i=n)&&"type"in i?r.from(a.handleCardSetup(e,t,n)):r.from(a.handleCardSetup(e,t))})))},e}(),w=function(){function e(e,t,n,r){this.key=e,this.options=t,this.loader=n,this.window=r,e&&(this.stripe=new g(this.loader,this.window,e,t))}return e.prototype.getStripeReference=function(){var e=this;return this.loader.asStream().pipe(o.filter((function(e){return!0===e.loaded})),o.map((function(){return e.window.getNativeWindow().Stripe})))},e.prototype.getInstance=function(){return this.stripe.getInstance()},e.prototype.setKey=function(e,t){return this.changeKey(e,t)},e.prototype.changeKey=function(e,t){return this.stripe=new g(this.loader,this.window,e,t),this.stripe},e.prototype.elements=function(e){return this.stripe.elements(e)},e.prototype.createToken=function(e,t){return this.stripe.createToken(e,t)},e.prototype.createSource=function(e,t){return this.stripe.createSource(e,t)},e.prototype.retrieveSource=function(e){return this.stripe.retrieveSource(e)},e.prototype.paymentRequest=function(e){return this.stripe.paymentRequest(e)},e.prototype.handleCardPayment=function(e,t,n){return this.stripe.handleCardPayment(e,t,n)},e.prototype.handleCardAction=function(e){return this.stripe.handleCardAction(e)},e.prototype.createPaymentMethod=function(e,t,n){return this.stripe.createPaymentMethod(e,t,n)},e.prototype.confirmPaymentIntent=function(e,t){return this.stripe.confirmPaymentIntent(e,t)},e.prototype.handleCardSetup=function(e,t,n){return this.stripe.handleCardSetup(e,t,n)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:void 0,decorators:[{type:t.Inject,args:[d]}]},{type:f},{type:c}]},e=a([t.Injectable(),s(0,t.Inject(l)),s(1,t.Inject(d))],e)}(),I=function(){function e(e,t,n,r){this.baseKey=e,this.baseOptions=t,this.loader=n,this.window=r}return e.prototype.create=function(e,t){return new g(this.loader,this.window,e,t)},e.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[l]}]},{type:String,decorators:[{type:t.Inject,args:[d]}]},{type:f},{type:c}]},e=a([t.Injectable(),s(0,t.Inject(l)),s(1,t.Inject(d))],e)}(),S=function(){function e(e){this.stripeService=e,this.card=new t.EventEmitter,this.on=new t.EventEmitter,this.options$=new r.BehaviorSubject({}),this.elementsOptions$=new r.BehaviorSubject({}),this.stripe$=new r.BehaviorSubject(null)}return Object.defineProperty(e.prototype,"options",{set:function(e){this.options$.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elementsOptions",{set:function(e){this.elementsOptions$.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stripe",{set:function(e){this.stripe$.next(e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this,t=r.combineLatest(this.elementsOptions$.asObservable(),this.stripe$.asObservable()).pipe(o.switchMap((function(t){var n=u(t,2),r=n[0],o=n[1];return o?Object.keys(r).length>0?o.elements(r):o.elements():Object.keys(r).length>0?e.stripeService.elements(r):e.stripeService.elements()})));r.combineLatest(t,this.options$.asObservable().pipe(o.filter((function(e){return Boolean(e)})))).subscribe((function(t){var n=u(t,2),r=n[0],o=n[1];e.element=r.create("card",o),e.element.on("blur",(function(t){return e.on.emit({event:t,type:"blur"})})),e.element.on("change",(function(t){return e.on.emit({event:t,type:"change"})})),e.element.on("click",(function(t){return e.on.emit({event:t,type:"click"})})),e.element.on("focus",(function(t){return e.on.emit({event:t,type:"focus"})})),e.element.on("ready",(function(t){return e.on.emit({event:t,type:"ready"})})),e.element.mount(e.stripeCard.nativeElement),e.card.emit(e.element)}))},e.prototype.getCard=function(){return this.element},e.ctorParameters=function(){return[{type:w}]},a([t.Output()],e.prototype,"card",void 0),a([t.Output()],e.prototype,"on",void 0),a([t.ViewChild("stripeCard")],e.prototype,"stripeCard",void 0),a([t.Input()],e.prototype,"options",null),a([t.Input()],e.prototype,"elementsOptions",null),a([t.Input()],e.prototype,"stripe",null),e=a([t.Component({selector:"ngx-stripe-card",template:'\n <div class="field" #stripeCard></div>\n '})],e)}(),j=function(){function e(){}var n;return n=e,e.forRoot=function(e,t){return{ngModule:n,providers:[f,w,I,c,p,{provide:l,useValue:e},{provide:d,useValue:t}]}},e.forChild=function(e,t){return{ngModule:n,providers:[f,w,I,c,p,{provide:l,useValue:e},{provide:d,useValue:t}]}},e=n=a([t.NgModule({declarations:[S],exports:[S]})],e)}();e.DocumentRef=p,e.LazyStripeAPILoader=f,e.NgxStripeModule=j,e.STRIPE_OPTIONS=d,e.STRIPE_PUBLISHABLE_KEY=l,e.StripeCardComponent=S,e.StripeFactoryService=I,e.StripeInstance=g,e.StripeService=w,e.WindowRef=c,e.isBankAccount=y,e.isBankAccountData=m,e.isPii=v,e.isPiiData=b,e.isSourceData=h,Object.defineProperty(e,"__esModule",{value:!0})}));
***************************************************************************** */var o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function s(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var p=t.length-1;p>=0;p--)(r=t[p])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function p(t,e){return function(n,i){e(n,i,t)}}function u(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{u(i.next(t))}catch(t){o(t)}}function p(t){try{u(i.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,p)}u((i=i.apply(t,e||[])).next())}))}function c(t,e){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function p(o){return function(p){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,p])}}}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t}var l=new e.InjectionToken("Stripe Publishable Key"),h=new e.InjectionToken("Stripe Options"),f=function(){function t(t){this.platformId=t}return t.prototype.getNativeWindow=function(){return i.isPlatformBrowser(this.platformId)?window:{}},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},t=s([e.Injectable(),p(0,e.Inject(e.PLATFORM_ID))],t)}(),d=function(){function t(t){this.platformId=t}return t.prototype.getNativeDocument=function(){return i.isPlatformBrowser(this.platformId)?document:{}},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},t=s([e.Injectable(),p(0,e.Inject(e.PLATFORM_ID))],t)}(),y=function(){function t(t,e,n){this.platformId=t,this.window=e,this.document=n,this.status=new r.BehaviorSubject({error:!1,loaded:!1,loading:!1})}return t.prototype.asStream=function(){return this.load(),this.status.asObservable()},t.prototype.isReady=function(){return this.status.getValue().loaded},t.prototype.load=function(){var t=this;if(!i.isPlatformServer(this.platformId)){var e=this.status.getValue();if(this.window.getNativeWindow().hasOwnProperty("Stripe"))this.status.next({error:!1,loaded:!0,loading:!1});else if(!e.loaded&&!e.loading){this.status.next(o(o({},e),{loading:!0}));var n=this.document.getNativeDocument().createElement("script");n.type="text/javascript",n.async=!0,n.defer=!0,n.src="https://js.stripe.com/v3/",n.onload=function(){t.status.next({error:!1,loaded:!0,loading:!1})},n.onerror=function(){t.status.next({error:!0,loaded:!1,loading:!1})},this.document.getNativeDocument().body.appendChild(n)}}},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:f},{type:d}]},t=s([e.Injectable(),p(0,e.Inject(e.PLATFORM_ID))],t)}(),v=function(){function t(t,e,i,o){var s=this;this.loader=t,this.window=e,this.key=i,this.options=o,this.stripe$=new r.BehaviorSubject(void 0),this.loader.asStream().pipe(n.filter((function(t){return!0===t.loaded})),n.first(),n.map((function(){return s.window.getNativeWindow().Stripe}))).subscribe((function(t){var e=s.options?t(s.key,s.options):t(s.key);s.stripe$.next(e)}))}return Object.defineProperty(t.prototype,"stripe",{get:function(){return this.stripe$.asObservable().pipe(n.filter((function(t){return Boolean(t)})))},enumerable:!0,configurable:!0}),t.prototype.getInstance=function(){return this.stripe$.getValue()},t.prototype.elements=function(t){return this.stripe$.asObservable().pipe(n.filter((function(t){return Boolean(t)})),n.map((function(e){return e.elements(t)})),n.first())},t.prototype.redirectToCheckout=function(t){return this.stripe.pipe(n.switchMap((function(e){return r.from(e.redirectToCheckout(t))})),n.first())},t.prototype.confirmAuBecsDebitPayment=function(t,e){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.confirmAuBecsDebitPayment(t,e))})),n.first())},t.prototype.confirmBancontactPayment=function(t,e,i){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.confirmBancontactPayment(t,e,i))})),n.first())},t.prototype.confirmCardPayment=function(t,e,i){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.confirmCardPayment(t,e,i))})),n.first())},t.prototype.confirmEpsPayment=function(t,e,i){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.confirmEpsPayment(t,e,i))})),n.first())},t.prototype.confirmFpxPayment=function(t,e,i){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.confirmFpxPayment(t,e,i))})),n.first())},t.prototype.confirmGiropayPayment=function(t,e,i){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.confirmGiropayPayment(t,e,i))})),n.first())},t.prototype.confirmIdealPayment=function(t,e,i){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.confirmIdealPayment(t,e,i))})),n.first())},t.prototype.confirmP24Payment=function(t,e,i){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.confirmP24Payment(t,e,i))})),n.first())},t.prototype.confirmSepaDebitPayment=function(t,e){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.confirmSepaDebitPayment(t,e))})),n.first())},t.prototype.handleCardAction=function(t){return this.stripe.pipe(n.switchMap((function(e){return r.from(e.handleCardAction(t))})),n.first())},t.prototype.createPaymentMethod=function(t){return this.stripe.pipe(n.switchMap((function(e){return r.from(e.createPaymentMethod(t))})),n.first())},t.prototype.retrievePaymentIntent=function(t){return this.stripe.pipe(n.switchMap((function(e){return r.from(e.retrievePaymentIntent(t))})),n.first())},t.prototype.confirmAuBecsDebitSetup=function(t,e){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.confirmAuBecsDebitSetup(t,e))})),n.first())},t.prototype.confirmCardSetup=function(t,e,i){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.confirmCardSetup(t,e,i))})),n.first())},t.prototype.confirmSepaDebitSetup=function(t,e){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.confirmSepaDebitSetup(t,e))})),n.first())},t.prototype.retrieveSetupIntent=function(t){return this.stripe.pipe(n.switchMap((function(e){return r.from(e.confirmSepaDebitSetup(t))})),n.first())},t.prototype.paymentRequest=function(t){var e=this.getInstance();return e?e.paymentRequest(t):void 0},t.prototype.createToken=function(t,e){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.createToken(t,e))})),n.first())},t.prototype.createSource=function(t,e){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.createSource(t,e))})),n.first())},t.prototype.retrieveSource=function(t){return this.stripe.pipe(n.switchMap((function(e){return r.from(e.retrieveSource(t))})),n.first())},t.prototype.handleCardPayment=function(t,e,i){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.handleCardPayment(t,e,i))})),n.first())},t.prototype.confirmPaymentIntent=function(t,e,i){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.confirmPaymentIntent(t,e,i))})),n.first())},t.prototype.handleCardSetup=function(t,e,i){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.handleCardSetup(t,e,i))})),n.first())},t.prototype.confirmSetupIntent=function(t,e,i){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.confirmSetupIntent(t,e,i))})),n.first())},t.prototype.handleFpxPayment=function(t,e,i){return this.stripe.pipe(n.switchMap((function(n){return r.from(n.handleFpxPayment(t,e,i))})),n.first())},t}(),E=function(){function t(t,e,n,i){this.key=t,this.options=e,this.loader=n,this.window=i,t&&(this.stripe=new v(this.loader,this.window,t,e))}return t.prototype.getStripeReference=function(){var t=this;return this.loader.asStream().pipe(n.filter((function(t){return!0===t.loaded})),n.map((function(){return t.window.getNativeWindow().Stripe})))},t.prototype.getInstance=function(){return this.stripe.getInstance()},t.prototype.setKey=function(t,e){return this.changeKey(t,e)},t.prototype.changeKey=function(t,e){return this.stripe=new v(this.loader,this.window,t,e),this.stripe},t.prototype.elements=function(t){return this.stripe.elements(t)},t.prototype.redirectToCheckout=function(t){return this.stripe.redirectToCheckout(t)},t.prototype.confirmAuBecsDebitPayment=function(t,e){return this.stripe.confirmAuBecsDebitPayment(t,e)},t.prototype.confirmBancontactPayment=function(t,e,n){return this.stripe.confirmBancontactPayment(t,e,n)},t.prototype.confirmCardPayment=function(t,e,n){return this.stripe.confirmCardPayment(t,e,n)},t.prototype.confirmEpsPayment=function(t,e,n){return this.stripe.confirmEpsPayment(t,e,n)},t.prototype.confirmFpxPayment=function(t,e,n){return this.stripe.confirmFpxPayment(t,e,n)},t.prototype.confirmGiropayPayment=function(t,e,n){return this.stripe.confirmGiropayPayment(t,e,n)},t.prototype.confirmIdealPayment=function(t,e,n){return this.stripe.confirmIdealPayment(t,e,n)},t.prototype.confirmP24Payment=function(t,e,n){return this.stripe.confirmP24Payment(t,e,n)},t.prototype.confirmSepaDebitPayment=function(t,e){return this.stripe.confirmSepaDebitPayment(t,e)},t.prototype.handleCardAction=function(t){return this.stripe.handleCardAction(t)},t.prototype.createPaymentMethod=function(t){return this.stripe.createPaymentMethod(t)},t.prototype.retrievePaymentIntent=function(t){return this.stripe.retrievePaymentIntent(t)},t.prototype.confirmAuBecsDebitSetup=function(t,e){return this.stripe.confirmAuBecsDebitSetup(t,e)},t.prototype.confirmCardSetup=function(t,e,n){return this.stripe.confirmCardSetup(t,e,n)},t.prototype.confirmSepaDebitSetup=function(t,e){return this.stripe.confirmSepaDebitSetup(t,e)},t.prototype.retrieveSetupIntent=function(t){return this.stripe.retrieveSetupIntent(t)},t.prototype.paymentRequest=function(t){return this.stripe.paymentRequest(t)},t.prototype.createToken=function(t,e){return this.stripe.createToken(t,e)},t.prototype.createSource=function(t,e){return this.stripe.createSource(t,e)},t.prototype.retrieveSource=function(t){return this.stripe.retrieveSource(t)},t.prototype.handleCardPayment=function(t,e,n){return this.stripe.handleCardPayment(t,e,n)},t.prototype.confirmPaymentIntent=function(t,e,n){return this.stripe.confirmPaymentIntent(t,e,n)},t.prototype.handleCardSetup=function(t,e,n){return this.stripe.handleCardSetup(t,e,n)},t.prototype.confirmSetupIntent=function(t,e,n){return this.stripe.confirmSetupIntent(t,e,n)},t.prototype.handleFpxPayment=function(t,e,n){return this.stripe.handleFpxPayment(t,e,n)},t.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[l]}]},{type:void 0,decorators:[{type:e.Inject,args:[h]}]},{type:y},{type:f}]},t=s([e.Injectable(),p(0,e.Inject(l)),p(1,e.Inject(h))],t)}(),g=function(){function t(t){this.stripeService=t}return t.prototype.elements=function(t,e){return t?Object.keys(e).length>0?t.elements(e):t.elements():Object.keys(e).length>0?this.stripeService.elements(e):this.stripeService.elements()},t.prototype.paymentRequest=function(t,e){return t?t.paymentRequest(e):this.stripeService.paymentRequest(e)},t.prototype.mergeOptions=function(t,e){return!e||t&&t.classes||t&&t.classes?t:o(o({},t||{}),{classes:{base:e,complete:e+"--complete",empty:e+"--empty",focus:e+"--focus",invalid:e+"--invalid",webkitAutoFill:e+"--webkit-autoFill"}})},t.ctorParameters=function(){return[{type:E}]},t.ɵprov=e["ɵɵdefineInjectable"]({factory:function(){return new t(e["ɵɵinject"](E))},token:t,providedIn:"root"}),t=s([e.Injectable({providedIn:"root"})],t)}(),w=function(){function t(t){this.stripeElementsService=t,this.load=new e.EventEmitter,this.blur=new e.EventEmitter,this.change=new e.EventEmitter,this.focus=new e.EventEmitter,this.ready=new e.EventEmitter,this.escape=new e.EventEmitter}return t.prototype.ngOnChanges=function(t){return u(this,void 0,void 0,(function(){var e,n,i,r,o=this;return c(this,(function(s){switch(s.label){case 0:return e=this.stripeElementsService.mergeOptions(this.options,this.containerClass),n=this.elementsOptions,i=this.stripe,t.elementsOptions||t.stripe?[4,this.stripeElementsService.elements(i,n).toPromise()]:[3,2];case 1:r=s.sent(),this.elements=r,s.label=2;case 2:return(t.options||t.containerClass)&&(this.element?this.update(e):(this.element=this.elements.create("card",e),this.element.on("change",(function(t){return o.change.emit(t)})),this.element.on("blur",(function(){return o.blur.emit()})),this.element.on("focus",(function(){return o.focus.emit()})),this.element.on("ready",(function(){return o.ready.emit()})),this.element.on("escape",(function(){return o.escape.emit()})),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element))),[2]}}))}))},t.prototype.ngOnDestroy=function(){this.element.destroy()},t.prototype.update=function(t){this.element.update(t)},t.prototype.getCard=function(){return this.element},t.ctorParameters=function(){return[{type:g}]},s([e.ViewChild("stripeElementRef")],t.prototype,"stripeElementRef",void 0),s([e.Input()],t.prototype,"containerClass",void 0),s([e.Input()],t.prototype,"options",void 0),s([e.Input()],t.prototype,"elementsOptions",void 0),s([e.Input()],t.prototype,"stripe",void 0),s([e.Output()],t.prototype,"load",void 0),s([e.Output()],t.prototype,"blur",void 0),s([e.Output()],t.prototype,"change",void 0),s([e.Output()],t.prototype,"focus",void 0),s([e.Output()],t.prototype,"ready",void 0),s([e.Output()],t.prototype,"escape",void 0),t=s([e.Component({selector:"ngx-stripe-card",template:'<div class="field" #stripeElementRef></div>'})],t)}(),O=function(){function t(t){this.stripeElementsService=t,this.load=new e.EventEmitter,this.blur=new e.EventEmitter,this.change=new e.EventEmitter,this.focus=new e.EventEmitter,this.ready=new e.EventEmitter,this.escape=new e.EventEmitter}return t.prototype.ngOnChanges=function(t){return u(this,void 0,void 0,(function(){var e,n,i,r,o=this;return c(this,(function(s){switch(s.label){case 0:return e=this.stripeElementsService.mergeOptions(this.options,this.containerClass),n=this.elementsOptions,i=this.stripe,t.elementsOptions||t.stripe?[4,this.stripeElementsService.elements(i,n).toPromise()]:[3,2];case 1:r=s.sent(),this.elements=r,s.label=2;case 2:return(t.options||t.containerClass)&&(this.element?this.update(e):(this.element=this.elements.create("cardNumber",e),this.element.on("change",(function(t){return o.change.emit(t)})),this.element.on("blur",(function(){return o.blur.emit()})),this.element.on("focus",(function(){return o.focus.emit()})),this.element.on("ready",(function(){return o.ready.emit()})),this.element.on("escape",(function(){return o.escape.emit()})),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element))),[2]}}))}))},t.prototype.ngOnDestroy=function(){this.element.destroy()},t.prototype.update=function(t){this.element.update(t)},t.prototype.getCardNumber=function(){return this.element},t.ctorParameters=function(){return[{type:g}]},s([e.ViewChild("stripeElementRef")],t.prototype,"stripeElementRef",void 0),s([e.Input()],t.prototype,"containerClass",void 0),s([e.Input()],t.prototype,"options",void 0),s([e.Input()],t.prototype,"elementsOptions",void 0),s([e.Input()],t.prototype,"stripe",void 0),s([e.Output()],t.prototype,"load",void 0),s([e.Output()],t.prototype,"blur",void 0),s([e.Output()],t.prototype,"change",void 0),s([e.Output()],t.prototype,"focus",void 0),s([e.Output()],t.prototype,"ready",void 0),s([e.Output()],t.prototype,"escape",void 0),t=s([e.Component({selector:"ngx-stripe-card-number",template:'<div class="field" #stripeElementRef></div>'})],t)}(),b=function(){function t(t){this.stripeElementsService=t,this.load=new e.EventEmitter,this.blur=new e.EventEmitter,this.change=new e.EventEmitter,this.focus=new e.EventEmitter,this.ready=new e.EventEmitter,this.escape=new e.EventEmitter}return t.prototype.ngOnChanges=function(t){return u(this,void 0,void 0,(function(){var e,n,i,r,o=this;return c(this,(function(s){switch(s.label){case 0:return e=this.stripeElementsService.mergeOptions(this.options,this.containerClass),n=this.elementsOptions,i=this.stripe,t.elementsOptions||t.stripe?[4,this.stripeElementsService.elements(i,n).toPromise()]:[3,2];case 1:r=s.sent(),this.elements=r,s.label=2;case 2:return(t.options||t.containerClass)&&(this.element?this.update(e):(this.element=this.elements.create("cardExpiry",e),this.element.on("change",(function(t){return o.change.emit(t)})),this.element.on("blur",(function(){return o.blur.emit()})),this.element.on("focus",(function(){return o.focus.emit()})),this.element.on("ready",(function(){return o.ready.emit()})),this.element.on("escape",(function(){return o.escape.emit()})),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element))),[2]}}))}))},t.prototype.ngOnDestroy=function(){this.element.destroy()},t.prototype.update=function(t){this.element.update(t)},t.prototype.getCardExpiry=function(){return this.element},t.ctorParameters=function(){return[{type:g}]},s([e.ViewChild("stripeElementRef")],t.prototype,"stripeElementRef",void 0),s([e.Input()],t.prototype,"containerClass",void 0),s([e.Input()],t.prototype,"options",void 0),s([e.Input()],t.prototype,"elementsOptions",void 0),s([e.Input()],t.prototype,"stripe",void 0),s([e.Output()],t.prototype,"load",void 0),s([e.Output()],t.prototype,"blur",void 0),s([e.Output()],t.prototype,"change",void 0),s([e.Output()],t.prototype,"focus",void 0),s([e.Output()],t.prototype,"ready",void 0),s([e.Output()],t.prototype,"escape",void 0),t=s([e.Component({selector:"ngx-stripe-card-expiry",template:'<div class="field" #stripeElementRef></div>'})],t)}(),P=function(){function t(t){this.stripeElementsService=t,this.load=new e.EventEmitter,this.blur=new e.EventEmitter,this.change=new e.EventEmitter,this.focus=new e.EventEmitter,this.ready=new e.EventEmitter,this.escape=new e.EventEmitter}return t.prototype.ngOnChanges=function(t){return u(this,void 0,void 0,(function(){var e,n,i,r,o=this;return c(this,(function(s){switch(s.label){case 0:return e=this.stripeElementsService.mergeOptions(this.options,this.containerClass),n=this.elementsOptions,i=this.stripe,t.elementsOptions||t.stripe?[4,this.stripeElementsService.elements(i,n).toPromise()]:[3,2];case 1:r=s.sent(),this.elements=r,s.label=2;case 2:return(t.options||t.containerClass)&&(this.element?this.update(e):(this.element=this.elements.create("cardCvc",e),this.element.on("change",(function(t){return o.change.emit(t)})),this.element.on("blur",(function(){return o.blur.emit()})),this.element.on("focus",(function(){return o.focus.emit()})),this.element.on("ready",(function(){return o.ready.emit()})),this.element.on("escape",(function(){return o.escape.emit()})),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element))),[2]}}))}))},t.prototype.ngOnDestroy=function(){this.element.destroy()},t.prototype.update=function(t){this.element.update(t)},t.prototype.getCardCvc=function(){return this.element},t.ctorParameters=function(){return[{type:g}]},s([e.ViewChild("stripeElementRef")],t.prototype,"stripeElementRef",void 0),s([e.Input()],t.prototype,"containerClass",void 0),s([e.Input()],t.prototype,"options",void 0),s([e.Input()],t.prototype,"elementsOptions",void 0),s([e.Input()],t.prototype,"stripe",void 0),s([e.Output()],t.prototype,"load",void 0),s([e.Output()],t.prototype,"blur",void 0),s([e.Output()],t.prototype,"change",void 0),s([e.Output()],t.prototype,"focus",void 0),s([e.Output()],t.prototype,"ready",void 0),s([e.Output()],t.prototype,"escape",void 0),t=s([e.Component({selector:"ngx-stripe-card-cvc",template:'<div class="field" #stripeElementRef></div>'})],t)}(),S=function(){function t(t){this.stripeElementsService=t,this.load=new e.EventEmitter,this.blur=new e.EventEmitter,this.change=new e.EventEmitter,this.focus=new e.EventEmitter,this.ready=new e.EventEmitter,this.escape=new e.EventEmitter}return t.prototype.ngOnChanges=function(t){return u(this,void 0,void 0,(function(){var e,n,i,r,o=this;return c(this,(function(s){switch(s.label){case 0:return e=this.stripeElementsService.mergeOptions(this.options,this.containerClass),n=this.elementsOptions,i=this.stripe,t.elementsOptions||t.stripe?[4,this.stripeElementsService.elements(i,n).toPromise()]:[3,2];case 1:r=s.sent(),this.elements=r,s.label=2;case 2:return(t.options||t.containerClass)&&(this.element?this.update(e):(this.element=this.elements.create("fpxBank",e),this.element.on("change",(function(t){return o.change.emit(t)})),this.element.on("blur",(function(){return o.blur.emit()})),this.element.on("focus",(function(){return o.focus.emit()})),this.element.on("ready",(function(){return o.ready.emit()})),this.element.on("escape",(function(){return o.escape.emit()})),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element))),[2]}}))}))},t.prototype.ngOnDestroy=function(){this.element.destroy()},t.prototype.update=function(t){this.element.update(t)},t.prototype.getFpxBank=function(){return this.element},t.ctorParameters=function(){return[{type:g}]},s([e.ViewChild("stripeElementRef")],t.prototype,"stripeElementRef",void 0),s([e.Input()],t.prototype,"containerClass",void 0),s([e.Input()],t.prototype,"options",void 0),s([e.Input()],t.prototype,"elementsOptions",void 0),s([e.Input()],t.prototype,"stripe",void 0),s([e.Output()],t.prototype,"load",void 0),s([e.Output()],t.prototype,"blur",void 0),s([e.Output()],t.prototype,"change",void 0),s([e.Output()],t.prototype,"focus",void 0),s([e.Output()],t.prototype,"ready",void 0),s([e.Output()],t.prototype,"escape",void 0),t=s([e.Component({selector:"ngx-stripe-fpx-bank",template:'<div class="field" #stripeElementRef></div>'})],t)}(),I=function(){function t(t){this.stripeElementsService=t,this.load=new e.EventEmitter,this.blur=new e.EventEmitter,this.change=new e.EventEmitter,this.focus=new e.EventEmitter,this.ready=new e.EventEmitter,this.escape=new e.EventEmitter}return t.prototype.ngOnChanges=function(t){return u(this,void 0,void 0,(function(){var e,n,i,r,o=this;return c(this,(function(s){switch(s.label){case 0:return e=this.stripeElementsService.mergeOptions(this.options,this.containerClass),n=this.elementsOptions,i=this.stripe,t.elementsOptions||t.stripe?[4,this.stripeElementsService.elements(i,n).toPromise()]:[3,2];case 1:r=s.sent(),this.elements=r,s.label=2;case 2:return(t.options||t.containerClass)&&(this.element?this.update(e):(this.element=this.elements.create("idealBank",e),this.element.on("change",(function(t){return o.change.emit(t)})),this.element.on("blur",(function(){return o.blur.emit()})),this.element.on("focus",(function(){return o.focus.emit()})),this.element.on("ready",(function(){return o.ready.emit()})),this.element.on("escape",(function(){return o.escape.emit()})),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element))),[2]}}))}))},t.prototype.ngOnDestroy=function(){this.element.destroy()},t.prototype.update=function(t){this.element.update(t)},t.prototype.getIdealBank=function(){return this.element},t.ctorParameters=function(){return[{type:g}]},s([e.ViewChild("stripeElementRef")],t.prototype,"stripeElementRef",void 0),s([e.Input()],t.prototype,"containerClass",void 0),s([e.Input()],t.prototype,"options",void 0),s([e.Input()],t.prototype,"elementsOptions",void 0),s([e.Input()],t.prototype,"stripe",void 0),s([e.Output()],t.prototype,"load",void 0),s([e.Output()],t.prototype,"blur",void 0),s([e.Output()],t.prototype,"change",void 0),s([e.Output()],t.prototype,"focus",void 0),s([e.Output()],t.prototype,"ready",void 0),s([e.Output()],t.prototype,"escape",void 0),t=s([e.Component({selector:"ngx-stripe-ideal-bank",template:'<div class="field" #stripeElementRef></div>'})],t)}(),C=function(){function t(t){this.stripeElementsService=t,this.load=new e.EventEmitter,this.blur=new e.EventEmitter,this.change=new e.EventEmitter,this.focus=new e.EventEmitter,this.ready=new e.EventEmitter,this.escape=new e.EventEmitter}return t.prototype.ngOnChanges=function(t){return u(this,void 0,void 0,(function(){var e,n,i,r,o=this;return c(this,(function(s){switch(s.label){case 0:return e=this.stripeElementsService.mergeOptions(this.options,this.containerClass),n=this.elementsOptions,i=this.stripe,t.elementsOptions||t.stripe?[4,this.stripeElementsService.elements(i,n).toPromise()]:[3,2];case 1:r=s.sent(),this.elements=r,s.label=2;case 2:return(t.options||t.containerClass)&&(this.element?this.update(e):(this.element=this.elements.create("iban",e),this.element.on("change",(function(t){return o.change.emit(t)})),this.element.on("blur",(function(){return o.blur.emit()})),this.element.on("focus",(function(){return o.focus.emit()})),this.element.on("ready",(function(){return o.ready.emit()})),this.element.on("escape",(function(){return o.escape.emit()})),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element))),[2]}}))}))},t.prototype.ngOnDestroy=function(){this.element.destroy()},t.prototype.update=function(t){this.element.update(t)},t.prototype.getIban=function(){return this.element},t.ctorParameters=function(){return[{type:g}]},s([e.ViewChild("stripeElementRef")],t.prototype,"stripeElementRef",void 0),s([e.Input()],t.prototype,"containerClass",void 0),s([e.Input()],t.prototype,"options",void 0),s([e.Input()],t.prototype,"elementsOptions",void 0),s([e.Input()],t.prototype,"stripe",void 0),s([e.Output()],t.prototype,"load",void 0),s([e.Output()],t.prototype,"blur",void 0),s([e.Output()],t.prototype,"change",void 0),s([e.Output()],t.prototype,"focus",void 0),s([e.Output()],t.prototype,"ready",void 0),s([e.Output()],t.prototype,"escape",void 0),t=s([e.Component({selector:"ngx-stripe-iban",template:'<div class="field" #stripeElementRef></div>'})],t)}(),R=function(){function t(t){this.stripeElementsService=t,this.load=new e.EventEmitter,this.blur=new e.EventEmitter,this.change=new e.EventEmitter,this.focus=new e.EventEmitter,this.ready=new e.EventEmitter,this.escape=new e.EventEmitter}return t.prototype.ngOnChanges=function(t){return u(this,void 0,void 0,(function(){var e,n,i,r,o=this;return c(this,(function(s){switch(s.label){case 0:return e=this.stripeElementsService.mergeOptions(this.options,this.containerClass),n=this.elementsOptions,i=this.stripe,t.elementsOptions||t.stripe?[4,this.stripeElementsService.elements(i,n).toPromise()]:[3,2];case 1:r=s.sent(),this.elements=r,s.label=2;case 2:return(t.options||t.containerClass)&&(this.element?this.update(e):(this.element=this.elements.create("auBankAccount",e),this.element.on("change",(function(t){return o.change.emit(t)})),this.element.on("blur",(function(){return o.blur.emit()})),this.element.on("focus",(function(){return o.focus.emit()})),this.element.on("ready",(function(){return o.ready.emit()})),this.element.on("escape",(function(){return o.escape.emit()})),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element))),[2]}}))}))},t.prototype.ngOnDestroy=function(){this.element.destroy()},t.prototype.update=function(t){this.element.update(t)},t.prototype.getAuBankAccount=function(){return this.element},t.ctorParameters=function(){return[{type:g}]},s([e.ViewChild("stripeElementRef")],t.prototype,"stripeElementRef",void 0),s([e.Input()],t.prototype,"containerClass",void 0),s([e.Input()],t.prototype,"options",void 0),s([e.Input()],t.prototype,"elementsOptions",void 0),s([e.Input()],t.prototype,"stripe",void 0),s([e.Output()],t.prototype,"load",void 0),s([e.Output()],t.prototype,"blur",void 0),s([e.Output()],t.prototype,"change",void 0),s([e.Output()],t.prototype,"focus",void 0),s([e.Output()],t.prototype,"ready",void 0),s([e.Output()],t.prototype,"escape",void 0),t=s([e.Component({selector:"ngx-stripe-au-bank-account",template:'<div class="field" #stripeElementRef></div>'})],t)}(),x=function(){function t(t){this.stripeElementsService=t,this.load=new e.EventEmitter,this.change=new e.EventEmitter,this.blur=new e.EventEmitter,this.focus=new e.EventEmitter,this.ready=new e.EventEmitter,this.token=new e.EventEmitter,this.paymentMethod=new e.EventEmitter,this.source=new e.EventEmitter,this.cancel=new e.EventEmitter,this.shippingaddresschange=new e.EventEmitter,this.shippingoptionchange=new e.EventEmitter}return t.prototype.ngOnChanges=function(t){return u(this,void 0,void 0,(function(){var e,n,i,r,s=this;return c(this,(function(p){switch(p.label){case 0:return e=this.stripeElementsService.mergeOptions(this.options,this.containerClass),n=this.elementsOptions,i=this.stripe,t.elementsOptions||t.stripe?[4,this.stripeElementsService.elements(i,n).toPromise()]:[3,2];case 1:r=p.sent(),this.elements=r,p.label=2;case 2:return t.paymentOptions&&this.paymentRequest&&this.updateRequest(this.paymentOptions),(t.options||t.containerClass)&&(this.element?this.update(e):(this.paymentRequest=this.stripeElementsService.paymentRequest(i,this.paymentOptions),this.paymentRequest.on("token",(function(t){return s.token.emit(t)})),this.paymentRequest.on("paymentmethod",(function(t){return s.paymentMethod.emit(t)})),this.paymentRequest.on("source",(function(t){return s.source.emit(t)})),this.paymentRequest.on("cancel",(function(){return s.token.emit()})),this.paymentRequest.on("shippingaddresschange",(function(t){return s.shippingaddresschange.emit(t)})),this.paymentRequest.on("shippingoptionchange",(function(t){return s.shippingoptionchange.emit(t)})),this.element=this.elements.create("paymentRequestButton",o({paymentRequest:this.paymentRequest},e)),console.log("Payment Request",this.paymentRequest),this.canMakePayment().subscribe((function(t){console.log("Result",t),t.applePay&&(s.element.on("click",(function(t){return s.change.emit(t)})),s.element.on("blur",(function(){return s.blur.emit()})),s.element.on("focus",(function(){return s.focus.emit()})),s.element.on("ready",(function(){return s.ready.emit()})),s.element.mount(s.stripeElementRef.nativeElement),s.load.emit({paymentRequestButton:s.element,paymentRequest:s.paymentRequest}))})))),[2]}}))}))},t.prototype.canMakePayment=function(){return r.from(this.paymentRequest.canMakePayment())},t.prototype.update=function(t){this.element.update(t)},t.prototype.updateRequest=function(t){this.paymentRequest.update(t)},t.prototype.show=function(){this.paymentRequest.show()},t.prototype.getButton=function(){return this.element},t.ctorParameters=function(){return[{type:g}]},s([e.ViewChild("stripeElementRef")],t.prototype,"stripeElementRef",void 0),s([e.Input()],t.prototype,"containerClass",void 0),s([e.Input()],t.prototype,"paymentOptions",void 0),s([e.Input()],t.prototype,"options",void 0),s([e.Input()],t.prototype,"elementsOptions",void 0),s([e.Input()],t.prototype,"stripe",void 0),s([e.Output()],t.prototype,"load",void 0),s([e.Output()],t.prototype,"change",void 0),s([e.Output()],t.prototype,"blur",void 0),s([e.Output()],t.prototype,"focus",void 0),s([e.Output()],t.prototype,"ready",void 0),s([e.Output()],t.prototype,"token",void 0),s([e.Output()],t.prototype,"paymentMethod",void 0),s([e.Output()],t.prototype,"source",void 0),s([e.Output()],t.prototype,"cancel",void 0),s([e.Output()],t.prototype,"shippingaddresschange",void 0),s([e.Output()],t.prototype,"shippingoptionchange",void 0),t=s([e.Component({selector:"ngx-stripe-payment-request-button",template:'<div class="field" #stripeElementRef></div>'})],t)}(),M=function(){function t(t,e,n,i){this.baseKey=t,this.baseOptions=e,this.loader=n,this.window=i}return t.prototype.create=function(t,e){return t||this.baseKey?new v(this.loader,this.window,t||this.baseKey,e||this.baseOptions):null},t.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[l]}]},{type:void 0,decorators:[{type:e.Inject,args:[h]}]},{type:y},{type:f}]},t=s([e.Injectable(),p(0,e.Inject(l)),p(1,e.Inject(h))],t)}(),j=[w,O,b,P,S,I,C,R,x],k=function(){function t(){}var n;return n=t,t.forRoot=function(t,e){return{ngModule:n,providers:[y,E,M,f,d,{provide:l,useValue:t},{provide:h,useValue:e}]}},t.forChild=function(t,e){return{ngModule:n,providers:[y,E,M,f,d,{provide:l,useValue:t},{provide:h,useValue:e}]}},t=n=s([e.NgModule({declarations:m(j),exports:m(j)})],t)}();t.DocumentRef=d,t.LazyStripeAPILoader=y,t.NgxStripeModule=k,t.STRIPE_OPTIONS=h,t.STRIPE_PUBLISHABLE_KEY=l,t.StripeAuBankAccountComponent=R,t.StripeCardComponent=w,t.StripeCardCvcComponent=P,t.StripeCardExpiryComponent=b,t.StripeCardNumberComponent=O,t.StripeFactoryService=M,t.StripeFpxBankComponent=S,t.StripeIbanComponent=C,t.StripeIdealBankComponent=I,t.StripeInstance=v,t.StripePaymentRequestButtonComponent=x,t.StripeService=E,t.WindowRef=f,t.ɵa=g,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-stripe.umd.min.js.map
var NgxStripeModule_1;
import { __decorate } from "tslib";
import { NgModule } from '@angular/core';
import { StripeCardComponent } from './components/card.component';
import { StripeCardNumberComponent } from './components/card-number.component';
import { StripeCardExpiryComponent } from './components/card-expiry.component';
import { StripeCardCvcComponent } from './components/card-cvc.component';
import { StripeFpxBankComponent } from './components/fpx-bank.component';
import { StripeIdealBankComponent } from './components/ideal-bank.component';
import { StripeIbanComponent } from './components/iban.component';
import { StripeAuBankAccountComponent } from './components/au-bank-account.component';
import { StripePaymentRequestButtonComponent } from './components/payment-request-button.component';
import { STRIPE_OPTIONS, STRIPE_PUBLISHABLE_KEY } from './interfaces/ngx-stripe.interface';
import { LazyStripeAPILoader } from './services/api-loader.service';
import { WindowRef } from './services/window-ref.service';
import { DocumentRef } from './services/document-ref.service';
import { StripeService } from './services/stripe.service';
import { StripeFactoryService } from './services/stripe-factory.service';
import { WindowRef } from './services/window-ref.service';
import { DocumentRef } from './services/document-ref.service';
import { STRIPE_OPTIONS, STRIPE_PUBLISHABLE_KEY } from './interfaces/stripe';
import { StripeCardComponent } from './components/stripe-card.component';
const components = [
StripeCardComponent,
StripeCardNumberComponent,
StripeCardExpiryComponent,
StripeCardCvcComponent,
StripeFpxBankComponent,
StripeIdealBankComponent,
StripeIbanComponent,
StripeAuBankAccountComponent,
StripePaymentRequestButtonComponent
];
let NgxStripeModule = NgxStripeModule_1 = class NgxStripeModule {

@@ -55,7 +74,7 @@ static forRoot(publishableKey, options) {

NgModule({
declarations: [StripeCardComponent],
exports: [StripeCardComponent]
declarations: [...components],
exports: [...components]
})
], NgxStripeModule);
export { NgxStripeModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXN0cmlwZS5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtc3RyaXBlLyIsInNvdXJjZXMiOlsibGliL25neC1zdHJpcGUubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxFQUF1QixRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFOUQsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFDcEUsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzFELE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBRXpFLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUMxRCxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFFOUQsT0FBTyxFQUVMLGNBQWMsRUFDZCxzQkFBc0IsRUFDdkIsTUFBTSxxQkFBcUIsQ0FBQztBQUM3QixPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQztBQU16RSxJQUFhLGVBQWUsdUJBQTVCLE1BQWEsZUFBZTtJQUNuQixNQUFNLENBQUMsT0FBTyxDQUNuQixjQUF1QixFQUN2QixPQUFpQjtRQUVqQixPQUFPO1lBQ0wsUUFBUSxFQUFFLGlCQUFlO1lBQ3pCLFNBQVMsRUFBRTtnQkFDVCxtQkFBbUI7Z0JBQ25CLGFBQWE7Z0JBQ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XaW5kb3dSZWYsXG4gICAgICAgIERvY3VtZW50UmVmLFxuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogU1RSSVBFX1BVQkxJU0hBQkxFX0tFWSxcbiAgICAgICAgICB1c2VWYWx1ZTogcHVibGlzaGFibGVLZXlcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IFNUUklQRV9PUFRJT05TLFxuICAgICAgICAgIHVzZVZhbHVlOiBvcHRpb25zXG4gICAgICAgIH1cbiAgICAgIF1cbiAgICB9O1xuICB9XG5cbiAgcHVibGljIHN0YXRpYyBmb3JDaGlsZChcbiAgICBwdWJsaXNoYWJsZUtleT86IHN0cmluZyxcbiAgICBvcHRpb25zPzogT3B0aW9uc1xuICApOiBNb2R1bGVXaXRoUHJvdmlkZXJzPE5neFN0cmlwZU1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogTmd4U3RyaXBlTW9kdWxlLFxuICAgICAgcHJvdmlkZXJzOiBbXG4gICAgICAgIExhenlTdHJpcGVBUElMb2FkZXIsXG4gICAgICAgIFN0cmlwZVNlcnZpY2UsXG4gICAgICAgIFN0cmlwZUZhY3RvcnlTZXJ2aWNlLFxuICAgICAgICBXaW5kb3dSZWYsXG4gICAgICAgIERvY3VtZW50UmVmLFxuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogU1RSSVBFX1BVQkxJU0hBQkxFX0tFWSxcbiAgICAgICAgICB1c2VWYWx1ZTogcHVibGlzaGFibGVLZXlcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IFNUUklQRV9PUFRJT05TLFxuICAgICAgICAgIHVzZVZhbHVlOiBvcHRpb25zXG4gICAgICAgIH1cbiAgICAgIF1cbiAgICB9O1xuICB9XG59XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXN0cmlwZS5tb2R1bGUuanMiLC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G4gICAgcHVibGlzaGFibGVLZXk/OiBzdHJpbmcsXG4gICAgb3B0aW9ucz86IFN0cmlwZUNvbnN0cnVjdG9yT3B0aW9uc1xuICApOiBNb2R1bGVXaXRoUHJvdmlkZXJzPE5neFN0cmlwZU1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogTmd4U3RyaXBlTW9kdWxlLFxuICAgICAgcHJvdmlkZXJzOiBbXG4gICAgICAgIExhenlTdHJpcGVBUElMb2FkZXIsXG4gICAgICAgIFN0cmlwZVNlcnZpY2UsXG4gICAgICAgIFN0cmlwZUZhY3RvcnlTZXJ2aWNlLFxuICAgICAgICBXaW5kb3dSZWYsXG4gICAgICAgIERvY3VtZW50UmVmLFxuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogU1RSSVBFX1BVQkxJU0hBQkxFX0tFWSxcbiAgICAgICAgICB1c2VWYWx1ZTogcHVibGlzaGFibGVLZXlcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IFNUUklQRV9PUFRJT05TLFxuICAgICAgICAgIHVzZVZhbHVlOiBvcHRpb25zXG4gICAgICAgIH1cbiAgICAgIF1cbiAgICB9O1xuICB9XG59XG4iXX0=
import { __decorate, __param } from "tslib";
import { Inject, Injectable } from '@angular/core';
import { STRIPE_OPTIONS, STRIPE_PUBLISHABLE_KEY } from '../interfaces/stripe';
import { STRIPE_OPTIONS, STRIPE_PUBLISHABLE_KEY } from '../interfaces/ngx-stripe.interface';
import { LazyStripeAPILoader } from './api-loader.service';

@@ -15,3 +15,6 @@ import { WindowRef } from './window-ref.service';

create(key, options) {
return new StripeInstance(this.loader, this.window, key, options);
if (!key && !this.baseKey) {
return null;
}
return new StripeInstance(this.loader, this.window, key || this.baseKey, options || this.baseOptions);
}

@@ -21,3 +24,3 @@ };

{ type: String, decorators: [{ type: Inject, args: [STRIPE_PUBLISHABLE_KEY,] }] },
{ type: String, decorators: [{ type: Inject, args: [STRIPE_OPTIONS,] }] },
{ type: undefined, decorators: [{ type: Inject, args: [STRIPE_OPTIONS,] }] },
{ type: LazyStripeAPILoader },

@@ -32,2 +35,2 @@ { type: WindowRef }

export { StripeFactoryService };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaXBlLWZhY3Rvcnkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zdHJpcGUvIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvc3RyaXBlLWZhY3Rvcnkuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFbkQsT0FBTyxFQUVMLGNBQWMsRUFDZCxzQkFBc0IsRUFDdkIsTUFBTSxzQkFBc0IsQ0FBQztBQUM5QixPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUMzRCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDakQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBR3pELElBQWEsb0JBQW9CLEdBQWpDLE1BQWEsb0JBQW9CO0lBQy9CLFlBQ3lDLE9BQWUsRUFDdkIsV0FBbUIsRUFDM0MsTUFBMkIsRUFDM0IsTUFBaUI7UUFIZSxZQUFPLEdBQVAsT0FBTyxDQUFRO1FBQ3ZCLGdCQUFXLEdBQVgsV0FBVyxDQUFRO1FBQzNDLFdBQU0sR0FBTixNQUFNLENBQXFCO1FBQzNCLFdBQU0sR0FBTixNQUFNLENBQVc7SUFDdkIsQ0FBQztJQUVHLE1BQU0sQ0FBQyxHQUFXLEVBQUUsT0FBaUI7UUFDMUMsT0FBTyxJQUFJLGNBQWMsQ0FBQyxJQUFJLENBQUMsTUFBTSxFQUFFLElBQUksQ0FB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FwaS1sb2FkZXIuc2VydmljZSc7XG5pbXBvcnQgeyBXaW5kb3dSZWYgfSBmcm9tICcuL3dpbmRvdy1yZWYuc2VydmljZSc7XG5cbmltcG9ydCB7IFN0cmlwZUluc3RhbmNlIH0gZnJvbSAnLi9zdHJpcGUtaW5zdGFuY2UuY2xhc3MnO1xuXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgU3RyaXBlRmFjdG9yeVNlcnZpY2Uge1xuICBjb25zdHJ1Y3RvcihcbiAgICBASW5qZWN0KFNUUklQRV9QVUJMSVNIQUJMRV9LRVkpIHB1YmxpYyBiYXNlS2V5OiBzdHJpbmcsXG4gICAgQEluamVjdChTVFJJUEVfT1BUSU9OUykgcHVibGljIGJhc2VPcHRpb25zOiBTdHJpcGVDb25zdHJ1Y3Rvck9wdGlvbnMsXG4gICAgcHVibGljIGxvYWRlcjogTGF6eVN0cmlwZUFQSUxvYWRlcixcbiAgICBwdWJsaWMgd2luZG93OiBXaW5kb3dSZWZcbiAgKSB7fVxuXG4gIHB1YmxpYyBjcmVhdGUoXG4gICAga2V5Pzogc3RyaW5nLFxuICAgIG9wdGlvbnM/OiBTdHJpcGVDb25zdHJ1Y3Rvck9wdGlvbnNcbiAgKTogU3RyaXBlSW5zdGFuY2Uge1xuICAgIGlmICgha2V5ICYmICF0aGlzLmJhc2VLZXkpIHtcbiAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuICAgIHJldHVybiBuZXcgU3RyaXBlSW5zdGFuY2UoXG4gICAgICB0aGlzLmxvYWRlcixcbiAgICAgIHRoaXMud2luZG93LFxuICAgICAga2V5IHx8IHRoaXMuYmFzZUtleSxcbiAgICAgIG9wdGlvbnMgfHwgdGhpcy5iYXNlT3B0aW9uc1xuICAgICk7XG4gIH1cbn1cbiJdfQ==
import { BehaviorSubject, from } from 'rxjs';
import { filter, first, map, switchMap } from 'rxjs/operators';
import { isSourceData } from '../interfaces/sources';
import { isAccount, isAccountData, isBankAccount, isBankAccountData, isPii, isPiiData } from '../interfaces/token';
import { isHandleCardPaymentOptions, isPaymentMethodData } from '../interfaces/payment-intent';
export class StripeInstance {

@@ -16,9 +13,14 @@ constructor(loader, window, key, options) {

.pipe(filter((status) => status.loaded === true), first(), map(() => this.window.getNativeWindow().Stripe))
.subscribe((Stripe) => {
.subscribe((stripeInstance) => {
const stripe = this.options
? Stripe(this.key, this.options)
: Stripe(this.key);
? stripeInstance(this.key, this.options)
: stripeInstance(this.key);
this.stripe$.next(stripe);
});
}
get stripe() {
return this.stripe$
.asObservable()
.pipe(filter((stripe) => Boolean(stripe)));
}
getInstance() {

@@ -28,80 +30,99 @@ return this.stripe$.getValue();

elements(options) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), map(stripe => stripe.elements(options)), first());
return this.stripe$.asObservable().pipe(filter((stripe) => Boolean(stripe)), map((stripe) => stripe.elements(options)), first());
}
createToken(a, b) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
if (isAccount(a) && isAccountData(b)) {
return from(stripe.createToken(a, b));
}
else if (isBankAccount(a) && isBankAccountData(b)) {
return from(stripe.createToken(a, b));
}
else if (isPii(a) && isPiiData(b)) {
return from(stripe.createToken(a, b));
}
else {
return from(stripe.createToken(a, b));
}
}), first());
redirectToCheckout(options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.redirectToCheckout(options))), first());
}
createSource(a, b) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
if (isSourceData(a)) {
return from(stripe.createSource(a));
}
return from(stripe.createSource(a, b));
}), first());
confirmAuBecsDebitPayment(clientSecret, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmAuBecsDebitPayment(clientSecret, data))), first());
}
retrieveSource(source) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
return from(stripe.retrieveSource(source));
}), first());
confirmBancontactPayment(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmBancontactPayment(clientSecret, data, options))), first());
}
confirmCardPayment(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmCardPayment(clientSecret, data, options))), first());
}
confirmEpsPayment(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmEpsPayment(clientSecret, data, options))), first());
}
confirmFpxPayment(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmFpxPayment(clientSecret, data, options))), first());
}
confirmGiropayPayment(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmGiropayPayment(clientSecret, data, options))), first());
}
confirmIdealPayment(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmIdealPayment(clientSecret, data, options))), first());
}
confirmP24Payment(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmP24Payment(clientSecret, data, options))), first());
}
confirmSepaDebitPayment(clientSecret, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmSepaDebitPayment(clientSecret, data))), first());
}
handleCardAction(clientSecret) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.handleCardAction(clientSecret))), first());
}
createPaymentMethod(paymentMethodData) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.createPaymentMethod(paymentMethodData))), first());
}
retrievePaymentIntent(clientSecret) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.retrievePaymentIntent(clientSecret))), first());
}
confirmAuBecsDebitSetup(clientSecret, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmAuBecsDebitSetup(clientSecret, data))), first());
}
confirmCardSetup(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmCardSetup(clientSecret, data, options))), first());
}
confirmSepaDebitSetup(clientSecret, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmSepaDebitSetup(clientSecret, data))), first());
}
retrieveSetupIntent(clientSecret) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmSepaDebitSetup(clientSecret))), first());
}
paymentRequest(options) {
const stripe = this.getInstance();
if (stripe) {
return stripe.paymentRequest(options);
}
return undefined;
return stripe ? stripe.paymentRequest(options) : undefined;
}
handleCardPayment(a, b, c) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
if (isHandleCardPaymentOptions(b)) {
return from(stripe.handleCardPayment(a, b));
}
return from(stripe.handleCardPayment(a, b, c));
}));
createToken(tokenType, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.createToken(tokenType, data))), first());
}
handleCardAction(a) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
return from(stripe.handleCardAction(a));
}));
createSource(a, b) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.createSource(a, b))), first());
}
confirmPaymentIntent(a, b) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
return from(stripe.confirmPaymentIntent(a, b));
}));
retrieveSource(source) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.retrieveSource(source))), first());
}
createPaymentMethod(a, b, c) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
return from(stripe.createPaymentMethod(a, b, c));
}), first());
/**
* @deprecated
*/
handleCardPayment(clientSecret, element, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.handleCardPayment(clientSecret, element, data))), first());
}
handleCardSetup(a, b, c) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
if (isPaymentMethodData(c)) {
return from(stripe.handleCardSetup(a, b, c));
}
return from(stripe.handleCardSetup(a, b));
}));
/**
* @deprecated
*/
confirmPaymentIntent(clientSecret, element, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmPaymentIntent(clientSecret, element, data))), first());
}
/**
* @deprecated
*/
handleCardSetup(clientSecret, element, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.handleCardSetup(clientSecret, element, data))), first());
}
/**
* @deprecated
*/
confirmSetupIntent(clientSecret, element, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmSetupIntent(clientSecret, element, data))), first());
}
/**
* @deprecated
*/
handleFpxPayment(clientSecret, element, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.handleFpxPayment(clientSecret, element, data))), first());
}
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaXBlLWluc3RhbmNlLmNsYXNzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXN0cmlwZS8iLCJzb3VyY2VzIjpbImxpYi9zZXJ2aWNlcy9zdHJpcGUtaW5zdGFuY2UuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGVBQWUsRUFBRSxJQUFJLEVBQWMsTUFBTSxNQUFNLENBQUM7QUFDekQsT0FBTyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsR0FBRyxFQUFFLFNBQVMsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBUS9ELE9BQU8sRUFHTCxZQUFZLEVBRWIsTUFBTSx1QkFBdUIsQ0FBQztBQUMvQixPQUFPLEVBU0wsU0FBUyxFQUNULGFBQWEsRUFDYixhQUFhLEVBQ2IsaUJBQWlCLEVBQ2pCLEtBQUssRUFDTCxTQUFTLEVBQ1YsTUFBTSxxQkFBcUIsQ0FBQztBQUc3QixPQUFPLEVBTUwsMEJBQTBCLEVBQzFCLG1CQUFtQixFQUNwQixNQUFNLDhCQUE4QixDQUFDO0FBR3RDLE1BQU0sT0FBTyxjQUFjO0lBS3pCLFlBQ1MsTUFBMkIsRUFDM0IsTUFBaUIsRUFDakIsR0FBVyxFQUNYLE9BQWlCO1FBSGpCLFdBQU0sR0FBTixNQUFNLENBQXFCO1FBQz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AgICAgcmV0dXJuIGZyb20oc3RyaXBlLmNyZWF0ZVBheW1lbnRNZXRob2QoYSwgYiwgYykpO1xuICAgICAgfSksXG4gICAgICBmaXJzdCgpXG4gICAgKTtcbiAgfVxuXG4gIHB1YmxpYyBoYW5kbGVDYXJkU2V0dXAoXG4gICAgYTogc3RyaW5nLFxuICAgIGI/OiBFbGVtZW50IHwgc3RyaW5nIHwgUGF5bWVudE1ldGhvZERhdGEsXG4gICAgYz86IFBheW1lbnRNZXRob2REYXRhXG4gICk6IE9ic2VydmFibGU8Q2FyZFNldHVwUmVzdWx0PiB7XG4gICAgcmV0dXJuIHRoaXMuc3RyaXBlJC5hc09ic2VydmFibGUoKS5waXBlKFxuICAgICAgZmlsdGVyKHN0cmlwZSA9PiBCb29sZWFuKHN0cmlwZSkpLFxuICAgICAgc3dpdGNoTWFwKHMgPT4ge1xuICAgICAgICBjb25zdCBzdHJpcGUgPSBzIGFzIFN0cmlwZUpTO1xuXG4gICAgICAgIGlmIChpc1BheW1lbnRNZXRob2REYXRhKGMpKSB7XG4gICAgICAgICAgcmV0dXJuIGZyb20oXG4gICAgICAgICAgICBzdHJpcGUuaGFuZGxlQ2FyZFNldHVwKFxuICAgICAgICAgICAgICBhLFxuICAgICAgICAgICAgICBiIGFzIEVsZW1lbnQsXG4gICAgICAgICAgICAgIGMgYXMgUGF5bWVudE1ldGhvZERhdGEgfCB1bmRlZmluZWRcbiAgICAgICAgICAgIClcbiAgICAgICAgICApO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGZyb20oXG4gICAgICAgICAgc3RyaXBlLmhhbmRsZUNhcmRTZXR1cChcbiAgICAgICAgICAgIGEsXG4gICAgICAgICAgICBiIGFzIHN0cmluZyB8IFBheW1lbnRNZXRob2REYXRhIHwgdW5kZWZpbmVkXG4gICAgICAgICAgKVxuICAgICAgICApO1xuICAgICAgfSlcbiAgICApO1xuICB9XG59XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW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bnkpLmhhbmRsZUZweFBheW1lbnQoY2xpZW50U2VjcmV0LCBlbGVtZW50LCBkYXRhKSlcbiAgICAgICksXG4gICAgICBmaXJzdCgpXG4gICAgKTtcbiAgfVxufVxuIl19
import { __decorate, __param } from "tslib";
import { Injectable, Inject } from '@angular/core';
import { filter, map } from 'rxjs/operators';
import { STRIPE_PUBLISHABLE_KEY, STRIPE_OPTIONS } from '../interfaces/ngx-stripe.interface';
import { WindowRef } from './window-ref.service';
import { LazyStripeAPILoader, Status } from './api-loader.service';
import { STRIPE_PUBLISHABLE_KEY, STRIPE_OPTIONS } from '../interfaces/stripe';
import { StripeInstance } from './stripe-instance.class';
import { filter, map } from 'rxjs/operators';
let StripeService = class StripeService {

@@ -34,5 +34,59 @@ constructor(key, options, loader, window) {

}
createToken(a, b) {
return this.stripe.createToken(a, b);
redirectToCheckout(options) {
return this.stripe.redirectToCheckout(options);
}
confirmAuBecsDebitPayment(clientSecret, data) {
return this.stripe.confirmAuBecsDebitPayment(clientSecret, data);
}
confirmBancontactPayment(clientSecret, data, options) {
return this.stripe.confirmBancontactPayment(clientSecret, data, options);
}
confirmCardPayment(clientSecret, data, options) {
return this.stripe.confirmCardPayment(clientSecret, data, options);
}
confirmEpsPayment(clientSecret, data, options) {
return this.stripe.confirmEpsPayment(clientSecret, data, options);
}
confirmFpxPayment(clientSecret, data, options) {
return this.stripe.confirmFpxPayment(clientSecret, data, options);
}
confirmGiropayPayment(clientSecret, data, options) {
return this.stripe.confirmGiropayPayment(clientSecret, data, options);
}
confirmIdealPayment(clientSecret, data, options) {
return this.stripe.confirmIdealPayment(clientSecret, data, options);
}
confirmP24Payment(clientSecret, data, options) {
return this.stripe.confirmP24Payment(clientSecret, data, options);
}
confirmSepaDebitPayment(clientSecret, data) {
return this.stripe.confirmSepaDebitPayment(clientSecret, data);
}
handleCardAction(clientSecret) {
return this.stripe.handleCardAction(clientSecret);
}
createPaymentMethod(paymentMethodData) {
return this.stripe.createPaymentMethod(paymentMethodData);
}
retrievePaymentIntent(clientSecret) {
return this.stripe.retrievePaymentIntent(clientSecret);
}
confirmAuBecsDebitSetup(clientSecret, data) {
return this.stripe.confirmAuBecsDebitSetup(clientSecret, data);
}
confirmCardSetup(clientSecret, data, options) {
return this.stripe.confirmCardSetup(clientSecret, data, options);
}
confirmSepaDebitSetup(clientSecret, data) {
return this.stripe.confirmSepaDebitSetup(clientSecret, data);
}
retrieveSetupIntent(clientSecret) {
return this.stripe.retrieveSetupIntent(clientSecret);
}
paymentRequest(options) {
return this.stripe.paymentRequest(options);
}
createToken(tokenType, data) {
return this.stripe.createToken(tokenType, data);
}
createSource(a, b) {

@@ -44,20 +98,32 @@ return this.stripe.createSource(a, b);

}
paymentRequest(options) {
return this.stripe.paymentRequest(options);
/**
* @deprecated
*/
handleCardPayment(clientSecret, element, data) {
return this.stripe.handleCardPayment(clientSecret, element, data);
}
handleCardPayment(a, b, c) {
return this.stripe.handleCardPayment(a, b, c);
/**
* @deprecated
*/
confirmPaymentIntent(clientSecret, element, data) {
return this.stripe.confirmPaymentIntent(clientSecret, element, data);
}
handleCardAction(a) {
return this.stripe.handleCardAction(a);
/**
* @deprecated
*/
handleCardSetup(clientSecret, element, data) {
return this.stripe.handleCardSetup(clientSecret, element, data);
}
createPaymentMethod(a, b, c) {
return this.stripe.createPaymentMethod(a, b, c);
/**
* @deprecated
*/
confirmSetupIntent(clientSecret, element, data) {
return this.stripe.confirmSetupIntent(clientSecret, element, data);
}
confirmPaymentIntent(a, b) {
return this.stripe.confirmPaymentIntent(a, b);
/**
* @deprecated
*/
handleFpxPayment(clientSecret, element, data) {
return this.stripe.handleFpxPayment(clientSecret, element, data);
}
handleCardSetup(a, b, c) {
return this.stripe.handleCardSetup(a, b, c);
}
};

@@ -76,2 +142,2 @@ StripeService.ctorParameters = () => [

export { StripeService };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaXBlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290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V0dXBJbnRlbnQ7XG4gICAgZXJyb3I/OiBTdHJpcGVKUy5TdHJpcGVFcnJvcjtcbiAgfT4ge1xuICAgIHJldHVybiB0aGlzLnN0cmlwZS5oYW5kbGVDYXJkU2V0dXAoY2xpZW50U2VjcmV0LCBlbGVtZW50LCBkYXRhKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBAZGVwcmVjYXRlZFxuICAgKi9cbiAgY29uZmlybVNldHVwSW50ZW50KFxuICAgIGNsaWVudFNlY3JldDogc3RyaW5nLFxuICAgIGVsZW1lbnQ/LFxuICAgIGRhdGE/XG4gICk6IE9ic2VydmFibGU8e1xuICAgIHNldHVwSW50ZW50PzogU3RyaXBlSlMuU2V0dXBJbnRlbnQ7XG4gICAgZXJyb3I/OiBTdHJpcGVKUy5TdHJpcGVFcnJvcjtcbiAgfT4ge1xuICAgIHJldHVybiB0aGlzLnN0cmlwZS5jb25maXJtU2V0dXBJbnRlbnQoY2xpZW50U2VjcmV0LCBlbGVtZW50LCBkYXRhKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBAZGVwcmVjYXRlZFxuICAgKi9cbiAgaGFuZGxlRnB4UGF5bWVudChcbiAgICBjbGllbnRTZWNyZXQ6IHN0cmluZyxcbiAgICBlbGVtZW50PyxcbiAgICBkYXRhP1xuICApOiBPYnNlcnZhYmxlPHtcbiAgICBzZXR1cEludGVudD86IFN0cmlwZUpTLlNldHVwSW50ZW50O1xuICAgIGVycm9yPzogU3RyaXBlSlMuU3RyaXBlRXJyb3I7XG4gIH0+IHtcbiAgICByZXR1cm4gdGhpcy5zdHJpcGUuaGFuZGxlRnB4UGF5bWVudChjbGllbnRTZWNyZXQsIGVsZW1lbnQsIGRhdGEpO1xuICB9XG59XG4iXX0=

@@ -5,2 +5,3 @@ /**

export * from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXN0cmlwZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zdHJpcGUvIiwic291cmNlcyI6WyJuZ3gtc3RyaXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
export { StripeElementsService as ɵa } from './lib/services/stripe-elements.service';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXN0cmlwZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zdHJpcGUvIiwic291cmNlcyI6WyJuZ3gtc3RyaXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLHFCQUFxQixJQUFJLEVBQUUsRUFBQyxNQUFNLHdDQUF3QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuXG5leHBvcnQge1N0cmlwZUVsZW1lbnRzU2VydmljZSBhcyDJtWF9IGZyb20gJy4vbGliL3NlcnZpY2VzL3N0cmlwZS1lbGVtZW50cy5zZXJ2aWNlJzsiXX0=

@@ -5,3 +5,11 @@ /*

export { NgxStripeModule } from './lib/ngx-stripe.module';
export { StripeCardComponent } from './lib/components/stripe-card.component';
export { StripeCardComponent } from './lib/components/card.component';
export { StripeCardNumberComponent } from './lib/components/card-number.component';
export { StripeCardExpiryComponent } from './lib/components/card-expiry.component';
export { StripeCardCvcComponent } from './lib/components/card-cvc.component';
export { StripeFpxBankComponent } from './lib/components/fpx-bank.component';
export { StripeIbanComponent } from './lib/components/iban.component';
export { StripeIdealBankComponent } from './lib/components/ideal-bank.component';
export { StripeAuBankAccountComponent } from './lib/components/au-bank-account.component';
export { StripePaymentRequestButtonComponent } from './lib/components/payment-request-button.component';
export { StripeService } from './lib/services/stripe.service';

@@ -13,5 +21,3 @@ export { StripeFactoryService } from './lib/services/stripe-factory.service';

export { DocumentRef } from './lib/services/document-ref.service';
export { isSourceData } from './lib/interfaces/sources';
export { STRIPE_PUBLISHABLE_KEY, STRIPE_OPTIONS } from './lib/interfaces/stripe';
export { isBankAccount, isBankAccountData, isPii, isPiiData } from './lib/interfaces/token';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zdHJpcGUvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBRTFELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBRTdFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUM5RCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQztBQUM3RSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFJdEUsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFFeEUsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBQzlELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQWdCbEUsT0FBTyxFQU1MLFlBQVksRUFFYixNQUFNLDBCQUEwQixDQUFDO0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xuZXhwb3J0IHtcbiAgSGFuZGxlQ2FyZFBheW1lbnRPcHRpb25zLFxuICBDb25maXJtUGF5bWVudEludGVudE9wdGlvbnMsXG4gIFBheW1lbnRJbnRlbnQsXG4gIFBheW1lbnRJbnRlbnRSZXN1bHRcbn0gZnJvbSAnLi9saWIvaW50ZXJmYWNlcy9wYXltZW50LWludGVudCc7XG5cbmV4cG9ydCB7XG4gIFNldHVwSW50ZW50LFxuICBDYXJkU2V0dXBSZXN1bHRcbn0gZnJvbSAnLi9saWIvaW50ZXJmYWNlcy9jYXJkLXNldHVwJztcblxuZXhwb3J0IHsgRXJyb3IsIEFkZHJlc3MgfSBmcm9tICcuL2xpYi9pbnRlcmZhY2VzL3V0aWxzJztcbiJdfQ==
export { STRIPE_PUBLISHABLE_KEY, STRIPE_OPTIONS } from './lib/interfaces/ngx-stripe.interface';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zdHJpcGUvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBRTFELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQ3RFLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQ25GLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQ25GLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQzdFLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQzdFLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFN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dFBheW1lbnRNZXRob2RFdmVudCxcbiAgUGF5bWVudFJlcXVlc3RTb3VyY2VFdmVudCxcbiAgUGF5bWVudFJlcXVlc3RTaGlwcGluZ0FkZHJlc3NFdmVudCxcbiAgUGF5bWVudFJlcXVlc3RTaGlwcGluZ09wdGlvbkV2ZW50XG59IGZyb20gJy4vbGliL2ludGVyZmFjZXMvc3RyaXBlanMuaW50ZXJmYWNlJztcbiJdfQ==

@@ -1,10 +0,29 @@

import { __decorate } from "tslib";
import { __decorate, __read, __spread } from "tslib";
import { NgModule } from '@angular/core';
import { StripeCardComponent } from './components/card.component';
import { StripeCardNumberComponent } from './components/card-number.component';
import { StripeCardExpiryComponent } from './components/card-expiry.component';
import { StripeCardCvcComponent } from './components/card-cvc.component';
import { StripeFpxBankComponent } from './components/fpx-bank.component';
import { StripeIdealBankComponent } from './components/ideal-bank.component';
import { StripeIbanComponent } from './components/iban.component';
import { StripeAuBankAccountComponent } from './components/au-bank-account.component';
import { StripePaymentRequestButtonComponent } from './components/payment-request-button.component';
import { STRIPE_OPTIONS, STRIPE_PUBLISHABLE_KEY } from './interfaces/ngx-stripe.interface';
import { LazyStripeAPILoader } from './services/api-loader.service';
import { WindowRef } from './services/window-ref.service';
import { DocumentRef } from './services/document-ref.service';
import { StripeService } from './services/stripe.service';
import { StripeFactoryService } from './services/stripe-factory.service';
import { WindowRef } from './services/window-ref.service';
import { DocumentRef } from './services/document-ref.service';
import { STRIPE_OPTIONS, STRIPE_PUBLISHABLE_KEY } from './interfaces/stripe';
import { StripeCardComponent } from './components/stripe-card.component';
var components = [
StripeCardComponent,
StripeCardNumberComponent,
StripeCardExpiryComponent,
StripeCardCvcComponent,
StripeFpxBankComponent,
StripeIdealBankComponent,
StripeIbanComponent,
StripeAuBankAccountComponent,
StripePaymentRequestButtonComponent
];
var NgxStripeModule = /** @class */ (function () {

@@ -57,4 +76,4 @@ function NgxStripeModule() {

NgModule({
declarations: [StripeCardComponent],
exports: [StripeCardComponent]
declarations: __spread(components),
exports: __spread(components)
})

@@ -65,2 +84,2 @@ ], NgxStripeModule);

export { NgxStripeModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXN0cmlwZS5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtc3RyaXBlLyIsInNvdXJjZXMiOlsibGliL25neC1zdHJpcGUubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQXVCLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUU5RCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUNwRSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDMUQsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFFekUsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQzFELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUU5RCxPQUFPLEVBRUwsY0FBYyxFQUNkLHNCQUFzQixFQUN2QixNQUFNLHFCQUFxQixDQUFDO0FBQzdCLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLG9DQUFvQyxDQUFDO0FBTXpFO0lBQUE7SUFnREEsQ0FBQzt3QkFoRFksZUFBZTtJQUNaLHVCQUFPLEdBQXJCLFVBQ0UsY0FBdUIsRUFDdkIsT0FBaUI7UUFFakIsT0FBTztZQUNMLFFBQVEsRUFBRSxpQkFBZTtZQUN6QixTQUFTLEVBQUU7Z0JBQ1QsbUJBQW1CO2dCQUNuQixhQUFhO2dCQUNiLG9CQUFvQjtnQkFDcEIsU0FBUztnQkFDVCxXQUFXO2dCQUNYO29CQUNFLE9BQU8sRUFBRSxzQkFBc0I7b0JBQy9CLFFBQVEsRUFB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Byb3ZpZGU6IFNUUklQRV9QVUJMSVNIQUJMRV9LRVksXG4gICAgICAgICAgdXNlVmFsdWU6IHB1Ymxpc2hhYmxlS2V5XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBTVFJJUEVfT1BUSU9OUyxcbiAgICAgICAgICB1c2VWYWx1ZTogb3B0aW9uc1xuICAgICAgICB9XG4gICAgICBdXG4gICAgfTtcbiAgfVxuXG4gIHB1YmxpYyBzdGF0aWMgZm9yQ2hpbGQoXG4gICAgcHVibGlzaGFibGVLZXk/OiBzdHJpbmcsXG4gICAgb3B0aW9ucz86IE9wdGlvbnNcbiAgKTogTW9kdWxlV2l0aFByb3ZpZGVyczxOZ3hTdHJpcGVNb2R1bGU+IHtcbiAgICByZXR1cm4ge1xuICAgICAgbmdNb2R1bGU6IE5neFN0cmlwZU1vZHVsZSxcbiAgICAgIHByb3ZpZGVyczogW1xuICAgICAgICBMYXp5U3RyaXBlQVBJTG9hZGVyLFxuICAgICAgICBTdHJpcGVTZXJ2aWNlLFxuICAgICAgICBTdHJpcGVGYWN0b3J5U2VydmljZSxcbiAgICAgICAgV2luZG93UmVmLFxuICAgICAgICBEb2N1bWVudFJlZixcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IFNUUklQRV9QVUJMSVNIQUJMRV9LRVksXG4gICAgICAgICAgdXNlVmFsdWU6IHB1Ymxpc2hhYmxlS2V5XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBTVFJJUEVfT1BUSU9OUyxcbiAgICAgICAgICB1c2VWYWx1ZTogb3B0aW9uc1xuICAgICAgICB9XG4gICAgICBdXG4gICAgfTtcbiAgfVxufVxuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXN0cmlwZS5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtc3RyaXBlLyIsInNvdXJjZXMiO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ZUtleT86IHN0cmluZyxcbiAgICBvcHRpb25zPzogU3RyaXBlQ29uc3RydWN0b3JPcHRpb25zXG4gICk6IE1vZHVsZVdpdGhQcm92aWRlcnM8Tmd4U3RyaXBlTW9kdWxlPiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBOZ3hTdHJpcGVNb2R1bGUsXG4gICAgICBwcm92aWRlcnM6IFtcbiAgICAgICAgTGF6eVN0cmlwZUFQSUxvYWRlcixcbiAgICAgICAgU3RyaXBlU2VydmljZSxcbiAgICAgICAgU3RyaXBlRmFjdG9yeVNlcnZpY2UsXG4gICAgICAgIFdpbmRvd1JlZixcbiAgICAgICAgRG9jdW1lbnRSZWYsXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBTVFJJUEVfUFVCTElTSEFCTEVfS0VZLFxuICAgICAgICAgIHVzZVZhbHVlOiBwdWJsaXNoYWJsZUtleVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogU1RSSVBFX09QVElPTlMsXG4gICAgICAgICAgdXNlVmFsdWU6IG9wdGlvbnNcbiAgICAgICAgfVxuICAgICAgXVxuICAgIH07XG4gIH1cbn1cbiJdfQ==
import { __decorate, __param } from "tslib";
import { Inject, Injectable } from '@angular/core';
import { STRIPE_OPTIONS, STRIPE_PUBLISHABLE_KEY } from '../interfaces/stripe';
import { STRIPE_OPTIONS, STRIPE_PUBLISHABLE_KEY } from '../interfaces/ngx-stripe.interface';
import { LazyStripeAPILoader } from './api-loader.service';

@@ -15,7 +15,10 @@ import { WindowRef } from './window-ref.service';

StripeFactoryService.prototype.create = function (key, options) {
return new StripeInstance(this.loader, this.window, key, options);
if (!key && !this.baseKey) {
return null;
}
return new StripeInstance(this.loader, this.window, key || this.baseKey, options || this.baseOptions);
};
StripeFactoryService.ctorParameters = function () { return [
{ type: String, decorators: [{ type: Inject, args: [STRIPE_PUBLISHABLE_KEY,] }] },
{ type: String, decorators: [{ type: Inject, args: [STRIPE_OPTIONS,] }] },
{ type: undefined, decorators: [{ type: Inject, args: [STRIPE_OPTIONS,] }] },
{ type: LazyStripeAPILoader },

@@ -32,2 +35,2 @@ { type: WindowRef }

export { StripeFactoryService };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaXBlLWZhY3Rvcnkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zdHJpcGUvIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvc3RyaXBlLWZhY3Rvcnkuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFbkQsT0FBTyxFQUVMLGNBQWMsRUFDZCxzQkFBc0IsRUFDdkIsTUFBTSxzQkFBc0IsQ0FBQztBQUM5QixPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUMzRCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDakQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBR3pEO0lBQ0UsOEJBQ3lDLE9BQWUsRUFDdkIsV0FBbUIsRUFDM0MsTUFBMkIsRUFDM0IsTUFBaUI7UUFIZSxZQUFPLEdBQVAsT0FBTyxDQUFRO1FBQ3ZCLGdCQUFXLEdBQVgsV0FBVyxDQUFRO1FBQzNDLFdBQU0sR0FBTixNQUFNLENBQXFCO1FBQzNCLFdBQU0sR0FBTixNQUFNLENBQVc7SUFDdkIsQ0FBQztJQUVHLHFDQUFNLEdBQWIsVUFBYyxHQUFXLEVBQUUsT0FBaUI7UUFDMUMsT0FBTyxJQUFJLGNBQWMsQ0FBQyxJQUFJLENBQUMsTUFBTSxFQUFFLElBQUksQ0FBQyxNQUFNLEVBQUUsR0FBRyxFQU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pLWxvYWRlci5zZXJ2aWNlJztcbmltcG9ydCB7IFdpbmRvd1JlZiB9IGZyb20gJy4vd2luZG93LXJlZi5zZXJ2aWNlJztcblxuaW1wb3J0IHsgU3RyaXBlSW5zdGFuY2UgfSBmcm9tICcuL3N0cmlwZS1pbnN0YW5jZS5jbGFzcyc7XG5cbkBJbmplY3RhYmxlKClcbmV4cG9ydCBjbGFzcyBTdHJpcGVGYWN0b3J5U2VydmljZSB7XG4gIGNvbnN0cnVjdG9yKFxuICAgIEBJbmplY3QoU1RSSVBFX1BVQkxJU0hBQkxFX0tFWSkgcHVibGljIGJhc2VLZXk6IHN0cmluZyxcbiAgICBASW5qZWN0KFNUUklQRV9PUFRJT05TKSBwdWJsaWMgYmFzZU9wdGlvbnM6IFN0cmlwZUNvbnN0cnVjdG9yT3B0aW9ucyxcbiAgICBwdWJsaWMgbG9hZGVyOiBMYXp5U3RyaXBlQVBJTG9hZGVyLFxuICAgIHB1YmxpYyB3aW5kb3c6IFdpbmRvd1JlZlxuICApIHt9XG5cbiAgcHVibGljIGNyZWF0ZShcbiAgICBrZXk/OiBzdHJpbmcsXG4gICAgb3B0aW9ucz86IFN0cmlwZUNvbnN0cnVjdG9yT3B0aW9uc1xuICApOiBTdHJpcGVJbnN0YW5jZSB7XG4gICAgaWYgKCFrZXkgJiYgIXRoaXMuYmFzZUtleSkge1xuICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuXG4gICAgcmV0dXJuIG5ldyBTdHJpcGVJbnN0YW5jZShcbiAgICAgIHRoaXMubG9hZGVyLFxuICAgICAgdGhpcy53aW5kb3csXG4gICAgICBrZXkgfHwgdGhpcy5iYXNlS2V5LFxuICAgICAgb3B0aW9ucyB8fCB0aGlzLmJhc2VPcHRpb25zXG4gICAgKTtcbiAgfVxufVxuIl19
import { BehaviorSubject, from } from 'rxjs';
import { filter, first, map, switchMap } from 'rxjs/operators';
import { isSourceData } from '../interfaces/sources';
import { isAccount, isAccountData, isBankAccount, isBankAccountData, isPii, isPiiData } from '../interfaces/token';
import { isHandleCardPaymentOptions, isPaymentMethodData } from '../interfaces/payment-intent';
var StripeInstance = /** @class */ (function () {

@@ -17,9 +14,18 @@ function StripeInstance(loader, window, key, options) {

.pipe(filter(function (status) { return status.loaded === true; }), first(), map(function () { return _this.window.getNativeWindow().Stripe; }))
.subscribe(function (Stripe) {
.subscribe(function (stripeInstance) {
var stripe = _this.options
? Stripe(_this.key, _this.options)
: Stripe(_this.key);
? stripeInstance(_this.key, _this.options)
: stripeInstance(_this.key);
_this.stripe$.next(stripe);
});
}
Object.defineProperty(StripeInstance.prototype, "stripe", {
get: function () {
return this.stripe$
.asObservable()
.pipe(filter(function (stripe) { return Boolean(stripe); }));
},
enumerable: true,
configurable: true
});
StripeInstance.prototype.getInstance = function () {

@@ -31,80 +37,135 @@ return this.stripe$.getValue();

};
StripeInstance.prototype.createToken = function (a, b) {
return this.stripe$.asObservable().pipe(filter(function (stripe) { return Boolean(stripe); }), switchMap(function (s) {
var stripe = s;
if (isAccount(a) && isAccountData(b)) {
return from(stripe.createToken(a, b));
}
else if (isBankAccount(a) && isBankAccountData(b)) {
return from(stripe.createToken(a, b));
}
else if (isPii(a) && isPiiData(b)) {
return from(stripe.createToken(a, b));
}
else {
return from(stripe.createToken(a, b));
}
StripeInstance.prototype.redirectToCheckout = function (options) {
return this.stripe.pipe(switchMap(function (stripe) { return from(stripe.redirectToCheckout(options)); }), first());
};
StripeInstance.prototype.confirmAuBecsDebitPayment = function (clientSecret, data) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.confirmAuBecsDebitPayment(clientSecret, data));
}), first());
};
StripeInstance.prototype.createSource = function (a, b) {
return this.stripe$.asObservable().pipe(filter(function (stripe) { return Boolean(stripe); }), switchMap(function (s) {
var stripe = s;
if (isSourceData(a)) {
return from(stripe.createSource(a));
}
return from(stripe.createSource(a, b));
StripeInstance.prototype.confirmBancontactPayment = function (clientSecret, data, options) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.confirmBancontactPayment(clientSecret, data, options));
}), first());
};
StripeInstance.prototype.retrieveSource = function (source) {
return this.stripe$.asObservable().pipe(filter(function (stripe) { return Boolean(stripe); }), switchMap(function (s) {
var stripe = s;
return from(stripe.retrieveSource(source));
StripeInstance.prototype.confirmCardPayment = function (clientSecret, data, options) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.confirmCardPayment(clientSecret, data, options));
}), first());
};
StripeInstance.prototype.confirmEpsPayment = function (clientSecret, data, options) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.confirmEpsPayment(clientSecret, data, options));
}), first());
};
StripeInstance.prototype.confirmFpxPayment = function (clientSecret, data, options) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.confirmFpxPayment(clientSecret, data, options));
}), first());
};
StripeInstance.prototype.confirmGiropayPayment = function (clientSecret, data, options) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.confirmGiropayPayment(clientSecret, data, options));
}), first());
};
StripeInstance.prototype.confirmIdealPayment = function (clientSecret, data, options) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.confirmIdealPayment(clientSecret, data, options));
}), first());
};
StripeInstance.prototype.confirmP24Payment = function (clientSecret, data, options) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.confirmP24Payment(clientSecret, data, options));
}), first());
};
StripeInstance.prototype.confirmSepaDebitPayment = function (clientSecret, data) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.confirmSepaDebitPayment(clientSecret, data));
}), first());
};
StripeInstance.prototype.handleCardAction = function (clientSecret) {
return this.stripe.pipe(switchMap(function (stripe) { return from(stripe.handleCardAction(clientSecret)); }), first());
};
StripeInstance.prototype.createPaymentMethod = function (paymentMethodData) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.createPaymentMethod(paymentMethodData));
}), first());
};
StripeInstance.prototype.retrievePaymentIntent = function (clientSecret) {
return this.stripe.pipe(switchMap(function (stripe) { return from(stripe.retrievePaymentIntent(clientSecret)); }), first());
};
StripeInstance.prototype.confirmAuBecsDebitSetup = function (clientSecret, data) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.confirmAuBecsDebitSetup(clientSecret, data));
}), first());
};
StripeInstance.prototype.confirmCardSetup = function (clientSecret, data, options) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.confirmCardSetup(clientSecret, data, options));
}), first());
};
StripeInstance.prototype.confirmSepaDebitSetup = function (clientSecret, data) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.confirmSepaDebitSetup(clientSecret, data));
}), first());
};
StripeInstance.prototype.retrieveSetupIntent = function (clientSecret) {
return this.stripe.pipe(switchMap(function (stripe) { return from(stripe.confirmSepaDebitSetup(clientSecret)); }), first());
};
StripeInstance.prototype.paymentRequest = function (options) {
var stripe = this.getInstance();
if (stripe) {
return stripe.paymentRequest(options);
}
return undefined;
return stripe ? stripe.paymentRequest(options) : undefined;
};
StripeInstance.prototype.handleCardPayment = function (a, b, c) {
return this.stripe$.asObservable().pipe(filter(function (stripe) { return Boolean(stripe); }), switchMap(function (s) {
var stripe = s;
if (isHandleCardPaymentOptions(b)) {
return from(stripe.handleCardPayment(a, b));
}
return from(stripe.handleCardPayment(a, b, c));
}));
StripeInstance.prototype.createToken = function (tokenType, data) {
return this.stripe.pipe(switchMap(function (stripe) { return from(stripe.createToken(tokenType, data)); }), first());
};
StripeInstance.prototype.handleCardAction = function (a) {
return this.stripe$.asObservable().pipe(filter(function (stripe) { return Boolean(stripe); }), switchMap(function (s) {
var stripe = s;
return from(stripe.handleCardAction(a));
}));
StripeInstance.prototype.createSource = function (a, b) {
return this.stripe.pipe(switchMap(function (stripe) { return from(stripe.createSource(a, b)); }), first());
};
StripeInstance.prototype.confirmPaymentIntent = function (a, b) {
return this.stripe$.asObservable().pipe(filter(function (stripe) { return Boolean(stripe); }), switchMap(function (s) {
var stripe = s;
return from(stripe.confirmPaymentIntent(a, b));
}));
StripeInstance.prototype.retrieveSource = function (source) {
return this.stripe.pipe(switchMap(function (stripe) { return from(stripe.retrieveSource(source)); }), first());
};
StripeInstance.prototype.createPaymentMethod = function (a, b, c) {
return this.stripe$.asObservable().pipe(filter(function (stripe) { return Boolean(stripe); }), switchMap(function (s) {
var stripe = s;
return from(stripe.createPaymentMethod(a, b, c));
/**
* @deprecated
*/
StripeInstance.prototype.handleCardPayment = function (clientSecret, element, data) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.handleCardPayment(clientSecret, element, data));
}), first());
};
StripeInstance.prototype.handleCardSetup = function (a, b, c) {
return this.stripe$.asObservable().pipe(filter(function (stripe) { return Boolean(stripe); }), switchMap(function (s) {
var stripe = s;
if (isPaymentMethodData(c)) {
return from(stripe.handleCardSetup(a, b, c));
}
return from(stripe.handleCardSetup(a, b));
}));
/**
* @deprecated
*/
StripeInstance.prototype.confirmPaymentIntent = function (clientSecret, element, data) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.confirmPaymentIntent(clientSecret, element, data));
}), first());
};
/**
* @deprecated
*/
StripeInstance.prototype.handleCardSetup = function (clientSecret, element, data) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.handleCardSetup(clientSecret, element, data));
}), first());
};
/**
* @deprecated
*/
StripeInstance.prototype.confirmSetupIntent = function (clientSecret, element, data) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.confirmSetupIntent(clientSecret, element, data));
}), first());
};
/**
* @deprecated
*/
StripeInstance.prototype.handleFpxPayment = function (clientSecret, element, data) {
return this.stripe.pipe(switchMap(function (stripe) {
return from(stripe.handleFpxPayment(clientSecret, element, data));
}), first());
};
return StripeInstance;
}());
export { StripeInstance };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaXBlLWluc3RhbmNlLmNsYXNzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXN0cmlwZS8iLCJzb3VyY2VzIjpbImxpYi9zZXJ2aWNlcy9zd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cmlwZUpTO1xuXG4gICAgICAgIGlmIChpc0hhbmRsZUNhcmRQYXltZW50T3B0aW9ucyhiKSkge1xuICAgICAgICAgIHJldHVybiBmcm9tKFxuICAgICAgICAgICAgc3RyaXBlLmhhbmRsZUNhcmRQYXltZW50KGEgYXMgc3RyaW5nLCBiIGFzIEhhbmRsZUNhcmRQYXltZW50T3B0aW9ucylcbiAgICAgICAgICApO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGZyb20oXG4gICAgICAgICAgc3RyaXBlLmhhbmRsZUNhcmRQYXltZW50KFxuICAgICAgICAgICAgYSBhcyBzdHJpbmcsXG4gICAgICAgICAgICBiIGFzIEVsZW1lbnQsXG4gICAgICAgICAgICBjIGFzIEhhbmRsZUNhcmRQYXltZW50T3B0aW9ucyB8IHVuZGVmaW5lZFxuICAgICAgICAgIClcbiAgICAgICAgKTtcbiAgICAgIH0pXG4gICAgKTtcbiAgfVxuXG4gIHB1YmxpYyBoYW5kbGVDYXJkQWN0aW9uKGE6IHN0cmluZyk6IE9ic2VydmFibGU8UGF5bWVudEludGVudFJlc3VsdD4ge1xuICAgIHJldHVybiB0aGlzLnN0cmlwZSQuYXNPYnNlcnZhYmxlKCkucGlwZShcbiAgICAgIGZpbHRlcihzdHJpcGUgPT4gQm9vbGVhbihzdHJpcGUpKSxcbiAgICAgIHN3aXRjaE1hcChzID0+IHtcbiAgICAgICAgY29uc3Qgc3RyaXBlID0gcyBhcyBTdHJpcGVKUztcblxuICAgICAgICByZXR1cm4gZnJvbShzdHJpcGUuaGFuZGxlQ2FyZEFjdGlvbihhIGFzIHN0cmluZykpO1xuICAgICAgfSlcbiAgICApO1xuICB9XG5cbiAgcHVibGljIGNvbmZpcm1QYXltZW50SW50ZW50KFxuICAgIGE6IHN0cmluZyxcbiAgICBiPzogQ29uZmlybVBheW1lbnRJbnRlbnRPcHRpb25zXG4gICk6IE9ic2VydmFibGU8UGF5bWVudEludGVudFJlc3VsdD4ge1xuICAgIHJldHVybiB0aGlzLnN0cmlwZSQuYXNPYnNlcnZhYmxlKCkucGlwZShcbiAgICAgIGZpbHRlcihzdHJpcGUgPT4gQm9vbGVhbihzdHJpcGUpKSxcbiAgICAgIHN3aXRjaE1hcChzID0+IHtcbiAgICAgICAgY29uc3Qgc3RyaXBlID0gcyBhcyBTdHJpcGVKUztcblxuICAgICAgICByZXR1cm4gZnJvbShcbiAgICAgICAgICBzdHJpcGUuY29uZmlybVBheW1lbnRJbnRlbnQoXG4gICAgICAgICAgICBhIGFzIHN0cmluZyxcbiAgICAgICAgICAgIGIgYXMgQ29uZmlybVBheW1lbnRJbnRlbnRPcHRpb25zIHwgdW5kZWZpbmVkXG4gICAgICAgICAgKVxuICAgICAgICApO1xuICAgICAgfSlcbiAgICApO1xuICB9XG5cbiAgcHVibGljIGNyZWF0ZVBheW1lbnRNZXRob2QoXG4gICAgYTogc3RyaW5nLFxuICAgIGI6IEVsZW1lbnQsXG4gICAgYz86IFBheW1lbnRNZXRob2REYXRhIHwgdW5kZWZpbmVkXG4gICk6IE9ic2VydmFibGU8UGF5bWVudE1ldGhvZFJlc3VsdD4ge1xuICAgIHJldHVybiB0aGlzLnN0cmlwZSQuYXNPYnNlcnZhYmxlKCkucGlwZShcbiAgICAgIGZpbHRlcihzdHJpcGUgPT4gQm9vbGVhbihzdHJpcGUpKSxcbiAgICAgIHN3aXRjaE1hcChzID0+IHtcbiAgICAgICAgY29uc3Qgc3RyaXBlID0gcyBhcyBTdHJpcGVKUztcblxuICAgICAgICByZXR1cm4gZnJvbShzdHJpcGUuY3JlYXRlUGF5bWVudE1ldGhvZChhLCBiLCBjKSk7XG4gICAgICB9KSxcbiAgICAgIGZpcnN0KClcbiAgICApO1xuICB9XG5cbiAgcHVibGljIGhhbmRsZUNhcmRTZXR1cChcbiAgICBhOiBzdHJpbmcsXG4gICAgYj86IEVsZW1lbnQgfCBzdHJpbmcgfCBQYXltZW50TWV0aG9kRGF0YSxcbiAgICBjPzogUGF5bWVudE1ldGhvZERhdGFcbiAgKTogT2JzZXJ2YWJsZTxDYXJkU2V0dXBSZXN1bHQ+IHtcbiAgICByZXR1cm4gdGhpcy5zdHJpcGUkLmFzT2JzZXJ2YWJsZSgpLnBpcGUoXG4gICAgICBmaWx0ZXIoc3RyaXBlID0+IEJvb2xlYW4oc3RyaXBlKSksXG4gICAgICBzd2l0Y2hNYXAocyA9PiB7XG4gICAgICAgIGNvbnN0IHN0cmlwZSA9IHMgYXMgU3RyaXBlSlM7XG5cbiAgICAgICAgaWYgKGlzUGF5bWVudE1ldGhvZERhdGEoYykpIHtcbiAgICAgICAgICByZXR1cm4gZnJvbShcbiAgICAgICAgICAgIHN0cmlwZS5oYW5kbGVDYXJkU2V0dXAoXG4gICAgICAgICAgICAgIGEsXG4gICAgICAgICAgICAgIGIgYXMgRWxlbWVudCxcbiAgICAgICAgICAgICAgYyBhcyBQYXltZW50TWV0aG9kRGF0YSB8IHVuZGVmaW5lZFxuICAgICAgICAgICAgKVxuICAgICAgICAgICk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gZnJvbShcbiAgICAgICAgICBzdHJpcGUuaGFuZGxlQ2FyZFNldHVwKFxuICAgICAgICAgICAgYSxcbiAgICAgICAgICAgIGIgYXMgc3RyaW5nIHwgUGF5bWVudE1ldGhvZERhdGEgfCB1bmRlZmluZWRcbiAgICAgICAgICApXG4gICAgICAgICk7XG4gICAgICB9KVxuICAgICk7XG4gIH1cbn1cbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaXBlLWluc3RhbmNlLmNsYXNzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXN0cmlwZS8iLCJzb3VyY2VzIjpbImxpYi9zZXJ2aWNlcy9zdHJpcGUtaW5zdGFuY2UuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGVBQWUsRUFBRSxJQUFJLEVBQWMsTUFBTSx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V0OiBzdHJpbmcsXG4gICAgZWxlbWVudD8sXG4gICAgZGF0YT9cbiAgKTogT2JzZXJ2YWJsZTx7XG4gICAgc2V0dXBJbnRlbnQ/OiBTdHJpcGVKUy5TZXR1cEludGVudDtcbiAgICBlcnJvcj86IFN0cmlwZUpTLlN0cmlwZUVycm9yO1xuICB9PiB7XG4gICAgcmV0dXJuIHRoaXMuc3RyaXBlLnBpcGUoXG4gICAgICBzd2l0Y2hNYXAoKHN0cmlwZSkgPT5cbiAgICAgICAgZnJvbSgoc3RyaXBlIGFzIGFueSkuaGFuZGxlRnB4UGF5bWVudChjbGllbnRTZWNyZXQsIGVsZW1lbnQsIGRhdGEpKVxuICAgICAgKSxcbiAgICAgIGZpcnN0KClcbiAgICApO1xuICB9XG59XG4iXX0=
import { __decorate, __param } from "tslib";
import { Injectable, Inject } from '@angular/core';
import { filter, map } from 'rxjs/operators';
import { STRIPE_PUBLISHABLE_KEY, STRIPE_OPTIONS } from '../interfaces/ngx-stripe.interface';
import { WindowRef } from './window-ref.service';
import { LazyStripeAPILoader, Status } from './api-loader.service';
import { STRIPE_PUBLISHABLE_KEY, STRIPE_OPTIONS } from '../interfaces/stripe';
import { StripeInstance } from './stripe-instance.class';
import { filter, map } from 'rxjs/operators';
var StripeService = /** @class */ (function () {

@@ -35,5 +35,59 @@ function StripeService(key, options, loader, window) {

};
StripeService.prototype.createToken = function (a, b) {
return this.stripe.createToken(a, b);
StripeService.prototype.redirectToCheckout = function (options) {
return this.stripe.redirectToCheckout(options);
};
StripeService.prototype.confirmAuBecsDebitPayment = function (clientSecret, data) {
return this.stripe.confirmAuBecsDebitPayment(clientSecret, data);
};
StripeService.prototype.confirmBancontactPayment = function (clientSecret, data, options) {
return this.stripe.confirmBancontactPayment(clientSecret, data, options);
};
StripeService.prototype.confirmCardPayment = function (clientSecret, data, options) {
return this.stripe.confirmCardPayment(clientSecret, data, options);
};
StripeService.prototype.confirmEpsPayment = function (clientSecret, data, options) {
return this.stripe.confirmEpsPayment(clientSecret, data, options);
};
StripeService.prototype.confirmFpxPayment = function (clientSecret, data, options) {
return this.stripe.confirmFpxPayment(clientSecret, data, options);
};
StripeService.prototype.confirmGiropayPayment = function (clientSecret, data, options) {
return this.stripe.confirmGiropayPayment(clientSecret, data, options);
};
StripeService.prototype.confirmIdealPayment = function (clientSecret, data, options) {
return this.stripe.confirmIdealPayment(clientSecret, data, options);
};
StripeService.prototype.confirmP24Payment = function (clientSecret, data, options) {
return this.stripe.confirmP24Payment(clientSecret, data, options);
};
StripeService.prototype.confirmSepaDebitPayment = function (clientSecret, data) {
return this.stripe.confirmSepaDebitPayment(clientSecret, data);
};
StripeService.prototype.handleCardAction = function (clientSecret) {
return this.stripe.handleCardAction(clientSecret);
};
StripeService.prototype.createPaymentMethod = function (paymentMethodData) {
return this.stripe.createPaymentMethod(paymentMethodData);
};
StripeService.prototype.retrievePaymentIntent = function (clientSecret) {
return this.stripe.retrievePaymentIntent(clientSecret);
};
StripeService.prototype.confirmAuBecsDebitSetup = function (clientSecret, data) {
return this.stripe.confirmAuBecsDebitSetup(clientSecret, data);
};
StripeService.prototype.confirmCardSetup = function (clientSecret, data, options) {
return this.stripe.confirmCardSetup(clientSecret, data, options);
};
StripeService.prototype.confirmSepaDebitSetup = function (clientSecret, data) {
return this.stripe.confirmSepaDebitSetup(clientSecret, data);
};
StripeService.prototype.retrieveSetupIntent = function (clientSecret) {
return this.stripe.retrieveSetupIntent(clientSecret);
};
StripeService.prototype.paymentRequest = function (options) {
return this.stripe.paymentRequest(options);
};
StripeService.prototype.createToken = function (tokenType, data) {
return this.stripe.createToken(tokenType, data);
};
StripeService.prototype.createSource = function (a, b) {

@@ -45,20 +99,32 @@ return this.stripe.createSource(a, b);

};
StripeService.prototype.paymentRequest = function (options) {
return this.stripe.paymentRequest(options);
/**
* @deprecated
*/
StripeService.prototype.handleCardPayment = function (clientSecret, element, data) {
return this.stripe.handleCardPayment(clientSecret, element, data);
};
StripeService.prototype.handleCardPayment = function (a, b, c) {
return this.stripe.handleCardPayment(a, b, c);
/**
* @deprecated
*/
StripeService.prototype.confirmPaymentIntent = function (clientSecret, element, data) {
return this.stripe.confirmPaymentIntent(clientSecret, element, data);
};
StripeService.prototype.handleCardAction = function (a) {
return this.stripe.handleCardAction(a);
/**
* @deprecated
*/
StripeService.prototype.handleCardSetup = function (clientSecret, element, data) {
return this.stripe.handleCardSetup(clientSecret, element, data);
};
StripeService.prototype.createPaymentMethod = function (a, b, c) {
return this.stripe.createPaymentMethod(a, b, c);
/**
* @deprecated
*/
StripeService.prototype.confirmSetupIntent = function (clientSecret, element, data) {
return this.stripe.confirmSetupIntent(clientSecret, element, data);
};
StripeService.prototype.confirmPaymentIntent = function (a, b) {
return this.stripe.confirmPaymentIntent(a, b);
/**
* @deprecated
*/
StripeService.prototype.handleFpxPayment = function (clientSecret, element, data) {
return this.stripe.handleFpxPayment(clientSecret, element, data);
};
StripeService.prototype.handleCardSetup = function (a, b, c) {
return this.stripe.handleCardSetup(a, b, c);
};
StripeService.ctorParameters = function () { return [

@@ -78,2 +144,2 @@ { type: String, decorators: [{ type: Inject, args: [STRIPE_PUBLISHABLE_KEY,] }] },

export { StripeService };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaXBlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtc3RyaXBlLyIsInNvdXJjZXMiOlsibGliL3NlcnZpY2VzL3N0cmlwZS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUluRCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDakQsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRW5FLE9BQU8sRUFDTCx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9ic2VydmFibGU8UGF5bWVudEludGVudFJlc3VsdD4ge1xuICAgIHJldHVybiB0aGlzLnN0cmlwZS5oYW5kbGVDYXJkUGF5bWVudChhLCBiLCBjKTtcbiAgfVxuXG4gIHB1YmxpYyBoYW5kbGVDYXJkQWN0aW9uKGE6IHN0cmluZyk6IE9ic2VydmFibGU8UGF5bWVudEludGVudFJlc3VsdD4ge1xuICAgIHJldHVybiB0aGlzLnN0cmlwZS5oYW5kbGVDYXJkQWN0aW9uKGEpO1xuICB9XG5cbiAgcHVibGljIGNyZWF0ZVBheW1lbnRNZXRob2QoXG4gICAgYTogc3RyaW5nLFxuICAgIGI6IEVsZW1lbnQsXG4gICAgYz86IFBheW1lbnRNZXRob2REYXRhXG4gICk6IE9ic2VydmFibGU8UGF5bWVudE1ldGhvZFJlc3VsdD4ge1xuICAgIHJldHVybiB0aGlzLnN0cmlwZS5jcmVhdGVQYXltZW50TWV0aG9kKGEsIGIsIGMpO1xuICB9XG5cbiAgcHVibGljIGNvbmZpcm1QYXltZW50SW50ZW50KFxuICAgIGE6IHN0cmluZyxcbiAgICBiPzogQ29uZmlybVBheW1lbnRJbnRlbnRPcHRpb25zXG4gICk6IE9ic2VydmFibGU8UGF5bWVudEludGVudFJlc3VsdD4ge1xuICAgIHJldHVybiB0aGlzLnN0cmlwZS5jb25maXJtUGF5bWVudEludGVudChhLCBiKTtcbiAgfVxuXG4gIHB1YmxpYyBoYW5kbGVDYXJkU2V0dXAoXG4gICAgYTogc3RyaW5nLFxuICAgIGI/OiBzdHJpbmcgfCBFbGVtZW50IHwgUGF5bWVudE1ldGhvZERhdGEsXG4gICAgYz86IFBheW1lbnRNZXRob2REYXRhXG4gICk6IE9ic2VydmFibGU8Q2FyZFNldHVwUmVzdWx0PiB7XG4gICAgcmV0dXJuIHRoaXMuc3RyaXBlLmhhbmRsZUNhcmRTZXR1cChhLCBiLCBjKTtcbiAgfVxufVxuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uI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biAgICBkYXRhP1xuICApOiBPYnNlcnZhYmxlPHtcbiAgICBzZXR1cEludGVudD86IFN0cmlwZUpTLlNldHVwSW50ZW50O1xuICAgIGVycm9yPzogU3RyaXBlSlMuU3RyaXBlRXJyb3I7XG4gIH0+IHtcbiAgICByZXR1cm4gdGhpcy5zdHJpcGUuaGFuZGxlQ2FyZFNldHVwKGNsaWVudFNlY3JldCwgZWxlbWVudCwgZGF0YSk7XG4gIH1cblxuICAvKipcbiAgICogQGRlcHJlY2F0ZWRcbiAgICovXG4gIGNvbmZpcm1TZXR1cEludGVudChcbiAgICBjbGllbnRTZWNyZXQ6IHN0cmluZyxcbiAgICBlbGVtZW50PyxcbiAgICBkYXRhP1xuICApOiBPYnNlcnZhYmxlPHtcbiAgICBzZXR1cEludGVudD86IFN0cmlwZUpTLlNldHVwSW50ZW50O1xuICAgIGVycm9yPzogU3RyaXBlSlMuU3RyaXBlRXJyb3I7XG4gIH0+IHtcbiAgICByZXR1cm4gdGhpcy5zdHJpcGUuY29uZmlybVNldHVwSW50ZW50KGNsaWVudFNlY3JldCwgZWxlbWVudCwgZGF0YSk7XG4gIH1cblxuICAvKipcbiAgICogQGRlcHJlY2F0ZWRcbiAgICovXG4gIGhhbmRsZUZweFBheW1lbnQoXG4gICAgY2xpZW50U2VjcmV0OiBzdHJpbmcsXG4gICAgZWxlbWVudD8sXG4gICAgZGF0YT9cbiAgKTogT2JzZXJ2YWJsZTx7XG4gICAgc2V0dXBJbnRlbnQ/OiBTdHJpcGVKUy5TZXR1cEludGVudDtcbiAgICBlcnJvcj86IFN0cmlwZUpTLlN0cmlwZUVycm9yO1xuICB9PiB7XG4gICAgcmV0dXJuIHRoaXMuc3RyaXBlLmhhbmRsZUZweFBheW1lbnQoY2xpZW50U2VjcmV0LCBlbGVtZW50LCBkYXRhKTtcbiAgfVxufVxuIl19

@@ -5,2 +5,3 @@ /**

export * from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXN0cmlwZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zdHJpcGUvIiwic291cmNlcyI6WyJuZ3gtc3RyaXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
export { StripeElementsService as ɵa } from './lib/services/stripe-elements.service';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXN0cmlwZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zdHJpcGUvIiwic291cmNlcyI6WyJuZ3gtc3RyaXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLHFCQUFxQixJQUFJLEVBQUUsRUFBQyxNQUFNLHdDQUF3QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuXG5leHBvcnQge1N0cmlwZUVsZW1lbnRzU2VydmljZSBhcyDJtWF9IGZyb20gJy4vbGliL3NlcnZpY2VzL3N0cmlwZS1lbGVtZW50cy5zZXJ2aWNlJzsiXX0=

@@ -5,3 +5,11 @@ /*

export { NgxStripeModule } from './lib/ngx-stripe.module';
export { StripeCardComponent } from './lib/components/stripe-card.component';
export { StripeCardComponent } from './lib/components/card.component';
export { StripeCardNumberComponent } from './lib/components/card-number.component';
export { StripeCardExpiryComponent } from './lib/components/card-expiry.component';
export { StripeCardCvcComponent } from './lib/components/card-cvc.component';
export { StripeFpxBankComponent } from './lib/components/fpx-bank.component';
export { StripeIbanComponent } from './lib/components/iban.component';
export { StripeIdealBankComponent } from './lib/components/ideal-bank.component';
export { StripeAuBankAccountComponent } from './lib/components/au-bank-account.component';
export { StripePaymentRequestButtonComponent } from './lib/components/payment-request-button.component';
export { StripeService } from './lib/services/stripe.service';

@@ -13,5 +21,3 @@ export { StripeFactoryService } from './lib/services/stripe-factory.service';

export { DocumentRef } from './lib/services/document-ref.service';
export { isSourceData } from './lib/interfaces/sources';
export { STRIPE_PUBLISHABLE_KEY, STRIPE_OPTIONS } from './lib/interfaces/stripe';
export { isBankAccount, isBankAccountData, isPii, isPiiData } from './lib/interfaces/token';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zdHJpcGUvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBRTFELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBRTdFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUM5RCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQztBQUM3RSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFJdEUsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFFeEUsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBQzlELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztB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zUGlpRGF0YVxufSBmcm9tICcuL2xpYi9pbnRlcmZhY2VzL3Rva2VuJztcblxuZXhwb3J0IHtcbiAgSGFuZGxlQ2FyZFBheW1lbnRPcHRpb25zLFxuICBDb25maXJtUGF5bWVudEludGVudE9wdGlvbnMsXG4gIFBheW1lbnRJbnRlbnQsXG4gIFBheW1lbnRJbnRlbnRSZXN1bHRcbn0gZnJvbSAnLi9saWIvaW50ZXJmYWNlcy9wYXltZW50LWludGVudCc7XG5cbmV4cG9ydCB7XG4gIFNldHVwSW50ZW50LFxuICBDYXJkU2V0dXBSZXN1bHRcbn0gZnJvbSAnLi9saWIvaW50ZXJmYWNlcy9jYXJkLXNldHVwJztcblxuZXhwb3J0IHsgRXJyb3IsIEFkZHJlc3MgfSBmcm9tICcuL2xpYi9pbnRlcmZhY2VzL3V0aWxzJztcbiJdfQ==
export { STRIPE_PUBLISHABLE_KEY, STRIPE_OPTIONS } from './lib/interfaces/ngx-stripe.interface';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zdHJpcGUvIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBRTFELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQ3RFLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQ25GLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQ25GLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQzdFLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHFDQ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iAgUGF5bWVudFJlcXVlc3RUb2tlbkV2ZW50LFxuICBQYXltZW50UmVxdWVzdFBheW1lbnRNZXRob2RFdmVudCxcbiAgUGF5bWVudFJlcXVlc3RTb3VyY2VFdmVudCxcbiAgUGF5bWVudFJlcXVlc3RTaGlwcGluZ0FkZHJlc3NFdmVudCxcbiAgUGF5bWVudFJlcXVlc3RTaGlwcGluZ09wdGlvbkV2ZW50XG59IGZyb20gJy4vbGliL2ludGVyZmFjZXMvc3RyaXBlanMuaW50ZXJmYWNlJztcbiJdfQ==

@@ -1,7 +0,10 @@

import { __decorate, __param } from 'tslib';
import { Inject, PLATFORM_ID, Injectable, InjectionToken, EventEmitter, Output, ViewChild, Input, Component, NgModule } from '@angular/core';
import { __decorate, __param, __awaiter } from 'tslib';
import { InjectionToken, Inject, PLATFORM_ID, Injectable, ɵɵdefineInjectable, ɵɵinject, EventEmitter, ViewChild, Input, Output, Component, NgModule } from '@angular/core';
import { filter, first, map, switchMap } from 'rxjs/operators';
import { isPlatformBrowser, isPlatformServer } from '@angular/common';
import { BehaviorSubject, from, combineLatest } from 'rxjs';
import { filter, first, map, switchMap } from 'rxjs/operators';
import { BehaviorSubject, from } from 'rxjs';
const STRIPE_PUBLISHABLE_KEY = new InjectionToken('Stripe Publishable Key');
const STRIPE_OPTIONS = new InjectionToken('Stripe Options');
let WindowRef = class WindowRef {

@@ -110,41 +113,2 @@ constructor(platformId) {

const STRIPE_PUBLISHABLE_KEY = new InjectionToken('Stripe Publishable Key');
const STRIPE_OPTIONS = new InjectionToken('Stripe Options');
function isSourceData(sourceData) {
return 'type' in sourceData;
}
function isAccount(account) {
return account === 'account';
}
function isAccountData(accountData) {
return accountData.legal_entity || accountData.tos_shown_and_accepted;
}
function isBankAccount(account) {
return account === 'bank_account';
}
function isBankAccountData(bankAccountData) {
return ('country' in bankAccountData &&
'currency' in bankAccountData &&
'routing_number' in bankAccountData &&
'account_number' in bankAccountData &&
(bankAccountData.account_holder_type === 'individual' ||
bankAccountData.account_holder_type === 'company' ||
bankAccountData.account_holder_type === undefined));
}
function isPii(pii) {
return pii === 'pii';
}
function isPiiData(piiData) {
return 'personal_id_number' in piiData;
}
function isHandleCardPaymentOptions(handleCardPaymentOptions) {
return 'type' in handleCardPaymentOptions;
}
function isPaymentMethodData(paymentMethodData) {
return paymentMethodData && 'type' in paymentMethodData;
}
class StripeInstance {

@@ -160,9 +124,14 @@ constructor(loader, window, key, options) {

.pipe(filter((status) => status.loaded === true), first(), map(() => this.window.getNativeWindow().Stripe))
.subscribe((Stripe) => {
.subscribe((stripeInstance) => {
const stripe = this.options
? Stripe(this.key, this.options)
: Stripe(this.key);
? stripeInstance(this.key, this.options)
: stripeInstance(this.key);
this.stripe$.next(stripe);
});
}
get stripe() {
return this.stripe$
.asObservable()
.pipe(filter((stripe) => Boolean(stripe)));
}
getInstance() {

@@ -172,79 +141,98 @@ return this.stripe$.getValue();

elements(options) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), map(stripe => stripe.elements(options)), first());
return this.stripe$.asObservable().pipe(filter((stripe) => Boolean(stripe)), map((stripe) => stripe.elements(options)), first());
}
createToken(a, b) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
if (isAccount(a) && isAccountData(b)) {
return from(stripe.createToken(a, b));
}
else if (isBankAccount(a) && isBankAccountData(b)) {
return from(stripe.createToken(a, b));
}
else if (isPii(a) && isPiiData(b)) {
return from(stripe.createToken(a, b));
}
else {
return from(stripe.createToken(a, b));
}
}), first());
redirectToCheckout(options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.redirectToCheckout(options))), first());
}
createSource(a, b) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
if (isSourceData(a)) {
return from(stripe.createSource(a));
}
return from(stripe.createSource(a, b));
}), first());
confirmAuBecsDebitPayment(clientSecret, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmAuBecsDebitPayment(clientSecret, data))), first());
}
retrieveSource(source) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
return from(stripe.retrieveSource(source));
}), first());
confirmBancontactPayment(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmBancontactPayment(clientSecret, data, options))), first());
}
confirmCardPayment(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmCardPayment(clientSecret, data, options))), first());
}
confirmEpsPayment(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmEpsPayment(clientSecret, data, options))), first());
}
confirmFpxPayment(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmFpxPayment(clientSecret, data, options))), first());
}
confirmGiropayPayment(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmGiropayPayment(clientSecret, data, options))), first());
}
confirmIdealPayment(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmIdealPayment(clientSecret, data, options))), first());
}
confirmP24Payment(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmP24Payment(clientSecret, data, options))), first());
}
confirmSepaDebitPayment(clientSecret, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmSepaDebitPayment(clientSecret, data))), first());
}
handleCardAction(clientSecret) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.handleCardAction(clientSecret))), first());
}
createPaymentMethod(paymentMethodData) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.createPaymentMethod(paymentMethodData))), first());
}
retrievePaymentIntent(clientSecret) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.retrievePaymentIntent(clientSecret))), first());
}
confirmAuBecsDebitSetup(clientSecret, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmAuBecsDebitSetup(clientSecret, data))), first());
}
confirmCardSetup(clientSecret, data, options) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmCardSetup(clientSecret, data, options))), first());
}
confirmSepaDebitSetup(clientSecret, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmSepaDebitSetup(clientSecret, data))), first());
}
retrieveSetupIntent(clientSecret) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmSepaDebitSetup(clientSecret))), first());
}
paymentRequest(options) {
const stripe = this.getInstance();
if (stripe) {
return stripe.paymentRequest(options);
}
return undefined;
return stripe ? stripe.paymentRequest(options) : undefined;
}
handleCardPayment(a, b, c) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
if (isHandleCardPaymentOptions(b)) {
return from(stripe.handleCardPayment(a, b));
}
return from(stripe.handleCardPayment(a, b, c));
}));
createToken(tokenType, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.createToken(tokenType, data))), first());
}
handleCardAction(a) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
return from(stripe.handleCardAction(a));
}));
createSource(a, b) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.createSource(a, b))), first());
}
confirmPaymentIntent(a, b) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
return from(stripe.confirmPaymentIntent(a, b));
}));
retrieveSource(source) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.retrieveSource(source))), first());
}
createPaymentMethod(a, b, c) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
return from(stripe.createPaymentMethod(a, b, c));
}), first());
/**
* @deprecated
*/
handleCardPayment(clientSecret, element, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.handleCardPayment(clientSecret, element, data))), first());
}
handleCardSetup(a, b, c) {
return this.stripe$.asObservable().pipe(filter(stripe => Boolean(stripe)), switchMap(s => {
const stripe = s;
if (isPaymentMethodData(c)) {
return from(stripe.handleCardSetup(a, b, c));
}
return from(stripe.handleCardSetup(a, b));
}));
/**
* @deprecated
*/
confirmPaymentIntent(clientSecret, element, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmPaymentIntent(clientSecret, element, data))), first());
}
/**
* @deprecated
*/
handleCardSetup(clientSecret, element, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.handleCardSetup(clientSecret, element, data))), first());
}
/**
* @deprecated
*/
confirmSetupIntent(clientSecret, element, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.confirmSetupIntent(clientSecret, element, data))), first());
}
/**
* @deprecated
*/
handleFpxPayment(clientSecret, element, data) {
return this.stripe.pipe(switchMap((stripe) => from(stripe.handleFpxPayment(clientSecret, element, data))), first());
}
}

@@ -278,5 +266,59 @@

}
createToken(a, b) {
return this.stripe.createToken(a, b);
redirectToCheckout(options) {
return this.stripe.redirectToCheckout(options);
}
confirmAuBecsDebitPayment(clientSecret, data) {
return this.stripe.confirmAuBecsDebitPayment(clientSecret, data);
}
confirmBancontactPayment(clientSecret, data, options) {
return this.stripe.confirmBancontactPayment(clientSecret, data, options);
}
confirmCardPayment(clientSecret, data, options) {
return this.stripe.confirmCardPayment(clientSecret, data, options);
}
confirmEpsPayment(clientSecret, data, options) {
return this.stripe.confirmEpsPayment(clientSecret, data, options);
}
confirmFpxPayment(clientSecret, data, options) {
return this.stripe.confirmFpxPayment(clientSecret, data, options);
}
confirmGiropayPayment(clientSecret, data, options) {
return this.stripe.confirmGiropayPayment(clientSecret, data, options);
}
confirmIdealPayment(clientSecret, data, options) {
return this.stripe.confirmIdealPayment(clientSecret, data, options);
}
confirmP24Payment(clientSecret, data, options) {
return this.stripe.confirmP24Payment(clientSecret, data, options);
}
confirmSepaDebitPayment(clientSecret, data) {
return this.stripe.confirmSepaDebitPayment(clientSecret, data);
}
handleCardAction(clientSecret) {
return this.stripe.handleCardAction(clientSecret);
}
createPaymentMethod(paymentMethodData) {
return this.stripe.createPaymentMethod(paymentMethodData);
}
retrievePaymentIntent(clientSecret) {
return this.stripe.retrievePaymentIntent(clientSecret);
}
confirmAuBecsDebitSetup(clientSecret, data) {
return this.stripe.confirmAuBecsDebitSetup(clientSecret, data);
}
confirmCardSetup(clientSecret, data, options) {
return this.stripe.confirmCardSetup(clientSecret, data, options);
}
confirmSepaDebitSetup(clientSecret, data) {
return this.stripe.confirmSepaDebitSetup(clientSecret, data);
}
retrieveSetupIntent(clientSecret) {
return this.stripe.retrieveSetupIntent(clientSecret);
}
paymentRequest(options) {
return this.stripe.paymentRequest(options);
}
createToken(tokenType, data) {
return this.stripe.createToken(tokenType, data);
}
createSource(a, b) {

@@ -288,20 +330,32 @@ return this.stripe.createSource(a, b);

}
paymentRequest(options) {
return this.stripe.paymentRequest(options);
/**
* @deprecated
*/
handleCardPayment(clientSecret, element, data) {
return this.stripe.handleCardPayment(clientSecret, element, data);
}
handleCardPayment(a, b, c) {
return this.stripe.handleCardPayment(a, b, c);
/**
* @deprecated
*/
confirmPaymentIntent(clientSecret, element, data) {
return this.stripe.confirmPaymentIntent(clientSecret, element, data);
}
handleCardAction(a) {
return this.stripe.handleCardAction(a);
/**
* @deprecated
*/
handleCardSetup(clientSecret, element, data) {
return this.stripe.handleCardSetup(clientSecret, element, data);
}
createPaymentMethod(a, b, c) {
return this.stripe.createPaymentMethod(a, b, c);
/**
* @deprecated
*/
confirmSetupIntent(clientSecret, element, data) {
return this.stripe.confirmSetupIntent(clientSecret, element, data);
}
confirmPaymentIntent(a, b) {
return this.stripe.confirmPaymentIntent(a, b);
/**
* @deprecated
*/
handleFpxPayment(clientSecret, element, data) {
return this.stripe.handleFpxPayment(clientSecret, element, data);
}
handleCardSetup(a, b, c) {
return this.stripe.handleCardSetup(a, b, c);
}
};

@@ -320,120 +374,981 @@ StripeService.ctorParameters = () => [

let StripeFactoryService = class StripeFactoryService {
constructor(baseKey, baseOptions, loader, window) {
this.baseKey = baseKey;
this.baseOptions = baseOptions;
this.loader = loader;
this.window = window;
let StripeElementsService = class StripeElementsService {
constructor(stripeService) {
this.stripeService = stripeService;
}
create(key, options) {
return new StripeInstance(this.loader, this.window, key, options);
elements(stripe, options) {
if (stripe) {
if (Object.keys(options).length > 0) {
return stripe.elements(options);
}
return stripe.elements();
}
else {
if (Object.keys(options).length > 0) {
return this.stripeService.elements(options);
}
return this.stripeService.elements();
}
}
paymentRequest(stripe, options) {
return stripe
? stripe.paymentRequest(options)
: this.stripeService.paymentRequest(options);
}
mergeOptions(options, containerClass) {
if (!containerClass || (options && options.classes)) {
return options;
}
if (!options || !options.classes) {
return Object.assign(Object.assign({}, (options || {})), { classes: {
base: containerClass,
complete: `${containerClass}--complete`,
empty: `${containerClass}--empty`,
focus: `${containerClass}--focus`,
invalid: `${containerClass}--invalid`,
webkitAutoFill: `${containerClass}--webkit-autoFill`
} });
}
return options;
}
};
StripeFactoryService.ctorParameters = () => [
{ type: String, decorators: [{ type: Inject, args: [STRIPE_PUBLISHABLE_KEY,] }] },
{ type: String, decorators: [{ type: Inject, args: [STRIPE_OPTIONS,] }] },
{ type: LazyStripeAPILoader },
{ type: WindowRef }
StripeElementsService.ctorParameters = () => [
{ type: StripeService }
];
StripeFactoryService = __decorate([
Injectable(),
__param(0, Inject(STRIPE_PUBLISHABLE_KEY)),
__param(1, Inject(STRIPE_OPTIONS))
], StripeFactoryService);
StripeElementsService.ɵprov = ɵɵdefineInjectable({ factory: function StripeElementsService_Factory() { return new StripeElementsService(ɵɵinject(StripeService)); }, token: StripeElementsService, providedIn: "root" });
StripeElementsService = __decorate([
Injectable({ providedIn: 'root' })
], StripeElementsService);
let StripeCardComponent = class StripeCardComponent {
constructor(stripeService) {
this.stripeService = stripeService;
this.card = new EventEmitter();
// tslint:disable-next-line:no-output-on-prefix
this.on = new EventEmitter();
this.options$ = new BehaviorSubject({});
this.elementsOptions$ = new BehaviorSubject({});
this.stripe$ = new BehaviorSubject(null);
constructor(stripeElementsService) {
this.stripeElementsService = stripeElementsService;
this.load = new EventEmitter();
this.blur = new EventEmitter();
this.change = new EventEmitter();
this.focus = new EventEmitter();
this.ready = new EventEmitter();
this.escape = new EventEmitter();
}
set options(optionsIn) {
this.options$.next(optionsIn);
ngOnChanges(changes) {
return __awaiter(this, void 0, void 0, function* () {
const options = this.stripeElementsService.mergeOptions(this.options, this.containerClass);
const elementsOptions = this.elementsOptions;
const stripe = this.stripe;
if (changes.elementsOptions || changes.stripe) {
const elements = yield this.stripeElementsService
.elements(stripe, elementsOptions)
.toPromise();
this.elements = elements;
}
if (changes.options || changes.containerClass) {
if (this.element) {
this.update(options);
}
else {
this.element = this.elements.create('card', options);
this.element.on('change', (ev) => this.change.emit(ev));
this.element.on('blur', () => this.blur.emit());
this.element.on('focus', () => this.focus.emit());
this.element.on('ready', () => this.ready.emit());
this.element.on('escape', () => this.escape.emit());
this.element.mount(this.stripeElementRef.nativeElement);
this.load.emit(this.element);
}
}
});
}
set elementsOptions(optionsIn) {
this.elementsOptions$.next(optionsIn);
ngOnDestroy() {
this.element.destroy();
}
set stripe(stripeIn) {
this.stripe$.next(stripeIn);
update(options) {
this.element.update(options);
}
ngAfterViewInit() {
const elements$ = combineLatest(this.elementsOptions$.asObservable(), this.stripe$.asObservable()).pipe(switchMap(([options, stripe]) => {
if (stripe) {
if (Object.keys(options).length > 0) {
return stripe.elements(options);
/**
* @deprecated
*/
getCard() {
return this.element;
}
};
StripeCardComponent.ctorParameters = () => [
{ type: StripeElementsService }
];
__decorate([
ViewChild('stripeElementRef')
], StripeCardComponent.prototype, "stripeElementRef", void 0);
__decorate([
Input()
], StripeCardComponent.prototype, "containerClass", void 0);
__decorate([
Input()
], StripeCardComponent.prototype, "options", void 0);
__decorate([
Input()
], StripeCardComponent.prototype, "elementsOptions", void 0);
__decorate([
Input()
], StripeCardComponent.prototype, "stripe", void 0);
__decorate([
Output()
], StripeCardComponent.prototype, "load", void 0);
__decorate([
Output()
], StripeCardComponent.prototype, "blur", void 0);
__decorate([
Output()
], StripeCardComponent.prototype, "change", void 0);
__decorate([
Output()
], StripeCardComponent.prototype, "focus", void 0);
__decorate([
Output()
], StripeCardComponent.prototype, "ready", void 0);
__decorate([
Output()
], StripeCardComponent.prototype, "escape", void 0);
StripeCardComponent = __decorate([
Component({
selector: 'ngx-stripe-card',
template: `<div class="field" #stripeElementRef></div>`
})
], StripeCardComponent);
let StripeCardNumberComponent = class StripeCardNumberComponent {
constructor(stripeElementsService) {
this.stripeElementsService = stripeElementsService;
this.load = new EventEmitter();
this.blur = new EventEmitter();
this.change = new EventEmitter();
this.focus = new EventEmitter();
this.ready = new EventEmitter();
this.escape = new EventEmitter();
}
ngOnChanges(changes) {
return __awaiter(this, void 0, void 0, function* () {
const options = this.stripeElementsService.mergeOptions(this.options, this.containerClass);
const elementsOptions = this.elementsOptions;
const stripe = this.stripe;
if (changes.elementsOptions || changes.stripe) {
const elements = yield this.stripeElementsService
.elements(stripe, elementsOptions)
.toPromise();
this.elements = elements;
}
if (changes.options || changes.containerClass) {
if (this.element) {
this.update(options);
}
return stripe.elements();
else {
this.element = this.elements.create('cardNumber', options);
this.element.on('change', (ev) => this.change.emit(ev));
this.element.on('blur', () => this.blur.emit());
this.element.on('focus', () => this.focus.emit());
this.element.on('ready', () => this.ready.emit());
this.element.on('escape', () => this.escape.emit());
this.element.mount(this.stripeElementRef.nativeElement);
this.load.emit(this.element);
}
}
else {
if (Object.keys(options).length > 0) {
return this.stripeService.elements(options);
});
}
ngOnDestroy() {
this.element.destroy();
}
update(options) {
this.element.update(options);
}
/**
* @deprecated
*/
getCardNumber() {
return this.element;
}
};
StripeCardNumberComponent.ctorParameters = () => [
{ type: StripeElementsService }
];
__decorate([
ViewChild('stripeElementRef')
], StripeCardNumberComponent.prototype, "stripeElementRef", void 0);
__decorate([
Input()
], StripeCardNumberComponent.prototype, "containerClass", void 0);
__decorate([
Input()
], StripeCardNumberComponent.prototype, "options", void 0);
__decorate([
Input()
], StripeCardNumberComponent.prototype, "elementsOptions", void 0);
__decorate([
Input()
], StripeCardNumberComponent.prototype, "stripe", void 0);
__decorate([
Output()
], StripeCardNumberComponent.prototype, "load", void 0);
__decorate([
Output()
], StripeCardNumberComponent.prototype, "blur", void 0);
__decorate([
Output()
], StripeCardNumberComponent.prototype, "change", void 0);
__decorate([
Output()
], StripeCardNumberComponent.prototype, "focus", void 0);
__decorate([
Output()
], StripeCardNumberComponent.prototype, "ready", void 0);
__decorate([
Output()
], StripeCardNumberComponent.prototype, "escape", void 0);
StripeCardNumberComponent = __decorate([
Component({
selector: 'ngx-stripe-card-number',
template: `<div class="field" #stripeElementRef></div>`
})
], StripeCardNumberComponent);
let StripeCardExpiryComponent = class StripeCardExpiryComponent {
constructor(stripeElementsService) {
this.stripeElementsService = stripeElementsService;
this.load = new EventEmitter();
this.blur = new EventEmitter();
this.change = new EventEmitter();
this.focus = new EventEmitter();
this.ready = new EventEmitter();
this.escape = new EventEmitter();
}
ngOnChanges(changes) {
return __awaiter(this, void 0, void 0, function* () {
const options = this.stripeElementsService.mergeOptions(this.options, this.containerClass);
const elementsOptions = this.elementsOptions;
const stripe = this.stripe;
if (changes.elementsOptions || changes.stripe) {
const elements = yield this.stripeElementsService
.elements(stripe, elementsOptions)
.toPromise();
this.elements = elements;
}
if (changes.options || changes.containerClass) {
if (this.element) {
this.update(options);
}
return this.stripeService.elements();
else {
this.element = this.elements.create('cardExpiry', options);
this.element.on('change', (ev) => this.change.emit(ev));
this.element.on('blur', () => this.blur.emit());
this.element.on('focus', () => this.focus.emit());
this.element.on('ready', () => this.ready.emit());
this.element.on('escape', () => this.escape.emit());
this.element.mount(this.stripeElementRef.nativeElement);
this.load.emit(this.element);
}
}
}));
combineLatest(elements$, this.options$.asObservable().pipe(filter(options => Boolean(options)))).subscribe(([elements, options]) => {
this.element = elements.create('card', options);
this.element.on('blur', ev => this.on.emit({
event: ev,
type: 'blur'
}));
this.element.on('change', ev => this.on.emit({
event: ev,
type: 'change'
}));
this.element.on('click', ev => this.on.emit({
event: ev,
type: 'click'
}));
this.element.on('focus', ev => this.on.emit({
event: ev,
type: 'focus'
}));
this.element.on('ready', ev => this.on.emit({
event: ev,
type: 'ready'
}));
this.element.mount(this.stripeCard.nativeElement);
this.card.emit(this.element);
});
}
getCard() {
ngOnDestroy() {
this.element.destroy();
}
update(options) {
this.element.update(options);
}
/**
* @deprecated
*/
getCardExpiry() {
return this.element;
}
};
StripeCardComponent.ctorParameters = () => [
{ type: StripeService }
StripeCardExpiryComponent.ctorParameters = () => [
{ type: StripeElementsService }
];
__decorate([
ViewChild('stripeElementRef')
], StripeCardExpiryComponent.prototype, "stripeElementRef", void 0);
__decorate([
Input()
], StripeCardExpiryComponent.prototype, "containerClass", void 0);
__decorate([
Input()
], StripeCardExpiryComponent.prototype, "options", void 0);
__decorate([
Input()
], StripeCardExpiryComponent.prototype, "elementsOptions", void 0);
__decorate([
Input()
], StripeCardExpiryComponent.prototype, "stripe", void 0);
__decorate([
Output()
], StripeCardComponent.prototype, "card", void 0);
], StripeCardExpiryComponent.prototype, "load", void 0);
__decorate([
Output()
], StripeCardComponent.prototype, "on", void 0);
], StripeCardExpiryComponent.prototype, "blur", void 0);
__decorate([
ViewChild('stripeCard')
], StripeCardComponent.prototype, "stripeCard", void 0);
Output()
], StripeCardExpiryComponent.prototype, "change", void 0);
__decorate([
Output()
], StripeCardExpiryComponent.prototype, "focus", void 0);
__decorate([
Output()
], StripeCardExpiryComponent.prototype, "ready", void 0);
__decorate([
Output()
], StripeCardExpiryComponent.prototype, "escape", void 0);
StripeCardExpiryComponent = __decorate([
Component({
selector: 'ngx-stripe-card-expiry',
template: `<div class="field" #stripeElementRef></div>`
})
], StripeCardExpiryComponent);
let StripeCardCvcComponent = class StripeCardCvcComponent {
constructor(stripeElementsService) {
this.stripeElementsService = stripeElementsService;
this.load = new EventEmitter();
this.blur = new EventEmitter();
this.change = new EventEmitter();
this.focus = new EventEmitter();
this.ready = new EventEmitter();
this.escape = new EventEmitter();
}
ngOnChanges(changes) {
return __awaiter(this, void 0, void 0, function* () {
const options = this.stripeElementsService.mergeOptions(this.options, this.containerClass);
const elementsOptions = this.elementsOptions;
const stripe = this.stripe;
if (changes.elementsOptions || changes.stripe) {
const elements = yield this.stripeElementsService
.elements(stripe, elementsOptions)
.toPromise();
this.elements = elements;
}
if (changes.options || changes.containerClass) {
if (this.element) {
this.update(options);
}
else {
this.element = this.elements.create('cardCvc', options);
this.element.on('change', (ev) => this.change.emit(ev));
this.element.on('blur', () => this.blur.emit());
this.element.on('focus', () => this.focus.emit());
this.element.on('ready', () => this.ready.emit());
this.element.on('escape', () => this.escape.emit());
this.element.mount(this.stripeElementRef.nativeElement);
this.load.emit(this.element);
}
}
});
}
ngOnDestroy() {
this.element.destroy();
}
update(options) {
this.element.update(options);
}
/**
* @deprecated
*/
getCardCvc() {
return this.element;
}
};
StripeCardCvcComponent.ctorParameters = () => [
{ type: StripeElementsService }
];
__decorate([
ViewChild('stripeElementRef')
], StripeCardCvcComponent.prototype, "stripeElementRef", void 0);
__decorate([
Input()
], StripeCardComponent.prototype, "options", null);
], StripeCardCvcComponent.prototype, "containerClass", void 0);
__decorate([
Input()
], StripeCardComponent.prototype, "elementsOptions", null);
], StripeCardCvcComponent.prototype, "options", void 0);
__decorate([
Input()
], StripeCardComponent.prototype, "stripe", null);
StripeCardComponent = __decorate([
], StripeCardCvcComponent.prototype, "elementsOptions", void 0);
__decorate([
Input()
], StripeCardCvcComponent.prototype, "stripe", void 0);
__decorate([
Output()
], StripeCardCvcComponent.prototype, "load", void 0);
__decorate([
Output()
], StripeCardCvcComponent.prototype, "blur", void 0);
__decorate([
Output()
], StripeCardCvcComponent.prototype, "change", void 0);
__decorate([
Output()
], StripeCardCvcComponent.prototype, "focus", void 0);
__decorate([
Output()
], StripeCardCvcComponent.prototype, "ready", void 0);
__decorate([
Output()
], StripeCardCvcComponent.prototype, "escape", void 0);
StripeCardCvcComponent = __decorate([
Component({
selector: 'ngx-stripe-card',
template: `
<div class="field" #stripeCard></div>
`
selector: 'ngx-stripe-card-cvc',
template: `<div class="field" #stripeElementRef></div>`
})
], StripeCardComponent);
], StripeCardCvcComponent);
let StripeFpxBankComponent = class StripeFpxBankComponent {
constructor(stripeElementsService) {
this.stripeElementsService = stripeElementsService;
this.load = new EventEmitter();
this.blur = new EventEmitter();
this.change = new EventEmitter();
this.focus = new EventEmitter();
this.ready = new EventEmitter();
this.escape = new EventEmitter();
}
ngOnChanges(changes) {
return __awaiter(this, void 0, void 0, function* () {
const options = this.stripeElementsService.mergeOptions(this.options, this.containerClass);
const elementsOptions = this.elementsOptions;
const stripe = this.stripe;
if (changes.elementsOptions || changes.stripe) {
const elements = yield this.stripeElementsService
.elements(stripe, elementsOptions)
.toPromise();
this.elements = elements;
}
if (changes.options || changes.containerClass) {
if (this.element) {
this.update(options);
}
else {
this.element = this.elements.create('fpxBank', options);
this.element.on('change', (ev) => this.change.emit(ev));
this.element.on('blur', () => this.blur.emit());
this.element.on('focus', () => this.focus.emit());
this.element.on('ready', () => this.ready.emit());
this.element.on('escape', () => this.escape.emit());
this.element.mount(this.stripeElementRef.nativeElement);
this.load.emit(this.element);
}
}
});
}
ngOnDestroy() {
this.element.destroy();
}
update(options) {
this.element.update(options);
}
/**
* @deprecated
*/
getFpxBank() {
return this.element;
}
};
StripeFpxBankComponent.ctorParameters = () => [
{ type: StripeElementsService }
];
__decorate([
ViewChild('stripeElementRef')
], StripeFpxBankComponent.prototype, "stripeElementRef", void 0);
__decorate([
Input()
], StripeFpxBankComponent.prototype, "containerClass", void 0);
__decorate([
Input()
], StripeFpxBankComponent.prototype, "options", void 0);
__decorate([
Input()
], StripeFpxBankComponent.prototype, "elementsOptions", void 0);
__decorate([
Input()
], StripeFpxBankComponent.prototype, "stripe", void 0);
__decorate([
Output()
], StripeFpxBankComponent.prototype, "load", void 0);
__decorate([
Output()
], StripeFpxBankComponent.prototype, "blur", void 0);
__decorate([
Output()
], StripeFpxBankComponent.prototype, "change", void 0);
__decorate([
Output()
], StripeFpxBankComponent.prototype, "focus", void 0);
__decorate([
Output()
], StripeFpxBankComponent.prototype, "ready", void 0);
__decorate([
Output()
], StripeFpxBankComponent.prototype, "escape", void 0);
StripeFpxBankComponent = __decorate([
Component({
selector: 'ngx-stripe-fpx-bank',
template: `<div class="field" #stripeElementRef></div>`
})
], StripeFpxBankComponent);
let StripeIdealBankComponent = class StripeIdealBankComponent {
constructor(stripeElementsService) {
this.stripeElementsService = stripeElementsService;
this.load = new EventEmitter();
this.blur = new EventEmitter();
this.change = new EventEmitter();
this.focus = new EventEmitter();
this.ready = new EventEmitter();
this.escape = new EventEmitter();
}
ngOnChanges(changes) {
return __awaiter(this, void 0, void 0, function* () {
const options = this.stripeElementsService.mergeOptions(this.options, this.containerClass);
const elementsOptions = this.elementsOptions;
const stripe = this.stripe;
if (changes.elementsOptions || changes.stripe) {
const elements = yield this.stripeElementsService
.elements(stripe, elementsOptions)
.toPromise();
this.elements = elements;
}
if (changes.options || changes.containerClass) {
if (this.element) {
this.update(options);
}
else {
this.element = this.elements.create('idealBank', options);
this.element.on('change', (ev) => this.change.emit(ev));
this.element.on('blur', () => this.blur.emit());
this.element.on('focus', () => this.focus.emit());
this.element.on('ready', () => this.ready.emit());
this.element.on('escape', () => this.escape.emit());
this.element.mount(this.stripeElementRef.nativeElement);
this.load.emit(this.element);
}
}
});
}
ngOnDestroy() {
this.element.destroy();
}
update(options) {
this.element.update(options);
}
/**
* @deprecated
*/
getIdealBank() {
return this.element;
}
};
StripeIdealBankComponent.ctorParameters = () => [
{ type: StripeElementsService }
];
__decorate([
ViewChild('stripeElementRef')
], StripeIdealBankComponent.prototype, "stripeElementRef", void 0);
__decorate([
Input()
], StripeIdealBankComponent.prototype, "containerClass", void 0);
__decorate([
Input()
], StripeIdealBankComponent.prototype, "options", void 0);
__decorate([
Input()
], StripeIdealBankComponent.prototype, "elementsOptions", void 0);
__decorate([
Input()
], StripeIdealBankComponent.prototype, "stripe", void 0);
__decorate([
Output()
], StripeIdealBankComponent.prototype, "load", void 0);
__decorate([
Output()
], StripeIdealBankComponent.prototype, "blur", void 0);
__decorate([
Output()
], StripeIdealBankComponent.prototype, "change", void 0);
__decorate([
Output()
], StripeIdealBankComponent.prototype, "focus", void 0);
__decorate([
Output()
], StripeIdealBankComponent.prototype, "ready", void 0);
__decorate([
Output()
], StripeIdealBankComponent.prototype, "escape", void 0);
StripeIdealBankComponent = __decorate([
Component({
selector: 'ngx-stripe-ideal-bank',
template: `<div class="field" #stripeElementRef></div>`
})
], StripeIdealBankComponent);
let StripeIbanComponent = class StripeIbanComponent {
constructor(stripeElementsService) {
this.stripeElementsService = stripeElementsService;
this.load = new EventEmitter();
this.blur = new EventEmitter();
this.change = new EventEmitter();
this.focus = new EventEmitter();
this.ready = new EventEmitter();
this.escape = new EventEmitter();
}
ngOnChanges(changes) {
return __awaiter(this, void 0, void 0, function* () {
const options = this.stripeElementsService.mergeOptions(this.options, this.containerClass);
const elementsOptions = this.elementsOptions;
const stripe = this.stripe;
if (changes.elementsOptions || changes.stripe) {
const elements = yield this.stripeElementsService
.elements(stripe, elementsOptions)
.toPromise();
this.elements = elements;
}
if (changes.options || changes.containerClass) {
if (this.element) {
this.update(options);
}
else {
this.element = this.elements.create('iban', options);
this.element.on('change', (ev) => this.change.emit(ev));
this.element.on('blur', () => this.blur.emit());
this.element.on('focus', () => this.focus.emit());
this.element.on('ready', () => this.ready.emit());
this.element.on('escape', () => this.escape.emit());
this.element.mount(this.stripeElementRef.nativeElement);
this.load.emit(this.element);
}
}
});
}
ngOnDestroy() {
this.element.destroy();
}
update(options) {
this.element.update(options);
}
/**
* @deprecated
*/
getIban() {
return this.element;
}
};
StripeIbanComponent.ctorParameters = () => [
{ type: StripeElementsService }
];
__decorate([
ViewChild('stripeElementRef')
], StripeIbanComponent.prototype, "stripeElementRef", void 0);
__decorate([
Input()
], StripeIbanComponent.prototype, "containerClass", void 0);
__decorate([
Input()
], StripeIbanComponent.prototype, "options", void 0);
__decorate([
Input()
], StripeIbanComponent.prototype, "elementsOptions", void 0);
__decorate([
Input()
], StripeIbanComponent.prototype, "stripe", void 0);
__decorate([
Output()
], StripeIbanComponent.prototype, "load", void 0);
__decorate([
Output()
], StripeIbanComponent.prototype, "blur", void 0);
__decorate([
Output()
], StripeIbanComponent.prototype, "change", void 0);
__decorate([
Output()
], StripeIbanComponent.prototype, "focus", void 0);
__decorate([
Output()
], StripeIbanComponent.prototype, "ready", void 0);
__decorate([
Output()
], StripeIbanComponent.prototype, "escape", void 0);
StripeIbanComponent = __decorate([
Component({
selector: 'ngx-stripe-iban',
template: `<div class="field" #stripeElementRef></div>`
})
], StripeIbanComponent);
let StripeAuBankAccountComponent = class StripeAuBankAccountComponent {
constructor(stripeElementsService) {
this.stripeElementsService = stripeElementsService;
this.load = new EventEmitter();
this.blur = new EventEmitter();
this.change = new EventEmitter();
this.focus = new EventEmitter();
this.ready = new EventEmitter();
this.escape = new EventEmitter();
}
ngOnChanges(changes) {
return __awaiter(this, void 0, void 0, function* () {
const options = this.stripeElementsService.mergeOptions(this.options, this.containerClass);
const elementsOptions = this.elementsOptions;
const stripe = this.stripe;
if (changes.elementsOptions || changes.stripe) {
const elements = yield this.stripeElementsService
.elements(stripe, elementsOptions)
.toPromise();
this.elements = elements;
}
if (changes.options || changes.containerClass) {
if (this.element) {
this.update(options);
}
else {
this.element = this.elements.create('auBankAccount', options);
this.element.on('change', (ev) => this.change.emit(ev));
this.element.on('blur', () => this.blur.emit());
this.element.on('focus', () => this.focus.emit());
this.element.on('ready', () => this.ready.emit());
this.element.on('escape', () => this.escape.emit());
this.element.mount(this.stripeElementRef.nativeElement);
this.load.emit(this.element);
}
}
});
}
ngOnDestroy() {
this.element.destroy();
}
update(options) {
this.element.update(options);
}
/**
* @deprecated
*/
getAuBankAccount() {
return this.element;
}
};
StripeAuBankAccountComponent.ctorParameters = () => [
{ type: StripeElementsService }
];
__decorate([
ViewChild('stripeElementRef')
], StripeAuBankAccountComponent.prototype, "stripeElementRef", void 0);
__decorate([
Input()
], StripeAuBankAccountComponent.prototype, "containerClass", void 0);
__decorate([
Input()
], StripeAuBankAccountComponent.prototype, "options", void 0);
__decorate([
Input()
], StripeAuBankAccountComponent.prototype, "elementsOptions", void 0);
__decorate([
Input()
], StripeAuBankAccountComponent.prototype, "stripe", void 0);
__decorate([
Output()
], StripeAuBankAccountComponent.prototype, "load", void 0);
__decorate([
Output()
], StripeAuBankAccountComponent.prototype, "blur", void 0);
__decorate([
Output()
], StripeAuBankAccountComponent.prototype, "change", void 0);
__decorate([
Output()
], StripeAuBankAccountComponent.prototype, "focus", void 0);
__decorate([
Output()
], StripeAuBankAccountComponent.prototype, "ready", void 0);
__decorate([
Output()
], StripeAuBankAccountComponent.prototype, "escape", void 0);
StripeAuBankAccountComponent = __decorate([
Component({
selector: 'ngx-stripe-au-bank-account',
template: `<div class="field" #stripeElementRef></div>`
})
], StripeAuBankAccountComponent);
let StripePaymentRequestButtonComponent = class StripePaymentRequestButtonComponent {
constructor(stripeElementsService) {
this.stripeElementsService = stripeElementsService;
this.load = new EventEmitter();
this.change = new EventEmitter();
this.blur = new EventEmitter();
this.focus = new EventEmitter();
this.ready = new EventEmitter();
this.token = new EventEmitter();
this.paymentMethod = new EventEmitter();
this.source = new EventEmitter();
this.cancel = new EventEmitter();
this.shippingaddresschange = new EventEmitter();
this.shippingoptionchange = new EventEmitter();
}
ngOnChanges(changes) {
return __awaiter(this, void 0, void 0, function* () {
const options = this.stripeElementsService.mergeOptions(this.options, this.containerClass);
const elementsOptions = this.elementsOptions;
const stripe = this.stripe;
if (changes.elementsOptions || changes.stripe) {
const elements = yield this.stripeElementsService
.elements(stripe, elementsOptions)
.toPromise();
this.elements = elements;
}
if (changes.paymentOptions && this.paymentRequest) {
this.updateRequest(this.paymentOptions);
}
if (changes.options || changes.containerClass) {
if (this.element) {
this.update(options);
}
else {
this.paymentRequest = this.stripeElementsService.paymentRequest(stripe, this.paymentOptions);
this.paymentRequest.on('token', (ev) => this.token.emit(ev));
this.paymentRequest.on('paymentmethod', (ev) => this.paymentMethod.emit(ev));
this.paymentRequest.on('source', (ev) => this.source.emit(ev));
this.paymentRequest.on('cancel', () => this.token.emit());
this.paymentRequest.on('shippingaddresschange', (ev) => this.shippingaddresschange.emit(ev));
this.paymentRequest.on('shippingoptionchange', (ev) => this.shippingoptionchange.emit(ev));
this.element = this.elements.create('paymentRequestButton', Object.assign({ paymentRequest: this.paymentRequest }, options));
console.log('Payment Request', this.paymentRequest);
this.canMakePayment().subscribe(result => {
console.log('Result', result);
if (result.applePay) {
this.element.on('click', (ev) => this.change.emit(ev));
this.element.on('blur', () => this.blur.emit());
this.element.on('focus', () => this.focus.emit());
this.element.on('ready', () => this.ready.emit());
this.element.mount(this.stripeElementRef.nativeElement);
this.load.emit({
paymentRequestButton: this.element,
paymentRequest: this.paymentRequest
});
}
});
}
}
});
}
canMakePayment() {
return from(this.paymentRequest.canMakePayment());
}
update(options) {
this.element.update(options);
}
updateRequest(options) {
this.paymentRequest.update(options);
}
show() {
this.paymentRequest.show();
}
/**
* @deprecated
*/
getButton() {
return this.element;
}
};
StripePaymentRequestButtonComponent.ctorParameters = () => [
{ type: StripeElementsService }
];
__decorate([
ViewChild('stripeElementRef')
], StripePaymentRequestButtonComponent.prototype, "stripeElementRef", void 0);
__decorate([
Input()
], StripePaymentRequestButtonComponent.prototype, "containerClass", void 0);
__decorate([
Input()
], StripePaymentRequestButtonComponent.prototype, "paymentOptions", void 0);
__decorate([
Input()
], StripePaymentRequestButtonComponent.prototype, "options", void 0);
__decorate([
Input()
], StripePaymentRequestButtonComponent.prototype, "elementsOptions", void 0);
__decorate([
Input()
], StripePaymentRequestButtonComponent.prototype, "stripe", void 0);
__decorate([
Output()
], StripePaymentRequestButtonComponent.prototype, "load", void 0);
__decorate([
Output()
], StripePaymentRequestButtonComponent.prototype, "change", void 0);
__decorate([
Output()
], StripePaymentRequestButtonComponent.prototype, "blur", void 0);
__decorate([
Output()
], StripePaymentRequestButtonComponent.prototype, "focus", void 0);
__decorate([
Output()
], StripePaymentRequestButtonComponent.prototype, "ready", void 0);
__decorate([
Output()
], StripePaymentRequestButtonComponent.prototype, "token", void 0);
__decorate([
Output()
], StripePaymentRequestButtonComponent.prototype, "paymentMethod", void 0);
__decorate([
Output()
], StripePaymentRequestButtonComponent.prototype, "source", void 0);
__decorate([
Output()
], StripePaymentRequestButtonComponent.prototype, "cancel", void 0);
__decorate([
Output()
], StripePaymentRequestButtonComponent.prototype, "shippingaddresschange", void 0);
__decorate([
Output()
], StripePaymentRequestButtonComponent.prototype, "shippingoptionchange", void 0);
StripePaymentRequestButtonComponent = __decorate([
Component({
selector: 'ngx-stripe-payment-request-button',
template: `<div class="field" #stripeElementRef></div>`
})
], StripePaymentRequestButtonComponent);
let StripeFactoryService = class StripeFactoryService {
constructor(baseKey, baseOptions, loader, window) {
this.baseKey = baseKey;
this.baseOptions = baseOptions;
this.loader = loader;
this.window = window;
}
create(key, options) {
if (!key && !this.baseKey) {
return null;
}
return new StripeInstance(this.loader, this.window, key || this.baseKey, options || this.baseOptions);
}
};
StripeFactoryService.ctorParameters = () => [
{ type: String, decorators: [{ type: Inject, args: [STRIPE_PUBLISHABLE_KEY,] }] },
{ type: undefined, decorators: [{ type: Inject, args: [STRIPE_OPTIONS,] }] },
{ type: LazyStripeAPILoader },
{ type: WindowRef }
];
StripeFactoryService = __decorate([
Injectable(),
__param(0, Inject(STRIPE_PUBLISHABLE_KEY)),
__param(1, Inject(STRIPE_OPTIONS))
], StripeFactoryService);
var NgxStripeModule_1;
const components = [
StripeCardComponent,
StripeCardNumberComponent,
StripeCardExpiryComponent,
StripeCardCvcComponent,
StripeFpxBankComponent,
StripeIdealBankComponent,
StripeIbanComponent,
StripeAuBankAccountComponent,
StripePaymentRequestButtonComponent
];
let NgxStripeModule = NgxStripeModule_1 = class NgxStripeModule {

@@ -483,4 +1398,4 @@ static forRoot(publishableKey, options) {

NgModule({
declarations: [StripeCardComponent],
exports: [StripeCardComponent]
declarations: [...components],
exports: [...components]
})

@@ -497,3 +1412,3 @@ ], NgxStripeModule);

export { DocumentRef, LazyStripeAPILoader, NgxStripeModule, STRIPE_OPTIONS, STRIPE_PUBLISHABLE_KEY, StripeCardComponent, StripeFactoryService, StripeInstance, StripeService, WindowRef, isBankAccount, isBankAccountData, isPii, isPiiData, isSourceData };
export { DocumentRef, LazyStripeAPILoader, NgxStripeModule, STRIPE_OPTIONS, STRIPE_PUBLISHABLE_KEY, StripeAuBankAccountComponent, StripeCardComponent, StripeCardCvcComponent, StripeCardExpiryComponent, StripeCardNumberComponent, StripeFactoryService, StripeFpxBankComponent, StripeIbanComponent, StripeIdealBankComponent, StripeInstance, StripePaymentRequestButtonComponent, StripeService, WindowRef, StripeElementsService as ɵa };
//# sourceMappingURL=ngx-stripe.js.map
import { ModuleWithProviders } from '@angular/core';
import { Options } from './interfaces/stripe';
import { StripeConstructorOptions } from './interfaces/stripejs.interface';
import * as ɵngcc0 from '@angular/core';
import * as ɵngcc1 from './components/card.component';
import * as ɵngcc2 from './components/card-number.component';
import * as ɵngcc3 from './components/card-expiry.component';
import * as ɵngcc4 from './components/card-cvc.component';
import * as ɵngcc5 from './components/fpx-bank.component';
import * as ɵngcc6 from './components/ideal-bank.component';
import * as ɵngcc7 from './components/iban.component';
import * as ɵngcc8 from './components/au-bank-account.component';
import * as ɵngcc9 from './components/payment-request-button.component';
export declare class NgxStripeModule {
static forRoot(publishableKey?: string, options?: Options): ModuleWithProviders<NgxStripeModule>;
static forChild(publishableKey?: string, options?: Options): ModuleWithProviders<NgxStripeModule>;
static forRoot(publishableKey?: string, options?: StripeConstructorOptions): ModuleWithProviders<NgxStripeModule>;
static forChild(publishableKey?: string, options?: StripeConstructorOptions): ModuleWithProviders<NgxStripeModule>;
static ɵmod: ɵngcc0.ɵɵNgModuleDefWithMeta<NgxStripeModule, [typeof ɵngcc1.StripeCardComponent, typeof ɵngcc2.StripeCardNumberComponent, typeof ɵngcc3.StripeCardExpiryComponent, typeof ɵngcc4.StripeCardCvcComponent, typeof ɵngcc5.StripeFpxBankComponent, typeof ɵngcc6.StripeIdealBankComponent, typeof ɵngcc7.StripeIbanComponent, typeof ɵngcc8.StripeAuBankAccountComponent, typeof ɵngcc9.StripePaymentRequestButtonComponent], never, [typeof ɵngcc1.StripeCardComponent, typeof ɵngcc2.StripeCardNumberComponent, typeof ɵngcc3.StripeCardExpiryComponent, typeof ɵngcc4.StripeCardCvcComponent, typeof ɵngcc5.StripeFpxBankComponent, typeof ɵngcc6.StripeIdealBankComponent, typeof ɵngcc7.StripeIbanComponent, typeof ɵngcc8.StripeAuBankAccountComponent, typeof ɵngcc9.StripePaymentRequestButtonComponent]>;
static ɵinj: ɵngcc0.ɵɵInjectorDef<NgxStripeModule>;
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXN0cmlwZS5tb2R1bGUuZC50cyIsInNvdXJjZXMiOlsibmd4LXN0cmlwZS5tb2R1bGUuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7O0FBRUE7Ozs7O0FBR0EiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBNb2R1bGVXaXRoUHJvdmlkZXJzIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBTdHJpcGVDb25zdHJ1Y3Rvck9wdGlvbnMgfSBmcm9tICcuL2ludGVyZmFjZXMvc3RyaXBlanMuaW50ZXJmYWNlJztcbmV4cG9ydCBkZWNsYXJlIGNsYXNzIE5neFN0cmlwZU1vZHVsZSB7XG4gICAgc3RhdGljIGZvclJvb3QocHVibGlzaGFibGVLZXk/OiBzdHJpbmcsIG9wdGlvbnM/OiBTdHJpcGVDb25zdHJ1Y3Rvck9wdGlvbnMpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPE5neFN0cmlwZU1vZHVsZT47XG4gICAgc3RhdGljIGZvckNoaWxkKHB1Ymxpc2hhYmxlS2V5Pzogc3RyaW5nLCBvcHRpb25zPzogU3RyaXBlQ29uc3RydWN0b3JPcHRpb25zKTogTW9kdWxlV2l0aFByb3ZpZGVyczxOZ3hTdHJpcGVNb2R1bGU+O1xufVxuIl19
import { Observable, BehaviorSubject } from 'rxjs';
import { WindowRef } from './window-ref.service';
import { DocumentRef } from './document-ref.service';
import * as ɵngcc0 from '@angular/core';
export interface Status {

@@ -18,2 +19,6 @@ loaded: boolean;

load(): void;
static ɵfac: ɵngcc0.ɵɵFactoryDef<LazyStripeAPILoader>;
static ɵprov: ɵngcc0.ɵɵInjectableDef<LazyStripeAPILoader>;
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLWxvYWRlci5zZXJ2aWNlLmQudHMiLCJzb3VyY2VzIjpbImFwaS1sb2FkZXIuc2VydmljZS5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7O0FBR0E7Ozs7Ozs7Ozs7Ozs7Ozs7QUFjQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE9ic2VydmFibGUsIEJlaGF2aW9yU3ViamVjdCB9IGZyb20gJ3J4anMnO1xuaW1wb3J0IHsgV2luZG93UmVmIH0gZnJvbSAnLi93aW5kb3ctcmVmLnNlcnZpY2UnO1xuaW1wb3J0IHsgRG9jdW1lbnRSZWYgfSBmcm9tICcuL2RvY3VtZW50LXJlZi5zZXJ2aWNlJztcbmV4cG9ydCBpbnRlcmZhY2UgU3RhdHVzIHtcbiAgICBsb2FkZWQ6IGJvb2xlYW47XG4gICAgbG9hZGluZzogYm9vbGVhbjtcbiAgICBlcnJvcjogYm9vbGVhbjtcbn1cbmV4cG9ydCBkZWNsYXJlIGNsYXNzIExhenlTdHJpcGVBUElMb2FkZXIge1xuICAgIHBsYXRmb3JtSWQ6IGFueTtcbiAgICB3aW5kb3c6IFdpbmRvd1JlZjtcbiAgICBkb2N1bWVudDogRG9jdW1lbnRSZWY7XG4gICAgc3RhdHVzOiBCZWhhdmlvclN1YmplY3Q8U3RhdHVzPjtcbiAgICBjb25zdHJ1Y3RvcihwbGF0Zm9ybUlkOiBhbnksIHdpbmRvdzogV2luZG93UmVmLCBkb2N1bWVudDogRG9jdW1lbnRSZWYpO1xuICAgIGFzU3RyZWFtKCk6IE9ic2VydmFibGU8U3RhdHVzPjtcbiAgICBpc1JlYWR5KCk6IGJvb2xlYW47XG4gICAgbG9hZCgpOiB2b2lkO1xufVxuIl19

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

import * as ɵngcc0 from '@angular/core';
export declare class DocumentRef {

@@ -5,2 +6,6 @@ platformId: any;

getNativeDocument(): Document;
static ɵfac: ɵngcc0.ɵɵFactoryDef<DocumentRef>;
static ɵprov: ɵngcc0.ɵɵInjectableDef<DocumentRef>;
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQtcmVmLnNlcnZpY2UuZC50cyIsInNvdXJjZXMiOlsiZG9jdW1lbnQtcmVmLnNlcnZpY2UuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7OztBQUlBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlY2xhcmUgY2xhc3MgRG9jdW1lbnRSZWYge1xuICAgIHBsYXRmb3JtSWQ6IGFueTtcbiAgICBjb25zdHJ1Y3RvcihwbGF0Zm9ybUlkOiBhbnkpO1xuICAgIGdldE5hdGl2ZURvY3VtZW50KCk6IERvY3VtZW50O1xufVxuIl19

@@ -1,12 +0,17 @@

import { Options } from '../interfaces/stripe';
import { StripeConstructorOptions } from '../interfaces/stripejs.interface';
import { LazyStripeAPILoader } from './api-loader.service';
import { WindowRef } from './window-ref.service';
import { StripeInstance } from './stripe-instance.class';
import * as ɵngcc0 from '@angular/core';
export declare class StripeFactoryService {
baseKey: string;
baseOptions: string;
baseOptions: StripeConstructorOptions;
loader: LazyStripeAPILoader;
window: WindowRef;
constructor(baseKey: string, baseOptions: string, loader: LazyStripeAPILoader, window: WindowRef);
create(key: string, options?: Options): StripeInstance;
constructor(baseKey: string, baseOptions: StripeConstructorOptions, loader: LazyStripeAPILoader, window: WindowRef);
create(key?: string, options?: StripeConstructorOptions): StripeInstance;
static ɵfac: ɵngcc0.ɵɵFactoryDef<StripeFactoryService>;
static ɵprov: ɵngcc0.ɵɵInjectableDef<StripeFactoryService>;
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaXBlLWZhY3Rvcnkuc2VydmljZS5kLnRzIiwic291cmNlcyI6WyJzdHJpcGUtZmFjdG9yeS5zZXJ2aWNlLmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7O0FBSUE7Ozs7Ozs7OztBQU9BIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU3RyaXBlQ29uc3RydWN0b3JPcHRpb25zIH0gZnJvbSAnLi4vaW50ZXJmYWNlcy9zdHJpcGVqcy5pbnRlcmZhY2UnO1xuaW1wb3J0IHsgTGF6eVN0cmlwZUFQSUxvYWRlciB9IGZyb20gJy4vYXBpLWxvYWRlci5zZXJ2aWNlJztcbmltcG9ydCB7IFdpbmRvd1JlZiB9IGZyb20gJy4vd2luZG93LXJlZi5zZXJ2aWNlJztcbmltcG9ydCB7IFN0cmlwZUluc3RhbmNlIH0gZnJvbSAnLi9zdHJpcGUtaW5zdGFuY2UuY2xhc3MnO1xuZXhwb3J0IGRlY2xhcmUgY2xhc3MgU3RyaXBlRmFjdG9yeVNlcnZpY2Uge1xuICAgIGJhc2VLZXk6IHN0cmluZztcbiAgICBiYXNlT3B0aW9uczogU3RyaXBlQ29uc3RydWN0b3JPcHRpb25zO1xuICAgIGxvYWRlcjogTGF6eVN0cmlwZUFQSUxvYWRlcjtcbiAgICB3aW5kb3c6IFdpbmRvd1JlZjtcbiAgICBjb25zdHJ1Y3RvcihiYXNlS2V5OiBzdHJpbmcsIGJhc2VPcHRpb25zOiBTdHJpcGVDb25zdHJ1Y3Rvck9wdGlvbnMsIGxvYWRlcjogTGF6eVN0cmlwZUFQSUxvYWRlciwgd2luZG93OiBXaW5kb3dSZWYpO1xuICAgIGNyZWF0ZShrZXk/OiBzdHJpbmcsIG9wdGlvbnM/OiBTdHJpcGVDb25zdHJ1Y3Rvck9wdGlvbnMpOiBTdHJpcGVJbnN0YW5jZTtcbn1cbiJdfQ==
import { Observable } from 'rxjs';
import * as StripeJS from '../interfaces/stripejs.interface';
import { StripeServiceInterface } from '../interfaces/stripe-instance.interface';
import { WindowRef } from './window-ref.service';
import { LazyStripeAPILoader } from './api-loader.service';
import { StripeJS, Options } from '../interfaces/stripe';
import { Element } from '../interfaces/element';
import { Elements, ElementsOptions } from '../interfaces/elements';
import { SourceData, SourceResult, SourceParams } from '../interfaces/sources';
import { CardDataOptions, TokenResult, Account, AccountData, BankAccount, BankAccountData, PiiData, Pii } from '../interfaces/token';
import { StripeServiceInterface } from './stripe-instance.interface';
import { PaymentRequestOptions } from '../interfaces/payment-request';
import { HandleCardPaymentOptions, PaymentIntentResult, ConfirmPaymentIntentOptions, PaymentMethodData, PaymentMethodResult } from '../interfaces/payment-intent';
import { CardSetupResult } from '../interfaces/card-setup';
export declare class StripeInstance implements StripeServiceInterface {
loader: LazyStripeAPILoader;
window: WindowRef;
key: string;
options?: Options;
private loader;
private window;
private key;
private options?;
private stripe$;
constructor(loader: LazyStripeAPILoader, window: WindowRef, key: string, options?: Options);
getInstance(): StripeJS | undefined;
elements(options?: ElementsOptions): Observable<Elements>;
createToken(a: Element | Account | BankAccount | Pii, b: CardDataOptions | AccountData | BankAccountData | PiiData | undefined): Observable<TokenResult>;
createSource(a: Element | SourceData, b?: SourceData | undefined): Observable<SourceResult>;
retrieveSource(source: SourceParams): Observable<SourceResult>;
paymentRequest(options: PaymentRequestOptions): any;
handleCardPayment(a: string, b: Element | HandleCardPaymentOptions, c?: HandleCardPaymentOptions | undefined): Observable<PaymentIntentResult>;
handleCardAction(a: string): Observable<PaymentIntentResult>;
confirmPaymentIntent(a: string, b?: ConfirmPaymentIntentOptions): Observable<PaymentIntentResult>;
createPaymentMethod(a: string, b: Element, c?: PaymentMethodData | undefined): Observable<PaymentMethodResult>;
handleCardSetup(a: string, b?: Element | string | PaymentMethodData, c?: PaymentMethodData): Observable<CardSetupResult>;
get stripe(): Observable<StripeJS.Stripe>;
constructor(loader: LazyStripeAPILoader, window: WindowRef, key: string, options?: StripeJS.StripeConstructorOptions);
getInstance(): StripeJS.Stripe | undefined;
elements(options?: StripeJS.StripeElementsOptions): Observable<StripeJS.StripeElements>;
redirectToCheckout(options?: StripeJS.RedirectToCheckoutOptions): Observable<never | {
error: StripeJS.StripeError;
}>;
confirmAuBecsDebitPayment(clientSecret: string, data?: StripeJS.ConfirmAuBecsDebitPaymentData): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmBancontactPayment(clientSecret: string, data?: StripeJS.ConfirmBancontactPaymentData, options?: StripeJS.ConfirmBancontactPaymentOptions): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmCardPayment(clientSecret: string, data?: StripeJS.ConfirmCardPaymentData, options?: StripeJS.ConfirmCardPaymentOptions): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmEpsPayment(clientSecret: string, data?: StripeJS.ConfirmEpsPaymentData, options?: StripeJS.ConfirmEpsPaymentOptions): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmFpxPayment(clientSecret: string, data?: StripeJS.ConfirmFpxPaymentData, options?: StripeJS.ConfirmFpxPaymentOptions): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmGiropayPayment(clientSecret: string, data?: StripeJS.ConfirmGiropayPaymentData, options?: StripeJS.ConfirmGiropayPaymentOptions): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmIdealPayment(clientSecret: string, data?: StripeJS.ConfirmIdealPaymentData, options?: StripeJS.ConfirmIdealPaymentOptions): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmP24Payment(clientSecret: string, data?: StripeJS.ConfirmP24PaymentData, options?: StripeJS.ConfirmP24PaymentOptions): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmSepaDebitPayment(clientSecret: string, data?: StripeJS.ConfirmSepaDebitPaymentData): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
handleCardAction(clientSecret: string): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
createPaymentMethod(paymentMethodData: StripeJS.CreatePaymentMethodData): Observable<{
paymentMethod?: StripeJS.PaymentMethod;
error?: StripeJS.StripeError;
}>;
retrievePaymentIntent(clientSecret: string): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmAuBecsDebitSetup(clientSecret: string, data?: StripeJS.ConfirmAuBecsDebitSetupData): Observable<{
setupIntent?: StripeJS.SetupIntent;
error?: StripeJS.StripeError;
}>;
confirmCardSetup(clientSecret: string, data?: StripeJS.ConfirmCardSetupData, options?: StripeJS.ConfirmCardSetupOptions): Observable<{
setupIntent?: StripeJS.SetupIntent;
error?: StripeJS.StripeError;
}>;
confirmSepaDebitSetup(clientSecret: string, data?: StripeJS.ConfirmSepaDebitSetupData): Observable<{
setupIntent?: StripeJS.SetupIntent;
error?: StripeJS.StripeError;
}>;
retrieveSetupIntent(clientSecret: string): Observable<{
setupIntent?: StripeJS.SetupIntent;
error?: StripeJS.StripeError;
}>;
paymentRequest(options: StripeJS.PaymentRequestOptions): StripeJS.PaymentRequest | undefined;
createToken(tokenType: StripeJS.StripeIbanElement, data: StripeJS.CreateTokenIbanData): Observable<{
token?: StripeJS.Token;
error?: StripeJS.StripeError;
}>;
createToken(tokenType: StripeJS.StripeCardElement | StripeJS.StripeCardNumberElement, data?: StripeJS.CreateTokenCardData): Observable<{
token?: StripeJS.Token;
error?: StripeJS.StripeError;
}>;
createToken(tokenType: 'pii', data: StripeJS.CreateTokenPiiData): Observable<{
token?: StripeJS.Token;
error?: StripeJS.StripeError;
}>;
createToken(tokenType: 'bank_account', data: StripeJS.CreateTokenBankAccountData): Observable<{
token?: StripeJS.Token;
error?: StripeJS.StripeError;
}>;
createToken(tokenType: 'cvc_update', element?: StripeJS.StripeCardCvcElement): Observable<{
token?: StripeJS.Token;
error?: StripeJS.StripeError;
}>;
createToken(tokenType: 'account', data: StripeJS.TokenCreateParams.Account): Observable<{
token?: StripeJS.Token;
error?: StripeJS.StripeError;
}>;
createToken(tokenType: 'person', data: StripeJS.TokenCreateParams.Person): Observable<{
token?: StripeJS.Token;
error?: StripeJS.StripeError;
}>;
createSource(element: StripeJS.StripeElement, sourceData: StripeJS.CreateSourceData): Observable<{
source?: StripeJS.Source;
error?: StripeJS.StripeError;
}>;
createSource(sourceData: StripeJS.CreateSourceData): Observable<{
source?: StripeJS.Source;
error?: StripeJS.StripeError;
}>;
retrieveSource(source: StripeJS.RetrieveSourceParam): Observable<{
source?: StripeJS.Source;
error?: StripeJS.StripeError;
}>;
/**
* @deprecated
*/
handleCardPayment(clientSecret: string, element?: any, data?: any): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
/**
* @deprecated
*/
confirmPaymentIntent(clientSecret: string, element?: any, data?: any): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
/**
* @deprecated
*/
handleCardSetup(clientSecret: string, element?: any, data?: any): Observable<{
setupIntent?: StripeJS.SetupIntent;
error?: StripeJS.StripeError;
}>;
/**
* @deprecated
*/
confirmSetupIntent(clientSecret: string, element?: any, data?: any): Observable<{
setupIntent?: StripeJS.SetupIntent;
error?: StripeJS.StripeError;
}>;
/**
* @deprecated
*/
handleFpxPayment(clientSecret: string, element?: any, data?: any): Observable<{
setupIntent?: StripeJS.SetupIntent;
error?: StripeJS.StripeError;
}>;
}
import { Observable } from 'rxjs';
import * as StripeJS from '../interfaces/stripejs.interface';
import { StripeServiceInterface } from '../interfaces/stripe-instance.interface';
import { WindowRef } from './window-ref.service';
import { LazyStripeAPILoader } from './api-loader.service';
import { Options, StripeJS } from '../interfaces/stripe';
import { Element } from '../interfaces/element';
import { Elements, ElementsOptions } from '../interfaces/elements';
import { SourceData, SourceResult, SourceParams } from '../interfaces/sources';
import { CardDataOptions, TokenResult, Account, AccountData, BankAccount, BankAccountData, PiiData, Pii } from '../interfaces/token';
import { StripeInstance } from './stripe-instance.class';
import { StripeServiceInterface } from './stripe-instance.interface';
import { PaymentRequestOptions } from '../interfaces/payment-request';
import { HandleCardPaymentOptions, ConfirmPaymentIntentOptions, PaymentIntentResult, PaymentMethodResult, PaymentMethodData } from '../interfaces/payment-intent';
import { CardSetupResult } from '../interfaces/card-setup';
import * as ɵngcc0 from '@angular/core';
export declare class StripeService implements StripeServiceInterface {
key: string;
options: Options;
options: StripeJS.StripeConstructorOptions;
loader: LazyStripeAPILoader;
window: WindowRef;
stripe: StripeInstance;
constructor(key: string, options: Options, loader: LazyStripeAPILoader, window: WindowRef);
constructor(key: string, options: StripeJS.StripeConstructorOptions, loader: LazyStripeAPILoader, window: WindowRef);
getStripeReference(): Observable<any>;
getInstance(): StripeJS | undefined;
setKey(key: string, options?: Options): StripeInstance;
changeKey(key: string, options?: Options): StripeInstance;
elements(options?: ElementsOptions): Observable<Elements>;
createToken(a: Element | Account | BankAccount | Pii, b: CardDataOptions | AccountData | BankAccountData | PiiData | undefined): Observable<TokenResult>;
createSource(a: Element | SourceData, b?: SourceData | undefined): Observable<SourceResult>;
retrieveSource(source: SourceParams): Observable<SourceResult>;
paymentRequest(options: PaymentRequestOptions): any;
handleCardPayment(a: string, b?: Element | HandleCardPaymentOptions, c?: HandleCardPaymentOptions | undefined): Observable<PaymentIntentResult>;
handleCardAction(a: string): Observable<PaymentIntentResult>;
createPaymentMethod(a: string, b: Element, c?: PaymentMethodData): Observable<PaymentMethodResult>;
confirmPaymentIntent(a: string, b?: ConfirmPaymentIntentOptions): Observable<PaymentIntentResult>;
handleCardSetup(a: string, b?: string | Element | PaymentMethodData, c?: PaymentMethodData): Observable<CardSetupResult>;
getInstance(): StripeJS.Stripe | undefined;
setKey(key: string, options?: StripeJS.StripeConstructorOptions): StripeInstance;
changeKey(key: string, options?: StripeJS.StripeConstructorOptions): StripeInstance;
elements(options?: StripeJS.StripeElementsOptions): Observable<StripeJS.StripeElements>;
redirectToCheckout(options?: StripeJS.RedirectToCheckoutOptions): Observable<never | {
error: StripeJS.StripeError;
}>;
confirmAuBecsDebitPayment(clientSecret: string, data?: StripeJS.ConfirmAuBecsDebitPaymentData): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmBancontactPayment(clientSecret: string, data?: StripeJS.ConfirmBancontactPaymentData, options?: StripeJS.ConfirmBancontactPaymentOptions): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmCardPayment(clientSecret: string, data?: StripeJS.ConfirmCardPaymentData, options?: StripeJS.ConfirmCardPaymentOptions): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmEpsPayment(clientSecret: string, data?: StripeJS.ConfirmEpsPaymentData, options?: StripeJS.ConfirmEpsPaymentOptions): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmFpxPayment(clientSecret: string, data?: StripeJS.ConfirmFpxPaymentData, options?: StripeJS.ConfirmFpxPaymentOptions): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmGiropayPayment(clientSecret: string, data?: StripeJS.ConfirmGiropayPaymentData, options?: StripeJS.ConfirmGiropayPaymentOptions): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmIdealPayment(clientSecret: string, data?: StripeJS.ConfirmIdealPaymentData, options?: StripeJS.ConfirmIdealPaymentOptions): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmP24Payment(clientSecret: string, data?: StripeJS.ConfirmP24PaymentData, options?: StripeJS.ConfirmP24PaymentOptions): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmSepaDebitPayment(clientSecret: string, data?: StripeJS.ConfirmSepaDebitPaymentData): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
handleCardAction(clientSecret: string): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
createPaymentMethod(paymentMethodData: StripeJS.CreatePaymentMethodData): Observable<{
paymentMethod?: StripeJS.PaymentMethod;
error?: StripeJS.StripeError;
}>;
retrievePaymentIntent(clientSecret: string): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
confirmAuBecsDebitSetup(clientSecret: string, data?: StripeJS.ConfirmAuBecsDebitSetupData): Observable<{
setupIntent?: StripeJS.SetupIntent;
error?: StripeJS.StripeError;
}>;
confirmCardSetup(clientSecret: string, data?: StripeJS.ConfirmCardSetupData, options?: StripeJS.ConfirmCardSetupOptions): Observable<{
setupIntent?: StripeJS.SetupIntent;
error?: StripeJS.StripeError;
}>;
confirmSepaDebitSetup(clientSecret: string, data?: StripeJS.ConfirmSepaDebitSetupData): Observable<{
setupIntent?: StripeJS.SetupIntent;
error?: StripeJS.StripeError;
}>;
retrieveSetupIntent(clientSecret: string): Observable<{
setupIntent?: StripeJS.SetupIntent;
error?: StripeJS.StripeError;
}>;
paymentRequest(options: StripeJS.PaymentRequestOptions): StripeJS.PaymentRequest | undefined;
createToken(tokenType: StripeJS.StripeIbanElement, data: StripeJS.CreateTokenIbanData): Observable<{
token?: StripeJS.Token;
error?: StripeJS.StripeError;
}>;
createToken(tokenType: StripeJS.StripeCardElement | StripeJS.StripeCardNumberElement, data?: StripeJS.CreateTokenCardData): Observable<{
token?: StripeJS.Token;
error?: StripeJS.StripeError;
}>;
createToken(tokenType: 'pii', data: StripeJS.CreateTokenPiiData): Observable<{
token?: StripeJS.Token;
error?: StripeJS.StripeError;
}>;
createToken(tokenType: 'bank_account', data: StripeJS.CreateTokenBankAccountData): Observable<{
token?: StripeJS.Token;
error?: StripeJS.StripeError;
}>;
createToken(tokenType: 'cvc_update', element?: StripeJS.StripeCardCvcElement): Observable<{
token?: StripeJS.Token;
error?: StripeJS.StripeError;
}>;
createToken(tokenType: 'account', data: StripeJS.TokenCreateParams.Account): Observable<{
token?: StripeJS.Token;
error?: StripeJS.StripeError;
}>;
createToken(tokenType: 'person', data: StripeJS.TokenCreateParams.Person): Observable<{
token?: StripeJS.Token;
error?: StripeJS.StripeError;
}>;
createSource(element: StripeJS.StripeElement, sourceData: StripeJS.CreateSourceData): Observable<{
source?: StripeJS.Source;
error?: StripeJS.StripeError;
}>;
createSource(sourceData: StripeJS.CreateSourceData): Observable<{
source?: StripeJS.Source;
error?: StripeJS.StripeError;
}>;
retrieveSource(source: StripeJS.RetrieveSourceParam): Observable<{
source?: StripeJS.Source;
error?: StripeJS.StripeError;
}>;
/**
* @deprecated
*/
handleCardPayment(clientSecret: string, element?: any, data?: any): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
/**
* @deprecated
*/
confirmPaymentIntent(clientSecret: string, element?: any, data?: any): Observable<{
paymentIntent?: StripeJS.PaymentIntent;
error?: StripeJS.StripeError;
}>;
/**
* @deprecated
*/
handleCardSetup(clientSecret: string, element?: any, data?: any): Observable<{
setupIntent?: StripeJS.SetupIntent;
error?: StripeJS.StripeError;
}>;
/**
* @deprecated
*/
confirmSetupIntent(clientSecret: string, element?: any, data?: any): Observable<{
setupIntent?: StripeJS.SetupIntent;
error?: StripeJS.StripeError;
}>;
/**
* @deprecated
*/
handleFpxPayment(clientSecret: string, element?: any, data?: any): Observable<{
setupIntent?: StripeJS.SetupIntent;
error?: StripeJS.StripeError;
}>;
static ɵfac: ɵngcc0.ɵɵFactoryDef<StripeService>;
static ɵprov: ɵngcc0.ɵɵInjectableDef<StripeService>;
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaXBlLnNlcnZpY2UuZC50cyIsInNvdXJjZXMiOlsic3RyaXBlLnNlcnZpY2UuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7OztBQU1BOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBMkpBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgT2JzZXJ2YWJsZSB9IGZyb20gJ3J4anMnO1xuaW1wb3J0ICogYXMgU3RyaXBlSlMgZnJvbSAnLi4vaW50ZXJmYWNlcy9zdHJpcGVqcy5pbnRlcmZhY2UnO1xuaW1wb3J0IHsgU3RyaXBlU2VydmljZUludGVyZmFjZSB9IGZyb20gJy4uL2ludGVyZmFjZXMvc3RyaXBlLWluc3RhbmNlLmludGVyZmFjZSc7XG5pbXBvcnQgeyBXaW5kb3dSZWYgfSBmcm9tICcuL3dpbmRvdy1yZWYuc2VydmljZSc7XG5pbXBvcnQgeyBMYXp5U3RyaXBlQVBJTG9hZGVyIH0gZnJvbSAnLi9hcGktbG9hZGVyLnNlcnZpY2UnO1xuaW1wb3J0IHsgU3R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5QYXltZW50SW50ZW50O1xuICAgICAgICBlcnJvcj86IFN0cmlwZUpTLlN0cmlwZUVycm9yO1xuICAgIH0+O1xuICAgIC8qKlxuICAgICAqIEBkZXByZWNhdGVkXG4gICAgICovXG4gICAgaGFuZGxlQ2FyZFNldHVwKGNsaWVudFNlY3JldDogc3RyaW5nLCBlbGVtZW50PzogYW55LCBkYXRhPzogYW55KTogT2JzZXJ2YWJsZTx7XG4gICAgICAgIHNldHVwSW50ZW50PzogU3RyaXBlSlMuU2V0dXBJbnRlbnQ7XG4gICAgICAgIGVycm9yPzogU3RyaXBlSlMuU3RyaXBlRXJyb3I7XG4gICAgfT47XG4gICAgLyoqXG4gICAgICogQGRlcHJlY2F0ZWRcbiAgICAgKi9cbiAgICBjb25maXJtU2V0dXBJbnRlbnQoY2xpZW50U2VjcmV0OiBzdHJpbmcsIGVsZW1lbnQ/OiBhbnksIGRhdGE/OiBhbnkpOiBPYnNlcnZhYmxlPHtcbiAgICAgICAgc2V0dXBJbnRlbnQ/OiBTdHJpcGVKUy5TZXR1cEludGVudDtcbiAgICAgICAgZXJyb3I/OiBTdHJpcGVKUy5TdHJpcGVFcnJvcjtcbiAgICB9PjtcbiAgICAvKipcbiAgICAgKiBAZGVwcmVjYXRlZFxuICAgICAqL1xuICAgIGhhbmRsZUZweFBheW1lbnQoY2xpZW50U2VjcmV0OiBzdHJpbmcsIGVsZW1lbnQ/OiBhbnksIGRhdGE/OiBhbnkpOiBPYnNlcnZhYmxlPHtcbiAgICAgICAgc2V0dXBJbnRlbnQ/OiBTdHJpcGVKUy5TZXR1cEludGVudDtcbiAgICAgICAgZXJyb3I/OiBTdHJpcGVKUy5TdHJpcGVFcnJvcjtcbiAgICB9Pjtcbn1cbiJdfQ==

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

import * as ɵngcc0 from '@angular/core';
export declare class WindowRef {

@@ -5,2 +6,6 @@ platformId: any;

getNativeWindow(): Window;
static ɵfac: ɵngcc0.ɵɵFactoryDef<WindowRef>;
static ɵprov: ɵngcc0.ɵɵInjectableDef<WindowRef>;
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2luZG93LXJlZi5zZXJ2aWNlLmQudHMiLCJzb3VyY2VzIjpbIndpbmRvdy1yZWYuc2VydmljZS5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7O0FBSUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVjbGFyZSBjbGFzcyBXaW5kb3dSZWYge1xuICAgIHBsYXRmb3JtSWQ6IGFueTtcbiAgICBjb25zdHJ1Y3RvcihwbGF0Zm9ybUlkOiBhbnkpO1xuICAgIGdldE5hdGl2ZVdpbmRvdygpOiBXaW5kb3c7XG59XG4iXX0=

@@ -5,1 +5,4 @@ /**

export * from './public_api';
export { StripeElementsService as ɵa } from './lib/services/stripe-elements.service';
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXN0cmlwZS5kLnRzIiwic291cmNlcyI6WyJuZ3gtc3RyaXBlLmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuZXhwb3J0IHsgU3RyaXBlRWxlbWVudHNTZXJ2aWNlIGFzIMm1YSB9IGZyb20gJy4vbGliL3NlcnZpY2VzL3N0cmlwZS1lbGVtZW50cy5zZXJ2aWNlJztcbiJdfQ==

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

{"__symbolic":"module","version":4,"metadata":{"NgxStripeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":16,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"StripeCardComponent"}],"exports":[{"__symbolic":"reference","name":"StripeCardComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["publishableKey","options"],"value":{"ngModule":{"__symbolic":"reference","name":"NgxStripeModule"},"providers":[{"__symbolic":"reference","name":"LazyStripeAPILoader"},{"__symbolic":"reference","name":"StripeService"},{"__symbolic":"reference","name":"StripeFactoryService"},{"__symbolic":"reference","name":"WindowRef"},{"__symbolic":"reference","name":"DocumentRef"},{"provide":{"__symbolic":"reference","name":"STRIPE_PUBLISHABLE_KEY"},"useValue":{"__symbolic":"reference","name":"publishableKey"}},{"provide":{"__symbolic":"reference","name":"STRIPE_OPTIONS"},"useValue":{"__symbolic":"reference","name":"options"}}]}},"forChild":{"__symbolic":"function","parameters":["publishableKey","options"],"value":{"ngModule":{"__symbolic":"reference","name":"NgxStripeModule"},"providers":[{"__symbolic":"reference","name":"LazyStripeAPILoader"},{"__symbolic":"reference","name":"StripeService"},{"__symbolic":"reference","name":"StripeFactoryService"},{"__symbolic":"reference","name":"WindowRef"},{"__symbolic":"reference","name":"DocumentRef"},{"provide":{"__symbolic":"reference","name":"STRIPE_PUBLISHABLE_KEY"},"useValue":{"__symbolic":"reference","name":"publishableKey"}},{"provide":{"__symbolic":"reference","name":"STRIPE_OPTIONS"},"useValue":{"__symbolic":"reference","name":"options"}}]}}}},"StripeCardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":22,"character":1},"arguments":[{"selector":"ngx-stripe-card","template":"\n <div class=\"field\" #stripeCard></div>\n "}]}],"members":{"card":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":29,"character":3}}]}],"on":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":31,"character":3}}]}],"stripeCard":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":34,"character":3},"arguments":["stripeCard"]}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"elementsOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":3}}]}],"stripe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"StripeService"}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"getCard":[{"__symbolic":"method"}]}},"StripeService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":39,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":44,"character":5},"arguments":[{"__symbolic":"reference","name":"STRIPE_PUBLISHABLE_KEY"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":45,"character":5},"arguments":[{"__symbolic":"reference","name":"STRIPE_OPTIONS"}]}],null,null],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"Options"},{"__symbolic":"reference","name":"LazyStripeAPILoader"},{"__symbolic":"reference","name":"WindowRef"}]}],"getStripeReference":[{"__symbolic":"method"}],"getInstance":[{"__symbolic":"method"}],"setKey":[{"__symbolic":"method"}],"changeKey":[{"__symbolic":"method"}],"elements":[{"__symbolic":"method"}],"createToken":[{"__symbolic":"method"}],"createSource":[{"__symbolic":"method"}],"retrieveSource":[{"__symbolic":"method"}],"paymentRequest":[{"__symbolic":"method"}],"handleCardPayment":[{"__symbolic":"method"}],"handleCardAction":[{"__symbolic":"method"}],"createPaymentMethod":[{"__symbolic":"method"}],"confirmPaymentIntent":[{"__symbolic":"method"}],"handleCardSetup":[{"__symbolic":"method"}]}},"StripeFactoryService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":14,"character":5},"arguments":[{"__symbolic":"reference","name":"STRIPE_PUBLISHABLE_KEY"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":15,"character":5},"arguments":[{"__symbolic":"reference","name":"STRIPE_OPTIONS"}]}],null,null],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"LazyStripeAPILoader"},{"__symbolic":"reference","name":"WindowRef"}]}],"create":[{"__symbolic":"method"}]}},"StripeInstance":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"LazyStripeAPILoader"},{"__symbolic":"reference","name":"WindowRef"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"Options"}]}],"getInstance":[{"__symbolic":"method"}],"elements":[{"__symbolic":"method"}],"createToken":[{"__symbolic":"method"}],"createSource":[{"__symbolic":"method"}],"retrieveSource":[{"__symbolic":"method"}],"paymentRequest":[{"__symbolic":"method"}],"handleCardPayment":[{"__symbolic":"method"}],"handleCardAction":[{"__symbolic":"method"}],"confirmPaymentIntent":[{"__symbolic":"method"}],"createPaymentMethod":[{"__symbolic":"method"}],"handleCardSetup":[{"__symbolic":"method"}]}},"StripeServiceInterface":{"__symbolic":"interface"},"LazyStripeAPILoader":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":14,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":23,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":23,"character":12}]}],null,null],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"WindowRef"},{"__symbolic":"reference","name":"DocumentRef"}]}],"asStream":[{"__symbolic":"method"}],"isReady":[{"__symbolic":"method"}],"load":[{"__symbolic":"method"}]}},"WindowRef":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":5,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":5,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"getNativeWindow":[{"__symbolic":"method"}]}},"DocumentRef":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":5,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":5,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"getNativeDocument":[{"__symbolic":"method"}]}},"Element":{"__symbolic":"interface"},"ElementEventType":{"__symbolic":"interface"},"ElementType":{"__symbolic":"interface"},"ElementOptions":{"__symbolic":"interface"},"ElementStyleAttributes":{"__symbolic":"interface"},"Elements":{"__symbolic":"interface"},"ElementsOptions":{"__symbolic":"interface"},"FontElement":{"__symbolic":"interface"},"Source":{"__symbolic":"interface"},"UsageTypes":{"__symbolic":"interface"},"FlowTypes":{"__symbolic":"interface"},"SourceParams":{"__symbolic":"interface"},"SourceData":{"__symbolic":"interface"},"isSourceData":{"__symbolic":"function","parameters":["sourceData"],"value":{"__symbolic":"binop","operator":"in","left":"type","right":{"__symbolic":"reference","name":"sourceData"}}},"SourceResult":{"__symbolic":"interface"},"STRIPE_PUBLISHABLE_KEY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":25,"character":42},"arguments":["Stripe Publishable Key"]},"STRIPE_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":28,"character":34},"arguments":["Stripe Options"]},"StripeJS":{"__symbolic":"interface"},"Options":{"__symbolic":"interface"},"Token":{"__symbolic":"interface"},"FieldCheck":{"__symbolic":"interface"},"CardDataOptions":{"__symbolic":"interface"},"TokenResult":{"__symbolic":"interface"},"Account":{"__symbolic":"interface"},"AccountData":{"__symbolic":"interface"},"BankAccount":{"__symbolic":"interface"},"BankAccountData":{"__symbolic":"interface"},"Pii":{"__symbolic":"interface"},"PiiData":{"__symbolic":"interface"},"isBankAccount":{"__symbolic":"function","parameters":["account"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"account"},"right":"bank_account"}},"isBankAccountData":{"__symbolic":"function","parameters":["bankAccountData"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"in","left":"country","right":{"__symbolic":"reference","name":"bankAccountData"}},"right":{"__symbolic":"binop","operator":"in","left":"currency","right":{"__symbolic":"reference","name":"bankAccountData"}}},"right":{"__symbolic":"binop","operator":"in","left":"routing_number","right":{"__symbolic":"reference","name":"bankAccountData"}}},"right":{"__symbolic":"binop","operator":"in","left":"account_number","right":{"__symbolic":"reference","name":"bankAccountData"}}},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"bankAccountData"},"member":"account_holder_type"},"right":"individual"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"bankAccountData"},"member":"account_holder_type"},"right":"company"}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"bankAccountData"},"member":"account_holder_type"},"right":{"__symbolic":"reference","name":"undefined"}}}}},"isPii":{"__symbolic":"function","parameters":["pii"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"pii"},"right":"pii"}},"isPiiData":{"__symbolic":"function","parameters":["piiData"],"value":{"__symbolic":"binop","operator":"in","left":"personal_id_number","right":{"__symbolic":"reference","name":"piiData"}}},"HandleCardPaymentOptions":{"__symbolic":"interface"},"ConfirmPaymentIntentOptions":{"__symbolic":"interface"},"PaymentIntent":{"__symbolic":"interface"},"PaymentIntentResult":{"__symbolic":"interface"},"SetupIntent":{"__symbolic":"interface"},"CardSetupResult":{"__symbolic":"interface"},"Error":{"__symbolic":"interface"},"Address":{"__symbolic":"interface"}},"origins":{"NgxStripeModule":"./lib/ngx-stripe.module","StripeCardComponent":"./lib/components/stripe-card.component","StripeService":"./lib/services/stripe.service","StripeFactoryService":"./lib/services/stripe-factory.service","StripeInstance":"./lib/services/stripe-instance.class","StripeServiceInterface":"./lib/services/stripe-instance.interface","LazyStripeAPILoader":"./lib/services/api-loader.service","WindowRef":"./lib/services/window-ref.service","DocumentRef":"./lib/services/document-ref.service","Element":"./lib/interfaces/element","ElementEventType":"./lib/interfaces/element","ElementType":"./lib/interfaces/element","ElementOptions":"./lib/interfaces/element","ElementStyleAttributes":"./lib/interfaces/element","Elements":"./lib/interfaces/elements","ElementsOptions":"./lib/interfaces/elements","FontElement":"./lib/interfaces/elements","Source":"./lib/interfaces/sources","UsageTypes":"./lib/interfaces/sources","FlowTypes":"./lib/interfaces/sources","SourceParams":"./lib/interfaces/sources","SourceData":"./lib/interfaces/sources","isSourceData":"./lib/interfaces/sources","SourceResult":"./lib/interfaces/sources","STRIPE_PUBLISHABLE_KEY":"./lib/interfaces/stripe","STRIPE_OPTIONS":"./lib/interfaces/stripe","StripeJS":"./lib/interfaces/stripe","Options":"./lib/interfaces/stripe","Token":"./lib/interfaces/token","FieldCheck":"./lib/interfaces/token","CardDataOptions":"./lib/interfaces/token","TokenResult":"./lib/interfaces/token","Account":"./lib/interfaces/token","AccountData":"./lib/interfaces/token","BankAccount":"./lib/interfaces/token","BankAccountData":"./lib/interfaces/token","Pii":"./lib/interfaces/token","PiiData":"./lib/interfaces/token","isBankAccount":"./lib/interfaces/token","isBankAccountData":"./lib/interfaces/token","isPii":"./lib/interfaces/token","isPiiData":"./lib/interfaces/token","HandleCardPaymentOptions":"./lib/interfaces/payment-intent","ConfirmPaymentIntentOptions":"./lib/interfaces/payment-intent","PaymentIntent":"./lib/interfaces/payment-intent","PaymentIntentResult":"./lib/interfaces/payment-intent","SetupIntent":"./lib/interfaces/card-setup","CardSetupResult":"./lib/interfaces/card-setup","Error":"./lib/interfaces/utils","Address":"./lib/interfaces/utils"},"importAs":"ngx-stripe"}
{"__symbolic":"module","version":4,"exports":[{"export":[{"name":"Stripe","as":"Stripe"},{"name":"StripeElementsOptions","as":"StripeElementsOptions"},{"name":"StripeElements","as":"StripeElements"},{"name":"StripeIbanElement","as":"StripeIbanElement"},{"name":"CreateTokenIbanData","as":"CreateTokenIbanData"},{"name":"Token","as":"Token"},{"name":"StripeError","as":"StripeError"},{"name":"StripeCardElement","as":"StripeCardElement"},{"name":"StripeCardNumberElement","as":"StripeCardNumberElement"},{"name":"CreateTokenCardData","as":"CreateTokenCardData"},{"name":"CreateTokenPiiData","as":"CreateTokenPiiData"},{"name":"CreateTokenBankAccountData","as":"CreateTokenBankAccountData"},{"name":"StripeCardCvcElement","as":"StripeCardCvcElement"},{"name":"TokenCreateParams","as":"TokenCreateParams"},{"name":"RedirectToCheckoutOptions","as":"RedirectToCheckoutOptions"},{"name":"ConfirmAuBecsDebitPaymentData","as":"ConfirmAuBecsDebitPaymentData"},{"name":"PaymentIntent","as":"PaymentIntent"},{"name":"ConfirmBancontactPaymentData","as":"ConfirmBancontactPaymentData"},{"name":"ConfirmBancontactPaymentOptions","as":"ConfirmBancontactPaymentOptions"},{"name":"ConfirmCardPaymentData","as":"ConfirmCardPaymentData"},{"name":"ConfirmCardPaymentOptions","as":"ConfirmCardPaymentOptions"},{"name":"ConfirmEpsPaymentData","as":"ConfirmEpsPaymentData"},{"name":"ConfirmEpsPaymentOptions","as":"ConfirmEpsPaymentOptions"},{"name":"ConfirmFpxPaymentData","as":"ConfirmFpxPaymentData"},{"name":"ConfirmFpxPaymentOptions","as":"ConfirmFpxPaymentOptions"},{"name":"ConfirmGiropayPaymentData","as":"ConfirmGiropayPaymentData"},{"name":"ConfirmGiropayPaymentOptions","as":"ConfirmGiropayPaymentOptions"},{"name":"ConfirmIdealPaymentData","as":"ConfirmIdealPaymentData"},{"name":"ConfirmIdealPaymentOptions","as":"ConfirmIdealPaymentOptions"},{"name":"ConfirmP24PaymentData","as":"ConfirmP24PaymentData"},{"name":"ConfirmP24PaymentOptions","as":"ConfirmP24PaymentOptions"},{"name":"ConfirmSepaDebitPaymentData","as":"ConfirmSepaDebitPaymentData"},{"name":"CreatePaymentMethodData","as":"CreatePaymentMethodData"},{"name":"PaymentMethod","as":"PaymentMethod"},{"name":"ConfirmAuBecsDebitSetupData","as":"ConfirmAuBecsDebitSetupData"},{"name":"SetupIntent","as":"SetupIntent"},{"name":"ConfirmCardSetupData","as":"ConfirmCardSetupData"},{"name":"ConfirmCardSetupOptions","as":"ConfirmCardSetupOptions"},{"name":"ConfirmSepaDebitSetupData","as":"ConfirmSepaDebitSetupData"},{"name":"PaymentRequestOptions","as":"PaymentRequestOptions"},{"name":"PaymentRequest","as":"PaymentRequest"},{"name":"StripeElement","as":"StripeElement"},{"name":"CreateSourceData","as":"CreateSourceData"},{"name":"Source","as":"Source"},{"name":"RetrieveSourceParam","as":"RetrieveSourceParam"},{"name":"StripeConstructorOptions","as":"StripeConstructorOptions"},{"name":"StripeCardElementOptions","as":"StripeCardElementOptions"},{"name":"StripeCardElementChangeEvent","as":"StripeCardElementChangeEvent"},{"name":"StripeCardNumberElementOptions","as":"StripeCardNumberElementOptions"},{"name":"StripeCardNumberElementChangeEvent","as":"StripeCardNumberElementChangeEvent"},{"name":"StripeCardExpiryElement","as":"StripeCardExpiryElement"},{"name":"StripeCardExpiryElementOptions","as":"StripeCardExpiryElementOptions"},{"name":"StripeCardExpiryElementChangeEvent","as":"StripeCardExpiryElementChangeEvent"},{"name":"StripeCardCvcElementChangeEvent","as":"StripeCardCvcElementChangeEvent"},{"name":"StripeCardCvcElementOptions","as":"StripeCardCvcElementOptions"},{"name":"StripeFpxBankElement","as":"StripeFpxBankElement"},{"name":"StripeFpxBankElementChangeEvent","as":"StripeFpxBankElementChangeEvent"},{"name":"StripeFpxBankElementOptions","as":"StripeFpxBankElementOptions"},{"name":"StripeIdealBankElement","as":"StripeIdealBankElement"},{"name":"StripeIdealBankElementOptions","as":"StripeIdealBankElementOptions"},{"name":"StripeIdealBankElementChangeEvent","as":"StripeIdealBankElementChangeEvent"},{"name":"StripeAuBankAccountElement","as":"StripeAuBankAccountElement"},{"name":"StripeAuBankAccountElementOptions","as":"StripeAuBankAccountElementOptions"},{"name":"StripeAuBankAccountElementChangeEvent","as":"StripeAuBankAccountElementChangeEvent"},{"name":"StripeIbanElementOptions","as":"StripeIbanElementOptions"},{"name":"StripeIbanElementChangeEvent","as":"StripeIbanElementChangeEvent"},{"name":"CanMakePaymentResult","as":"CanMakePaymentResult"},{"name":"PaymentRequestUpdateOptions","as":"PaymentRequestUpdateOptions"},{"name":"StripePaymentRequestButtonElement","as":"StripePaymentRequestButtonElement"},{"name":"StripePaymentRequestButtonElementOptions","as":"StripePaymentRequestButtonElementOptions"},{"name":"StripePaymentRequestButtonElementClickEvent","as":"StripePaymentRequestButtonElementClickEvent"},{"name":"PaymentRequestTokenEvent","as":"PaymentRequestTokenEvent"},{"name":"PaymentRequestPaymentMethodEvent","as":"PaymentRequestPaymentMethodEvent"},{"name":"PaymentRequestSourceEvent","as":"PaymentRequestSourceEvent"},{"name":"PaymentRequestShippingAddressEvent","as":"PaymentRequestShippingAddressEvent"},{"name":"PaymentRequestShippingOptionEvent","as":"PaymentRequestShippingOptionEvent"}],"from":"@stripe/stripe-js"}],"metadata":{"NgxStripeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":36,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"StripeCardComponent"},{"__symbolic":"reference","name":"StripeCardNumberComponent"},{"__symbolic":"reference","name":"StripeCardExpiryComponent"},{"__symbolic":"reference","name":"StripeCardCvcComponent"},{"__symbolic":"reference","name":"StripeFpxBankComponent"},{"__symbolic":"reference","name":"StripeIdealBankComponent"},{"__symbolic":"reference","name":"StripeIbanComponent"},{"__symbolic":"reference","name":"StripeAuBankAccountComponent"},{"__symbolic":"reference","name":"StripePaymentRequestButtonComponent"}],"exports":[{"__symbolic":"reference","name":"StripeCardComponent"},{"__symbolic":"reference","name":"StripeCardNumberComponent"},{"__symbolic":"reference","name":"StripeCardExpiryComponent"},{"__symbolic":"reference","name":"StripeCardCvcComponent"},{"__symbolic":"reference","name":"StripeFpxBankComponent"},{"__symbolic":"reference","name":"StripeIdealBankComponent"},{"__symbolic":"reference","name":"StripeIbanComponent"},{"__symbolic":"reference","name":"StripeAuBankAccountComponent"},{"__symbolic":"reference","name":"StripePaymentRequestButtonComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["publishableKey","options"],"value":{"ngModule":{"__symbolic":"reference","name":"NgxStripeModule"},"providers":[{"__symbolic":"reference","name":"LazyStripeAPILoader"},{"__symbolic":"reference","name":"StripeService"},{"__symbolic":"reference","name":"StripeFactoryService"},{"__symbolic":"reference","name":"WindowRef"},{"__symbolic":"reference","name":"DocumentRef"},{"provide":{"__symbolic":"reference","name":"STRIPE_PUBLISHABLE_KEY"},"useValue":{"__symbolic":"reference","name":"publishableKey"}},{"provide":{"__symbolic":"reference","name":"STRIPE_OPTIONS"},"useValue":{"__symbolic":"reference","name":"options"}}]}},"forChild":{"__symbolic":"function","parameters":["publishableKey","options"],"value":{"ngModule":{"__symbolic":"reference","name":"NgxStripeModule"},"providers":[{"__symbolic":"reference","name":"LazyStripeAPILoader"},{"__symbolic":"reference","name":"StripeService"},{"__symbolic":"reference","name":"StripeFactoryService"},{"__symbolic":"reference","name":"WindowRef"},{"__symbolic":"reference","name":"DocumentRef"},{"provide":{"__symbolic":"reference","name":"STRIPE_PUBLISHABLE_KEY"},"useValue":{"__symbolic":"reference","name":"publishableKey"}},{"provide":{"__symbolic":"reference","name":"STRIPE_OPTIONS"},"useValue":{"__symbolic":"reference","name":"options"}}]}}}},"StripeCardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":23,"character":1},"arguments":[{"selector":"ngx-stripe-card","template":"<div class=\"field\" #stripeElementRef></div>"}]}],"members":{"stripeElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":28,"character":3},"arguments":["stripeElementRef"]}]}],"containerClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"elementsOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"stripe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":36,"character":3}}]}],"blur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":38,"character":3}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":39,"character":3}}]}],"focus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"ready":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":41,"character":3}}]}],"escape":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"getCard":[{"__symbolic":"method"}]}},"StripeCardNumberComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":23,"character":1},"arguments":[{"selector":"ngx-stripe-card-number","template":"<div class=\"field\" #stripeElementRef></div>"}]}],"members":{"stripeElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":28,"character":3},"arguments":["stripeElementRef"]}]}],"containerClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"elementsOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"stripe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":36,"character":3}}]}],"blur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":38,"character":3}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":39,"character":3}}]}],"focus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"ready":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":41,"character":3}}]}],"escape":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"getCardNumber":[{"__symbolic":"method"}]}},"StripeCardExpiryComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":24,"character":1},"arguments":[{"selector":"ngx-stripe-card-expiry","template":"<div class=\"field\" #stripeElementRef></div>"}]}],"members":{"stripeElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":29,"character":3},"arguments":["stripeElementRef"]}]}],"containerClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"elementsOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"stripe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":37,"character":3}}]}],"blur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":39,"character":3}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"focus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":41,"character":3}}]}],"ready":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"escape":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":43,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"getCardExpiry":[{"__symbolic":"method"}]}},"StripeCardCvcComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":24,"character":1},"arguments":[{"selector":"ngx-stripe-card-cvc","template":"<div class=\"field\" #stripeElementRef></div>"}]}],"members":{"stripeElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":29,"character":3},"arguments":["stripeElementRef"]}]}],"containerClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"elementsOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"stripe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":37,"character":3}}]}],"blur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":39,"character":3}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"focus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":41,"character":3}}]}],"ready":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"escape":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":43,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"getCardCvc":[{"__symbolic":"method"}]}},"StripeFpxBankComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":23,"character":1},"arguments":[{"selector":"ngx-stripe-fpx-bank","template":"<div class=\"field\" #stripeElementRef></div>"}]}],"members":{"stripeElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":28,"character":3},"arguments":["stripeElementRef"]}]}],"containerClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"elementsOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"stripe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":36,"character":3}}]}],"blur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":38,"character":3}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":39,"character":3}}]}],"focus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"ready":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":41,"character":3}}]}],"escape":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"getFpxBank":[{"__symbolic":"method"}]}},"StripeIbanComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":23,"character":1},"arguments":[{"selector":"ngx-stripe-iban","template":"<div class=\"field\" #stripeElementRef></div>"}]}],"members":{"stripeElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":28,"character":3},"arguments":["stripeElementRef"]}]}],"containerClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"elementsOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"stripe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":36,"character":3}}]}],"blur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":38,"character":3}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":39,"character":3}}]}],"focus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"ready":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":41,"character":3}}]}],"escape":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"getIban":[{"__symbolic":"method"}]}},"StripeIdealBankComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":23,"character":1},"arguments":[{"selector":"ngx-stripe-ideal-bank","template":"<div class=\"field\" #stripeElementRef></div>"}]}],"members":{"stripeElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":28,"character":3},"arguments":["stripeElementRef"]}]}],"containerClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"elementsOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"stripe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":36,"character":3}}]}],"blur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":38,"character":3}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":39,"character":3}}]}],"focus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"ready":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":41,"character":3}}]}],"escape":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"getIdealBank":[{"__symbolic":"method"}]}},"StripeAuBankAccountComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":23,"character":1},"arguments":[{"selector":"ngx-stripe-au-bank-account","template":"<div class=\"field\" #stripeElementRef></div>"}]}],"members":{"stripeElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":28,"character":3},"arguments":["stripeElementRef"]}]}],"containerClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"elementsOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"stripe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":36,"character":3}}]}],"blur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":38,"character":3}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":39,"character":3}}]}],"focus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"ready":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":41,"character":3}}]}],"escape":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"getAuBankAccount":[{"__symbolic":"method"}]}},"StripePaymentRequestButtonComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":32,"character":1},"arguments":[{"selector":"ngx-stripe-payment-request-button","template":"<div class=\"field\" #stripeElementRef></div>"}]}],"members":{"stripeElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":37,"character":3},"arguments":["stripeElementRef"]}]}],"containerClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":3}}]}],"paymentOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"elementsOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"stripe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":47,"character":3}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":52,"character":3}}]}],"blur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":55,"character":3}}]}],"focus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":56,"character":3}}]}],"ready":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":57,"character":3}}]}],"token":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":59,"character":3}}]}],"paymentMethod":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":60,"character":3}}]}],"source":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":63,"character":3}}]}],"cancel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":64,"character":3}}]}],"shippingaddresschange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":65,"character":3}}]}],"shippingoptionchange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":68,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnChanges":[{"__symbolic":"method"}],"canMakePayment":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"updateRequest":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"getButton":[{"__symbolic":"method"}]}},"StripeService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":17,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":22,"character":5},"arguments":[{"__symbolic":"reference","name":"STRIPE_PUBLISHABLE_KEY"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":23,"character":5},"arguments":[{"__symbolic":"reference","name":"STRIPE_OPTIONS"}]}],null,null],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"StripeConstructorOptions","module":"@stripe/stripe-js"},{"__symbolic":"reference","name":"LazyStripeAPILoader"},{"__symbolic":"reference","name":"WindowRef"}]}],"getStripeReference":[{"__symbolic":"method"}],"getInstance":[{"__symbolic":"method"}],"setKey":[{"__symbolic":"method"}],"changeKey":[{"__symbolic":"method"}],"elements":[{"__symbolic":"method"}],"redirectToCheckout":[{"__symbolic":"method"}],"confirmAuBecsDebitPayment":[{"__symbolic":"method"}],"confirmBancontactPayment":[{"__symbolic":"method"}],"confirmCardPayment":[{"__symbolic":"method"}],"confirmEpsPayment":[{"__symbolic":"method"}],"confirmFpxPayment":[{"__symbolic":"method"}],"confirmGiropayPayment":[{"__symbolic":"method"}],"confirmIdealPayment":[{"__symbolic":"method"}],"confirmP24Payment":[{"__symbolic":"method"}],"confirmSepaDebitPayment":[{"__symbolic":"method"}],"handleCardAction":[{"__symbolic":"method"}],"createPaymentMethod":[{"__symbolic":"method"}],"retrievePaymentIntent":[{"__symbolic":"method"}],"confirmAuBecsDebitSetup":[{"__symbolic":"method"}],"confirmCardSetup":[{"__symbolic":"method"}],"confirmSepaDebitSetup":[{"__symbolic":"method"}],"retrieveSetupIntent":[{"__symbolic":"method"}],"paymentRequest":[{"__symbolic":"method"}],"createToken":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"createSource":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"retrieveSource":[{"__symbolic":"method"}],"handleCardPayment":[{"__symbolic":"method"}],"confirmPaymentIntent":[{"__symbolic":"method"}],"handleCardSetup":[{"__symbolic":"method"}],"confirmSetupIntent":[{"__symbolic":"method"}],"handleFpxPayment":[{"__symbolic":"method"}]}},"StripeFactoryService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":13,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":16,"character":5},"arguments":[{"__symbolic":"reference","name":"STRIPE_PUBLISHABLE_KEY"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":17,"character":5},"arguments":[{"__symbolic":"reference","name":"STRIPE_OPTIONS"}]}],null,null],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"StripeConstructorOptions","module":"@stripe/stripe-js"},{"__symbolic":"reference","name":"LazyStripeAPILoader"},{"__symbolic":"reference","name":"WindowRef"}]}],"create":[{"__symbolic":"method"}]}},"StripeInstance":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"LazyStripeAPILoader"},{"__symbolic":"reference","name":"WindowRef"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"StripeConstructorOptions","module":"@stripe/stripe-js"}]}],"getInstance":[{"__symbolic":"method"}],"elements":[{"__symbolic":"method"}],"redirectToCheckout":[{"__symbolic":"method"}],"confirmAuBecsDebitPayment":[{"__symbolic":"method"}],"confirmBancontactPayment":[{"__symbolic":"method"}],"confirmCardPayment":[{"__symbolic":"method"}],"confirmEpsPayment":[{"__symbolic":"method"}],"confirmFpxPayment":[{"__symbolic":"method"}],"confirmGiropayPayment":[{"__symbolic":"method"}],"confirmIdealPayment":[{"__symbolic":"method"}],"confirmP24Payment":[{"__symbolic":"method"}],"confirmSepaDebitPayment":[{"__symbolic":"method"}],"handleCardAction":[{"__symbolic":"method"}],"createPaymentMethod":[{"__symbolic":"method"}],"retrievePaymentIntent":[{"__symbolic":"method"}],"confirmAuBecsDebitSetup":[{"__symbolic":"method"}],"confirmCardSetup":[{"__symbolic":"method"}],"confirmSepaDebitSetup":[{"__symbolic":"method"}],"retrieveSetupIntent":[{"__symbolic":"method"}],"paymentRequest":[{"__symbolic":"method"}],"createToken":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"createSource":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"retrieveSource":[{"__symbolic":"method"}],"handleCardPayment":[{"__symbolic":"method"}],"confirmPaymentIntent":[{"__symbolic":"method"}],"handleCardSetup":[{"__symbolic":"method"}],"confirmSetupIntent":[{"__symbolic":"method"}],"handleFpxPayment":[{"__symbolic":"method"}]}},"LazyStripeAPILoader":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":14,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":23,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":23,"character":12}]}],null,null],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"WindowRef"},{"__symbolic":"reference","name":"DocumentRef"}]}],"asStream":[{"__symbolic":"method"}],"isReady":[{"__symbolic":"method"}],"load":[{"__symbolic":"method"}]}},"WindowRef":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":5,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":5,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"getNativeWindow":[{"__symbolic":"method"}]}},"DocumentRef":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":5,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":5,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"getNativeDocument":[{"__symbolic":"method"}]}},"STRIPE_PUBLISHABLE_KEY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":42},"arguments":["Stripe Publishable Key"]},"STRIPE_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":7,"character":34},"arguments":["Stripe Options"]},"StripeServiceInterface":{"__symbolic":"interface"},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":22,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"StripeService"}]}],"elements":[{"__symbolic":"method"}],"paymentRequest":[{"__symbolic":"method"}],"mergeOptions":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}]},"statics":{"ɵprov":{}}}},"origins":{"NgxStripeModule":"./lib/ngx-stripe.module","StripeCardComponent":"./lib/components/card.component","StripeCardNumberComponent":"./lib/components/card-number.component","StripeCardExpiryComponent":"./lib/components/card-expiry.component","StripeCardCvcComponent":"./lib/components/card-cvc.component","StripeFpxBankComponent":"./lib/components/fpx-bank.component","StripeIbanComponent":"./lib/components/iban.component","StripeIdealBankComponent":"./lib/components/ideal-bank.component","StripeAuBankAccountComponent":"./lib/components/au-bank-account.component","StripePaymentRequestButtonComponent":"./lib/components/payment-request-button.component","StripeService":"./lib/services/stripe.service","StripeFactoryService":"./lib/services/stripe-factory.service","StripeInstance":"./lib/services/stripe-instance.class","LazyStripeAPILoader":"./lib/services/api-loader.service","WindowRef":"./lib/services/window-ref.service","DocumentRef":"./lib/services/document-ref.service","STRIPE_PUBLISHABLE_KEY":"./lib/interfaces/ngx-stripe.interface","STRIPE_OPTIONS":"./lib/interfaces/ngx-stripe.interface","StripeServiceInterface":"./lib/interfaces/stripe-instance.interface","ɵa":"./lib/services/stripe-elements.service"},"importAs":"ngx-stripe"}
{
"name": "ngx-stripe",
"version": "9.0.3",
"version": "10.0.0-alpha.0",
"repository": {

@@ -15,7 +15,9 @@ "type": "git",

"peerDependencies": {
"@angular/common": ">=6.0.0 <10.0.0",
"@angular/core": ">=6.0.0 <10.0.0",
"@angular/common": ">=10.0.0 <11.0.0",
"@angular/core": ">=10.0.0 <11.0.0",
"@stripe/stripe-js": "^1.7.0 <2.0.0",
"tslib": "^1.10.0"
},
"main": "bundles/ngx-stripe.umd.js",
"module_ivy_ngcc": "__ivy_ngcc__/fesm5/ngx-stripe.js",
"module": "fesm5/ngx-stripe.js",

@@ -25,2 +27,3 @@ "es2015": "fesm2015/ngx-stripe.js",

"esm2015": "esm2015/ngx-stripe.js",
"fesm5_ivy_ngcc": "__ivy_ngcc__/fesm5/ngx-stripe.js",
"fesm5": "fesm5/ngx-stripe.js",

@@ -30,3 +33,11 @@ "fesm2015": "fesm2015/ngx-stripe.js",

"metadata": "ngx-stripe.metadata.json",
"sideEffects": false
"sideEffects": false,
"__processed_by_ivy_ngcc__": {
"fesm5": "9.0.5",
"module": "9.0.5",
"typings": "9.0.5"
},
"scripts": {
"prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by NGCC. This is not allowed.\\nPlease delete and rebuild the package, without compiling with NGCC, before attempting to publish.\\nNote that NGCC may have been run by importing this package into another project that is being built with Ivy enabled.\\n')\" && exit 1"
}
}
export { NgxStripeModule } from './lib/ngx-stripe.module';
export { StripeCardComponent } from './lib/components/stripe-card.component';
export { StripeCardComponent } from './lib/components/card.component';
export { StripeCardNumberComponent } from './lib/components/card-number.component';
export { StripeCardExpiryComponent } from './lib/components/card-expiry.component';
export { StripeCardCvcComponent } from './lib/components/card-cvc.component';
export { StripeFpxBankComponent } from './lib/components/fpx-bank.component';
export { StripeIbanComponent } from './lib/components/iban.component';
export { StripeIdealBankComponent } from './lib/components/ideal-bank.component';
export { StripeAuBankAccountComponent } from './lib/components/au-bank-account.component';
export { StripePaymentRequestButtonComponent } from './lib/components/payment-request-button.component';
export { StripeService } from './lib/services/stripe.service';
export { StripeFactoryService } from './lib/services/stripe-factory.service';
export { StripeInstance } from './lib/services/stripe-instance.class';
export { StripeServiceInterface } from './lib/services/stripe-instance.interface';
export { LazyStripeAPILoader } from './lib/services/api-loader.service';
export { WindowRef } from './lib/services/window-ref.service';
export { DocumentRef } from './lib/services/document-ref.service';
export { Element, ElementEventType, ElementType, ElementOptions, ElementStyleAttributes } from './lib/interfaces/element';
export { Elements, ElementsOptions, FontElement } from './lib/interfaces/elements';
export { Source, UsageTypes, FlowTypes, SourceParams, SourceData, isSourceData, SourceResult } from './lib/interfaces/sources';
export { STRIPE_PUBLISHABLE_KEY, STRIPE_OPTIONS, StripeJS, Options } from './lib/interfaces/stripe';
export { Token, FieldCheck, CardDataOptions, TokenResult, Account, AccountData, BankAccount, BankAccountData, Pii, PiiData, isBankAccount, isBankAccountData, isPii, isPiiData } from './lib/interfaces/token';
export { HandleCardPaymentOptions, ConfirmPaymentIntentOptions, PaymentIntent, PaymentIntentResult } from './lib/interfaces/payment-intent';
export { SetupIntent, CardSetupResult } from './lib/interfaces/card-setup';
export { Error, Address } from './lib/interfaces/utils';
export { STRIPE_PUBLISHABLE_KEY, STRIPE_OPTIONS } from './lib/interfaces/ngx-stripe.interface';
export { StripeServiceInterface } from './lib/interfaces/stripe-instance.interface';
export { Stripe, StripeElementsOptions, StripeElements, StripeIbanElement, CreateTokenIbanData, Token, StripeError, StripeCardElement, StripeCardNumberElement, CreateTokenCardData, CreateTokenPiiData, CreateTokenBankAccountData, StripeCardCvcElement, TokenCreateParams, RedirectToCheckoutOptions, ConfirmAuBecsDebitPaymentData, PaymentIntent, ConfirmBancontactPaymentData, ConfirmBancontactPaymentOptions, ConfirmCardPaymentData, ConfirmCardPaymentOptions, ConfirmEpsPaymentData, ConfirmEpsPaymentOptions, ConfirmFpxPaymentData, ConfirmFpxPaymentOptions, ConfirmGiropayPaymentData, ConfirmGiropayPaymentOptions, ConfirmIdealPaymentData, ConfirmIdealPaymentOptions, ConfirmP24PaymentData, ConfirmP24PaymentOptions, ConfirmSepaDebitPaymentData, CreatePaymentMethodData, PaymentMethod, ConfirmAuBecsDebitSetupData, SetupIntent, ConfirmCardSetupData, ConfirmCardSetupOptions, ConfirmSepaDebitSetupData, PaymentRequestOptions, PaymentRequest, StripeElement, CreateSourceData, Source, RetrieveSourceParam, StripeConstructorOptions, StripeCardElementOptions, StripeCardElementChangeEvent, StripeCardNumberElementOptions, StripeCardNumberElementChangeEvent, StripeCardExpiryElement, StripeCardExpiryElementOptions, StripeCardExpiryElementChangeEvent, StripeCardCvcElementChangeEvent, StripeCardCvcElementOptions, StripeFpxBankElement, StripeFpxBankElementChangeEvent, StripeFpxBankElementOptions, StripeIdealBankElement, StripeIdealBankElementOptions, StripeIdealBankElementChangeEvent, StripeAuBankAccountElement, StripeAuBankAccountElementOptions, StripeAuBankAccountElementChangeEvent, StripeIbanElementOptions, StripeIbanElementChangeEvent, CanMakePaymentResult, PaymentRequestUpdateOptions, StripePaymentRequestButtonElement, StripePaymentRequestButtonElementOptions, StripePaymentRequestButtonElementClickEvent, PaymentRequestTokenEvent, PaymentRequestPaymentMethodEvent, PaymentRequestSourceEvent, PaymentRequestShippingAddressEvent, PaymentRequestShippingOptionEvent } from './lib/interfaces/stripejs.interface';

Sorry, the diff of this file is too big to display

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 too big to display

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