paymentProcess static 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.

Implementation

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

  final String? paymentStatus = await _channel.invokeMethod<String>(
    'paymentProcess',
    <String, dynamic>{
      'paymentId': paymentId,
    },
  );

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