pay static method
Implementation
static Future<ScLoanSuccess> pay(ScLoanInfo loanInfo) async {
try {
String? payResponse =
await _channel.invokeMethod('pay', <String, dynamic>{
"interactionToken": loanInfo.interactionToken,
});
return ScLoanSuccess.fromJson(payResponse ?? "{}");
} on PlatformException catch (e) {
throw e.toScLoanError;
}
}