pixPayment method
Function to invoke method from debit payment with SDK the Stone
Implementation
Future<bool> pixPayment({
required int amount,
required String qrCodeAuthroization,
required String qrCodeProviderid,
bool printCustomerSlip = true,
bool printEstablishmentSlip = false,
String initiatorTransactionKey = "",
}) async {
return await channel.invokeMethod(
PaymentTypeCall.pix.method,
{
"amount": amount.toString(),
"installment": 1,
"withInterest": false,
"qrCodeAuthorization": qrCodeAuthroization,
"qrCodeProviderid": qrCodeProviderid,
"printCustomerSlip": printCustomerSlip,
"printEstablishmentSlip": printEstablishmentSlip,
"initiatorTransactionKey": initiatorTransactionKey,
},
);
}