nativescript-plugin

Integrating nativescript-paytm plugin in nativescript-vue application

北城以北 提交于 2019-12-05 13:22:58
I'm having a nativescript-vue application where I want to integrate nativescript-paytm plugin, I created a method on click event: payNow() which contains all the necessary details of Paytm as described in Readme.md/documentation/demo app. import { Paytm, Order, TransactionCallback, IOSCallback } from "@nstudio/nativescript-paytm"; const paytm = new Paytm() methods: { payNow() { paytm.setIOSCallbacks({ didFinishedResponse: function(response) { console.log(response); }, didCancelTransaction: function() { console.log("User cancelled transaction"); }, errorMissingParameterError: function(error) {