pay static method

Future<ScLoanSuccess> pay(
  1. ScLoanInfo loanInfo
)

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;
  }
}