UNPKG

flutterwave-angularjs

Version:
2 lines 2.18 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("flutterwave-angularjs",["exports","@angular/core","@angular/common"],e):e((t=t||self)["flutterwave-angularjs"]={},t.ng.core,t.ng.common)}(this,(function(t,e,n){"use strict";var o=function(){function t(){this.callback=new e.EventEmitter,this.close=new e.EventEmitter}return t.prototype.ngOnInit=function(){},t.prototype.madePayment=function(){this.prepRaveOptions(),window.getpaidSetup(this.raveOptions)},t.prototype.prepRaveOptions=function(){var t=this;this.raveOptions={PBFPubKey:this.key,txref:this.reference,amount:this.amount,customer_email:this.email,onclose:function(){return t.close.emit()},callback:function(e){return t.callback.emit(e)},currency:this.currency||"NGN",country:this.country||"NG",customer_firstname:this.customer_firstname||"",customer_lastname:this.customer_lastname||"",custom_title:this.custom_title||"",custom_description:this.custom_description||"",custom_logo:this.custom_logo||"",meta:this.meta||{}}},t.decorators=[{type:e.Component,args:[{selector:"rave-pay-button",template:'<button\n class="paystack-pay-button"\n [ngStyle]="style"\n [ngClass]="className"\n (click)="madePayment()">\n {{text || \'Pay\'}}\n</button>',styles:["h1{color:red}"]}]}],t.ctorParameters=function(){return[]},t.propDecorators={text:[{type:e.Input}],style:[{type:e.Input}],className:[{type:e.Input}],callback:[{type:e.Output}],close:[{type:e.Output}],key:[{type:e.Input}],email:[{type:e.Input}],amount:[{type:e.Input}],reference:[{type:e.Input}],meta:[{type:e.Input}],currency:[{type:e.Input}],country:[{type:e.Input}],customer_firstname:[{type:e.Input}],customer_lastname:[{type:e.Input}],custom_title:[{type:e.Input}],custom_description:[{type:e.Input}],custom_logo:[{type:e.Input}]},t}();var r=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[o],imports:[n.CommonModule],exports:[o]}]}],t}();t.FlutterwaveAngularjsModule=r,t.ɵa=o,Object.defineProperty(t,"__esModule",{value:!0})})); //# sourceMappingURL=flutterwave-angularjs.umd.min.js.map