xPayFrontOfficePaga method

Future<String> xPayFrontOfficePaga(
  1. String alias,
  2. String codTrans,
  3. String currency,
  4. int amount,
)

Makes the web view payment and awaits the response

Implementation

Future<String> xPayFrontOfficePaga(
    String alias, String codTrans, String currency, int amount) async {
  await _initXPay(secretKey, environment, domain);
  ApiFrontOfficeQPRequest request =
      ApiFrontOfficeQPRequest(alias, codTrans, currency, amount);
  var res =
      await _channel.invokeMethod("xPayFrontOfficePaga", request.toMap());
  return res;
}