Giter Club home page Giter Club logo

google-tapandpay's Introduction

cordova-android-googlepay-issuer

Cordova/Phonegap plugin for Android for Google Pay - Issuers

Requirements

This plugin requires [email protected]+ (CLI) and cordova-android@8+ (Android platform).

Installation

cordova plugin add https://github.com/andregrillo/google-tapandpay.git

How to use

Functions

PushProvision

Starts the push tokenization flow in which the issuer provides most or all card details needed for Google Pay to get a valid token. Tokens added using this method are added to the active wallet.

    let opc = "eyJhb...0zfF20w";
    let tsp = "VISA";
    let clientName = "John Doe";
    let lastDigits = "1234";
    let address = {
        name:"John Doe",
        address: "St. Some Street",
        locality: "London",
        administrativeArea: "Sutton",
        countryCode:"UK",
        postalCode: "99999",
        phoneNumber: "9999999999"
    };
    GooglePayIssuer.prototype.pushProvision(opc,tsp,clientName,lastDigits,address,onSuccess,onError);

GetTokenStatus

Return the token status for a token in the active wallet.

    let tsp = "VISA";
    let tokenReferenceId = "dP4Pwaq7WQY:APA9";

    GooglePayIssuer.prototype.getTokenStatus(tsp,tokenReferenceId,onSuccess,onError);

GetEnvironment

Return the current environment Google Pay is configured to use.

    GooglePayIssuer.prototype.getEnvironment(onSuccess,onError);

GetActiveWalletID

Returns the Wallet ID of the active wallet. If there is no active wallet, a error is throw.

    GooglePayIssuer.prototype.getActiveWalletID(onSuccess,onError);

GetStableHardwareId

Returns the stable hardware ID of the device. Each physical Android device has a stable hardware ID which is consistent between wallets for a given device. This ID will change as a result of a factory reset.

    GooglePayIssuer.prototype.getStableHardwareId(onSuccess,onError);

Credits

Thanks to Raphael Godoi and Guilherme Rodrigues

google-tapandpay's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.