ngx-theteller
Version:
This library is meant to add payment integration for [theTeller](https://theteller.net/) by PaySwitch
110 lines (103 loc) • 5.18 kB
JavaScript
import * as i0 from '@angular/core';
import { Injectable, Component, Input, NgModule } from '@angular/core';
class NgxThetellerService {
constructor() { }
}
NgxThetellerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: NgxThetellerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
NgxThetellerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: NgxThetellerService, providedIn: 'root' });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: NgxThetellerService, decorators: [{
type: Injectable,
args: [{
providedIn: 'root'
}]
}], ctorParameters: function () { return []; } });
class NgxThetellerComponent {
constructor() { }
ngOnInit() {
}
}
NgxThetellerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: NgxThetellerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
NgxThetellerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: NgxThetellerComponent, selector: "ngx-theteller", inputs: { apikey: "apikey", transaction_id: "transaction_id", amount: "amount", customer_email: "customer_email", currency: "currency", return_url: "return_url", button_text: "button_text", description: "description", payment_method: "payment_method", custom_class: "custom_class" }, ngImport: i0, template: `
<form>
<a class="ttlr_inline"
[attr.data-APIKey]='apikey'
[attr.data-transid]="transaction_id"
[attr.data-amount]="amount"
[attr.data-customer_email]="customer_email"
[attr.data-currency]="(currency) ? currency : 'GHS'"
[attr.data-redirect_url]="return_url"
[attr.data-custom_class]="(custom_class) ? custom_class : ''"
[attr.data-pay_button_text]="(button_text) ? button_text : 'Pay Now'"
[attr.data-custom_description]="(description) ? description : ''"
[attr.data-payment_method]="(payment_method) ? payment_method : 'both'">
</a>
</form>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: NgxThetellerComponent, decorators: [{
type: Component,
args: [{
selector: 'ngx-theteller',
template: `
<form>
<a class="ttlr_inline"
[attr.data-APIKey]='apikey'
[attr.data-transid]="transaction_id"
[attr.data-amount]="amount"
[attr.data-customer_email]="customer_email"
[attr.data-currency]="(currency) ? currency : 'GHS'"
[attr.data-redirect_url]="return_url"
[attr.data-custom_class]="(custom_class) ? custom_class : ''"
[attr.data-pay_button_text]="(button_text) ? button_text : 'Pay Now'"
[attr.data-custom_description]="(description) ? description : ''"
[attr.data-payment_method]="(payment_method) ? payment_method : 'both'">
</a>
</form>
`,
styles: []
}]
}], ctorParameters: function () { return []; }, propDecorators: { apikey: [{
type: Input
}], transaction_id: [{
type: Input
}], amount: [{
type: Input
}], customer_email: [{
type: Input
}], currency: [{
type: Input
}], return_url: [{
type: Input
}], button_text: [{
type: Input
}], description: [{
type: Input
}], payment_method: [{
type: Input
}], custom_class: [{
type: Input
}] } });
class NgxThetellerModule {
}
NgxThetellerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: NgxThetellerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
NgxThetellerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: NgxThetellerModule, declarations: [NgxThetellerComponent], exports: [NgxThetellerComponent] });
NgxThetellerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: NgxThetellerModule, imports: [[]] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: NgxThetellerModule, decorators: [{
type: NgModule,
args: [{
declarations: [
NgxThetellerComponent
],
imports: [],
exports: [
NgxThetellerComponent
]
}]
}] });
/*
* Public API Surface of ngx-theteller
*/
/**
* Generated bundle index. Do not edit.
*/
export { NgxThetellerComponent, NgxThetellerModule, NgxThetellerService };
//# sourceMappingURL=ngx-theteller.mjs.map