A {N} plugin that wraps around native iOS and Android plugins
npm i --save nativescript-razorpay
  • Version: 1.2.2
  • GitHub:
  • Downloads:
    • Last Day:   0
    • Last Week:  0
    • Last Month: 0

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.


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

tns plugin add nativescript-razorpay


export function onCheckoutButtonTapped(args : any) {
new RazorpayCheckout("rzp_test_some_id").open({
"amount" : "1000", //In paise
"description" : "Some Items from Swiggy",
"image" : "",
"name" : "My Business Checkout",
"prefill": {
"contact": "Valid phone number",
"email": "[email protected]"
console.log("Payment Id ", paymentId);
}, function(error){


Property Default Description
open none Accepts options among others, should contain "amount"


Apache License Version 2.0, January 2004