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-ycpay

v1.0.11

Published

To install the last active version:

Readme

Installation

To install the last active version:

npm install ngx-ycpay@latest

Notice

This library is a reserve until the youcan teams create a library for angular

  1. This package is only a short module for integration youcanpay card in your angular

  2. You need to import https://youcanpay.com/js/ycpay.js to your angular.json

  3. This package required your smile before installation 😏

If you dont know angular.json (im also dont know 😅 ) follow me with this steps

  1. go to your project
  2. scroll down behind of package.json you will see angular.json (if you don't know package.json this library is not recommended for you)
  3. is not important step
  4. open angular.json
  5. projects -> project-name -> architect -> options -> scripts
  6. oh wow we finish

Using the library

  1. Import the NgxYcpayModule into your application
  2. Import the NgxYcpayModule into your application
  3. Import the NgxYcpayModule into your application
  4. Import the NgxYcpayModule into your application

Repetition for Accessibility Knowledge 🍪

image

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

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

// Import the library
import { NgxYcpayModule } from 'ngx-ycpay';

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    ReactiveFormsModule,
    NgxYcpayModule,
    LibraryModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {}

Now go to your component and 🤙 call <ngx-ycpay [yc-publicKey]="'publicKey'"></ngx-ycpay>

other params not required:

| Name | Default Value | | ------- | ------------------- | | yc-form | ycForm | | yc-lang | en | | yc-error | ycError | | yc-class | empty | | class | yc-group |

The ngx-ycpay has only one event i call him Pay for more explination when user click pay the event will emit a instance of YCPay in (Pay)="" Event

// component.html

<ngx-ycpay [yc-publicKey]="'publicKey'" (Pay)="MyMethodForCreatToken($event)"></ngx-ycpay>

// component.ts

MyMethodForCreatToken(ycPay){
ycPay.pay(tokenId)
      .then(successCallback)
      .catch(errorCallback);
}

Donation

Lah yrheem lawalidin is enough 👌