startPayment method

Future<bool> startPayment(
  1. PaymentType type,
  2. int amount, {
  3. PaymentTypeCredit installmentType = PaymentTypeCredit.CLIENT,
  4. int installments = 1,
  5. String userReference = USER_REFERENCE,
  6. bool printReceipt = true,
  7. bool partialPay = false,
  8. bool isCarne = false,
})

Implementation

Future<bool> startPayment(PaymentType type, int amount, {PaymentTypeCredit installmentType = PaymentTypeCredit.CLIENT, int installments = 1, String userReference = USER_REFERENCE, bool printReceipt = true, bool partialPay = false, bool isCarne = false}) async {
  return await channel.invokeMethod(PaymentTypeCall.START_PAYMENT.method, {
    "type": type.value,
    "amount": amount,
    "installmentType": installmentType.value,
    "installments": installments,
    "userReference": userReference,
    "printReceipt": printReceipt,
    "partialPay": partialPay,
    "isCarne": isCarne,
  });
}