I have encountered an issue with the native-script-paytm integration plugin. Both GitHub repositories are not functioning properly and are throwing stack exceptions. As a result, I decided to create my own project which seems to be working somewhat fine. However, I still have numerous questions regarding obtaining 'mid', 'order id', etc.
If anyone could provide a detailed step-by-step guide for this process, it would be greatly appreciated.
const createViewModel = require("./main-view-model").createViewModel;
const Paytm = require("@nstudio/nativescript-paytm").Paytm;
const paytm = new Paytm();
exports.pageLoaded = function (args) {
const page = args.object;
page.bindingContext = createViewModel();
}
exports.onPayWithPaytm = function (args) {
console.log("Paying");
// Rest of the JavaScript code...
For visual reference, you can view the image here.