Skip to content
No description, website, or topics provided.
TypeScript Shell JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github subiendo plugin Mar 25, 2019
demo subiendo plugin Mar 25, 2019
publish actualizando el readme Mar 26, 2019
src ocultando claves de acceso Mar 26, 2019
.gitignore subiendo plugin Mar 25, 2019
.travis.yml subiendo plugin Mar 25, 2019
LICENSE subiendo plugin Mar 25, 2019
README.md ocultando claves de acceso Mar 26, 2019
package-lock.json subiendo plugin Mar 25, 2019
tslint.json subiendo plugin Mar 25, 2019

README.md

Openpay apple android

Support

Support Android & iOS.

Installation

tns plugin add nativescript-open-pay

Usage

In the demo you will find a test token to test quickly

import { Observable } from "tns-core-modules/data/observable";
import { OpenPay, Card } from "nativescript-open-pay";

export class HelloWorldModel extends Observable {
    private openPay: OpenPay;

    constructor() {
        super();

        this.openPay = new OpenPay();
        this.openPay.setup(
            "merchant_id", // merchantId
            "api_key", // apiKey
            false // ProductionMode Sandbox = false
        );

        let card: Card = {
            holderName: "Juan Perez Ramirez",
            cardNumber: "4111111111111111",
            expirationMonth: "12",
            expirationYear: "20",
            cvv2: "110"
        };

        this.openPay
            .createToken(card)
            .then(function(args) {
                console.dir(args);
            })
            .catch(function(error) {
                console.log(error);
            });
    }
}

License

Apache License Version 2.0, January 2004

You can’t perform that action at this time.