Error - writing plugin for Payment Gateway


#1

Developing nativescript plugin for one of the payment gateway, payment gateway exposed api through jar file. api interface example code - https://github.com/Paytm-Payments/Paytm_Android_App_Kit/blob/master/SampleMerchantApp/app/src/main/java/com/example/merchantapp/MerchantActivity.java

Wrote conversion code for above one in nativescript - https://github.com/spmamidi/nativescript-paytm/blob/master/paytm.android.ts.

we are getting following error message showing in console.
JS: [object Object]
JS: curl:: [object Object]
JS: parammap::: {MID=WorldP64425807474247, CALLBACK_URL=https://pguat.paytm.com/paytmchecksum/paytmCheckSumVerify.jsp, TXN_AMOUNT=1, ORDER_ID=TestMerchant000111007, WEBSITE=worldpressplg, INDUSTRY_TYPE_ID=Retail, CHECKSUMHASH=w2QDRMgp1/BNdEnJEAPCIOmNgQvsi+BhpqijfM9KvFfRiPmGSt3Ddzw+oTaGCLneJwxFFq5mqTMwJXdQE2EzK4px2xruDqKZjHupz9yXev4=, CHANNEL_ID=WAP, CUST_ID=mohit.aggarwal@paytm.com}
JS: Order::: com.paytm.pgsdk.PaytmOrder@47befbc
JS: Service intialised
04-05 07:21:37.280 3459 3459 W System.err: at com.tns.Runtime.callJSMethodNative(Native Method)
04-05 07:21:37.280 3459 3459 W System.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1197)
04-05 07:21:37.280 3459 3459 W System.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:1061)
04-05 07:21:37.280 3459 3459 W System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1047)
04-05 07:21:37.280 3459 3459 W System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1028)
04-05 07:21:37.280 3459 3459 W System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1018)

How to step into service.startPaymentTransaction(utils.ad.getApplicationContext(), true, true, callbacks) and how to get actual error information? Is there any way step into code which is in jar file?

Note: we are passing all the required parameters whatever it’s needed. Native code works very well.
Jar file code - Validates required parameters and opens webview for accepting cards information to process payment.