paymentProcess method

Future<String> paymentProcess (
  1. {@required String paymentId}

Returns a String object that indicates the status of the payment process.

The paymentId argument will be used to process the payment associated with your billing account in Khipu.


static Future<String> paymentProcess({@required String paymentId}) async {
  if (paymentId != null && paymentId.isEmpty) {
    throw ArgumentError.value(paymentId, 'paymentId cannot be empty or null');

  final String paymentStatus = await _channel.invokeMethod<String>(
    <String, dynamic>{
      'paymentId': paymentId,

  return paymentStatus == null ? "FAILURE" : paymentStatus;