Zarinpal is a Flutter/Dart package that enables seamless integration of ZarinPal, a popular Iranian payment gateway, across all platforms including Android, iOS, Web, macOS, Windows, and Linux. It simplifies the process of initiating payments, handling callbacks, and verifying transactions with minimal code. Designed for developers targeting Iranian markets, it supports both test and live environments, ensuring secure and reliable payment processing. The package is maintained by flutterfarsi.ir and is open-source, encouraging community contributions.
Use cases
- Integrating ZarinPal payments in cross-platform Flutter apps
- Processing online payments for e-commerce apps in Iran
- Supporting mobile and web-based payment flows
- Enabling sandbox testing before production
- Handling payment verification securely
- Building local business applications requiring Iranian payment methods
Key features
- Cross-platform compatibility (Android, iOS, Web, macOS, Windows, Linux)
- Support for ZarinPal's sandbox and live modes
- Simple API for initiating and verifying payments
- Built-in callback handling for transaction results
- Open-source and community-supported
- Easy setup via Flutter pub add command
Suitable for
- Developers building apps for Iranian users
- E-commerce platforms targeting Iran
- Apps requiring secure payment gateways
- Cross-platform projects needing unified payment logic
- Startups integrating local payment solutions
- Flutter developers seeking native-like payment experiences
Considerations
- Requires valid ZarinPal merchant credentials
- May need additional server-side validation for security
- Limited to Iranian payment ecosystem
- Depends on ZarinPal's API availability and stability
- Not suitable for international payment processing
- App store approval may require extra documentation for payment features