pay static method
Implementation
static Future<Optional<IswPaymentResult?>> pay(IswPaymentInfo info) async {
try {
final result =
await _channel.invokeMethod('pay', {'paymentInfo': info.toMap()});
if (result == null) {
return Optional(null, false);
} else {
return Optional(IswPaymentResult.fromJson(result), true);
}
} on PlatformException {
throw 'Unable to complete payment';
}
}