startPayment method

  1. @override
Future<void> startPayment(
  1. String secretKey,
  2. String jsonRequest
)
override

Implementation

@override
Future<void> startPayment(
  // String amount,
                          String secretKey, String jsonRequest) async {
  try {
    await _methodChannel.invokeMethod('startPayment', {
      // 'amount': amount,
      'secretKey': secretKey,
      'jsonRequest': jsonRequest,
    });
  } on PlatformException catch (e) {
    throw Exception('Failed to start transaction: ${e.message}');
  }
}