I am currently doing the automation testing of micro service which uses razorpay sdk for all the payment related activities. And for writing automation test cases I am using karate framework. Now my service interact with razorpay with there sdk and not with any API. So I couldn't figure out any way on how we can automate these sdk calls, because it is not any API. The code that I am using to connect to razorpay is like this.
new Razorpay({
key_id: <RazorPay Key>,
key_secret: <RazorPay key secret>});
I cannot mock the API like pathSelect(\orders)
in karate as these API calls razorpay sdk is making internally in there system.
I am new to karate framework so just wanted to know if there is anywat to automate these sdk calls to razorpay as we are not using any API to interact with it.