pixPayment method

Future<bool> pixPayment({
  1. required int amount,
  2. required String qrCodeAuthroization,
  3. required String qrCodeProviderid,
  4. bool printCustomerSlip = true,
  5. bool printEstablishmentSlip = false,
  6. String initiatorTransactionKey = "",
})

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