Package selection guidance compiled from public package information, community data, and project usage.
The pay package is a Flutter plugin that enables payment functionality in mobile applications, providing integration with Google Pay for Android and iOS. It allows developers to securely process payments, manage payment methods, and handle transactions within their apps. Designed by Google, it simplifies the implementation of payment flows using standardized APIs. The plugin supports both major platforms and ensures compliance with security best practices. It is ideal for e-commerce, subscription-based services, and any app requiring in-app payment processing.
Use cases
In-app purchases
Subscription billing
E-commerce checkout
Digital goods purchase
Mobile wallet integration
Key features
Google Pay integration
Cross-platform support (Android & iOS)
Secure payment handling
Simple API for payment requests
Supports multiple payment methods
Suitable for
E-commerce apps
Subscription services
Mobile wallets
Payment-enabled marketplaces
Apps requiring secure transactions
Considerations
Requires Google Pay setup on devices
Needs proper configuration for production
Depends on platform-specific payment gateways
Limited to Google Pay ecosystem
May require additional backend validation
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
A plugin to add payments to your Flutter application.
pay
pay_android
pay_ios
pay_platform_interface
Platform Support
Android
iOS
Google Pay
Apple Pay
Getting started
Before you start, create an account with the payment providers you are planning to support and follow the setup instructions:
The packages in this repository follow the federated plugin architecture. Each package has a specific responsibility and can be used independently to fulfil less conventional integration needs:
An app-facing package with support for all the platforms supported by this plugin.
This package offers an agnostic integration for the platforms supported in this plugin and features the easiest path to add payments to your Flutter application.
The endorsed implementation of this plugin for Android.
This package contains the necessary business logic to support the Android platform. You can integrate this package separately or use it to build your own app-facing package.
The endorsed implementation of this plugin for iOS.
This package contains the necessary business logic to support the iOS platform. You can integrate this package separately or use it to build your own app-facing package.
A common API contract for platform-specific implementations.
Folow the contract in this package to add new platforms to the plugin or create your own Android or iOS implementations. Take a look at the guide about plugin development to learn more.
Additional resources
Check out the following resources to manage your payment accounts and learn more about the APIs for the supported providers: