startPayActivityNoToken method

  1. @override
Future<PaymentResult?> startPayActivityNoToken(
  1. Payment payment
)
override

Implementation

@override
Future<PaymentResult?> startPayActivityNoToken(Payment payment) async {
  String strPayment = paymentToJson(payment);
  final result = await methodChannel.invokeMethod<String>(
      'StartPayActivityNoToken', {"payment": strPayment});
  if (kDebugMode) {
    print("resulttttttttt");
    print(result);
  }
  // if (result == "Approved") {
  //   return PaymentResult(dataMessage: "Approved", maskedPan: "", token: "");
  // }
  return paymentResultFromJson(result!);
}