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 🙏

© 2024 – Pkg Stats / Ryan Hefner

cordova-paytm-customuisdk

v1.1.3

Published

A starting point for a Cordova Plugin

Downloads

13

Readme

Paytm Custom UI SDK ionic cordova

Paytm Custom UI SDK facilitates you to build your own Payment UI or Checkout page as per your requirements. You can easily integrate this non UI SDK in your App and call the methods to perform further transactions on the Paytm platform using the different available payment methods. The SDK provides multiple benefits to the merchants e.g. Enhanced success rates and reduced transaction time because of saved payment instruments and native experience

This Cordova plugin helps you to be able to use the Custom UI SDK with your ionic application. This plugin supports both Android and iOS.

Installation:

Add the plugin in your ionic application with the following command.

ionic cordova plugin add cordova-paytm-customuisdk ionic cordova plugin add cordova-plugin-androidx ionic cordova plugin add cordova-plugin-androidx-adapter

It is also possible to install the plugin via repo url directly

ionic cordova plugin add https://github.com/paytm/paytm-customuisdk-cordova.git

Pre-requisite

ionic-native wrapper

Note : We are working on ionic-native wrapper for custom ui sdk so that you can use below command to add wapper

  • npm install @awesome-cordova-plugins/core
  • npm install @awesome-cordova-plugins/custom-uisdk

But for now use below process to add ionic wapper

Take checkout from below git command out from your ionic project directory (branch customui-sdk)

  • git clone -b 'customui-sdk' https://github.com/paytm/ionic-native.git
  • cd ionic-native
  • npm i
  • npm run build

The dist directory will contain a sub directory @ionic-native with all the packages compiled in there. Copy the package(custom-uisdk) to your app's node_modules under the @ionic-native directory. For example: Run this command from ionic project cp -r ../ionic-native/dist/@ionic-native/plugins/custom-uisdk node_modules/@ionic-native. Change the path of directories as per your project structure.

Usage:

Add the plugin to your app's provider list

import { CustomUISDK } from "@ionic-native/custom-uisdk/ngx";

@NgModule({
  declarations: [...],
  entryComponents: [...],
  imports: [...],
  providers: [..., CustomUISDK],
  bootstrap: [...]
})
export class AppModule {}

In your page from where you want to invoke the Custom UI SDK, add the following code:

import { CustomUISDK } from "@ionic-native/custom-uisdk/ngx";

 constructor(
    private customUI: CustomUISDK) {}
    // Call methods as per requirement
this.customUI
      .fetchAuthCode(this.clientId, this.mid)
      .then((res: any) => {
        this.authCode = res.response;
        alert(JSON.stringify(res));
      })
      .catch((err) => {
        alert(JSON.stringify(err));
      });

Custom UI SDK API & SDK reference

https://developer.paytm.com/docs/custom-ui-sdk/