pix_flutter
2.2.0, released 3 years ago by huodelivery.com
A wrapper for the Brazilian PIX API compatible with most PSPs.
What it does
Provides a Dart wrapper around the PIX API to generate static QR codes, manage immediate or due-date charges, handle batch charges, configure webhooks, and process refunds.
AI-written summary of version 2.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Flutter app that integrates with Brazilian PIX payment systems.
- You need to handle PIX charges, immediate collections, and webhook configurations.
Skip it when
- You need built-in UI components for rendering the QR code directly (requires a separate package like qr_flutter).
- You are working with non-Brazilian payment gateways.
Strengths
- Supports multiple types of PIX charges including immediate, due-date, and batch collections.
- Compatible with most Payment Service Providers (PSPs) following the official PIX API standard.
Weaknesses
- Does not render QR codes natively, requiring an external package like qr_flutter.
- Documentation relies heavily on external PSP and official PIX docs.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add the dependency to pubspec.yaml and import the package. Note that you may need an additional package like qr_flutter to display the generated QR code graphics.
PixFlutter pixFlutter = PixFlutter(
payload: Payload(
pixKey: 'SUA_CHAVE_PIX',
description: 'DESCRIÇÃO_DA_COMPRA',
merchantName: 'MERCHANT_NAME',
merchantCity: 'CITY_NAME',
txid: 'TXID',
amount: 'AMOUNT'
)
);
pixFlutter.getQRCode();Works with
Packages commonly used together with pix_flutter: ones it builds on, ones built on it, and its own family.