import { AllInOneSDK } from '@awesome-cordova-plugins/all-in-one-sdk/ngx';
constructor(private allInOneSDK: AllInOneSDK) { }
...
For below parameters see [documentation](https://developer.paytm.com/docs/all-in-one-sdk/hybrid-apps/cordova/)
let paymentIntent = { mid : merchantID, orderId: orderId, txnToken: transactionToken, amount: amount, isStaging: isStaging, callbackUrl:callBackURL, restrictAppInvoke:restrictAppInvoke }
this.allInOneSDK.startTransaction(paymentIntent)
.then((res: any) => console.log(res))
.catch((error: any) => console.error(error));