startPayment method
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,
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,
});
}