1.2.2 • Published 5 years ago

nativescript-razorpay v1.2.2

Weekly downloads
30
License
Apache-2.0
Repository
-
Last release
5 years ago

Razorpay (Unofficial)

A nativescript wrapper around iOS and Android Razorpay plugins. Razorpay is a payment gateway for some of the payments around Indian payments ecosystem. This does not provide any UI components. Will only provide functions to open native payment flows and receive callbacks. Hence, cannot be used declaratively.

Installation

Open terminal and type the following command at the root of your project folder.

tns plugin add nativescript-razorpay

Usage

export function onCheckoutButtonTapped(args : any) {
    new RazorpayCheckout("rzp_test_some_id").open({
        "amount" : "1000", //In paise 
        "description" : "Some Items from Swiggy",
        "image" : "https://placem.at/things?h=200",
        "name" : "My Business Checkout",
        "prefill": {
            "contact": "Valid phone number",
            "email": "foo@bar.com"
        },
    }).then(function(paymentId){
        console.log("Payment Id ", paymentId);
    }, function(error){
        console.error(error);
    })
}

API

PropertyDefaultDescription
opennoneAccepts options among others, should contain "amount"

License

Apache License Version 2.0, January 2004

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago