processPayment method

Future<Map<String, dynamic>> processPayment(
  1. double amount
)

Implementation

Future<Map<String, dynamic>> processPayment(double amount) async {
  if (_token == null) throw Exception("Autenticación requerida");

  PaymentRequest request = PaymentRequest(
    msgId: "12345",
    instgAgt: "NCCE",
    amount: amount,
  );

  return await _btcBoxService.makePayment(request);
}