npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ngx-theteller

v0.0.6

Published

This library is meant to add payment integration for [theTeller](https://theteller.net/) by PaySwitch

Readme

NgxTheteller

This library is meant to add payment integration for theTeller by PaySwitch

Installation

  1. Run npm i ngx-theteller to install.
  2. Add the NgxThetellerModule to your AppModule imports
...
import { NgxThetellerModule } from 'ngx-theteller';

import { AppComponent } from './app.component';

@NgModule({
  ...
  imports: [
    NgxThetellerModule
  ],
  ...
})
export class AppModule { }
  1. Add the js script to your angular.json
"scripts": [
  ...
  "node_modules/ngx-theteller/assets/js/payswitchProd.js"
  ...
  ]

Usage

Add the ngx-theteller component to your page

<ngx-theteller
 [apikey]="'Your API Key'"
 [transaction_id]="'123456789098'"
 [amount]="1"
 [currency]="GHS"
 [customer_email]="'[email protected]'"
 [return_url]="'https://returnurl.com'"
 [custom_class]="'payment-button'"
 [description]="'Payment for vans sneaker'"
></ngx-theteller>

Parameters

| Parameter | Type | Required | Description | | --- | --- | --- | --- | | apikey | string | true | Your merchant API key provided when you create an account with theTeller | | transaction_id | string | true | A 12-digit unique transaction reference provided by you | | amount | number | true | Amount to charge | | customer_email | string | true | Customer's Email | | currency | string | true | Currency to charge customer in. Defaults to GHS | | return_url | string | true | URL to redirect to when transaction is completed | | button_text | string | false | Text to show on payment button. Defaults to Pay Now | | description | string | true | Text to be displayed as a short transaction narration | | payment_method | string | true | Choose between card or mobile money payment. e.g card, momo, both. Defaults to both | | custom_class | string | false | A custom class to style payment button |

Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

Two projects exist in this repository

  • The ngx-theteller package: ./projects/ngx-theteller
  • The demo: ./projects/testing

Demo

  • Run ng build ngx-theteller
  • Run ng serve

Thanks to Julius Asante