flutter_pay_buttons library
Copyright 2024 M-Tayyab-Mustafa
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Apple Pay Flutter Plugin
A Flutter library that provides a customizable Apple Pay button widget,
built on top of the pay package to simplify Apple Pay integrations.
Features:
- Exports most of the
paypackage functionality (except the built-in ApplePayButton) - Adds a custom ApplePayButton with extended UI customization
Author: M.Tayyab Mustafa
License: MIT
Copyright © 2025
Classes
- ApplePayButton
- Shows the Apple Pay payment sheet to the user.
- ButtonPlaceholder
- Shows the appropriate widget based on the API requests above, respecting the margin if the child is set.
- GooglePayButton
- Shows the Google Pay payment sheet to the user.
- Pay
- High level layer to easily manage cross-platform integrations.
- PayButton
- A widget that handles the API logic to facilitate the integration.
- PaymentConfiguration
- An object that holds information about a payment transaction.
- PaymentItem
- A simple object that holds information about individual entries in the payment summary shown before completing a payment.
- RawApplePayButton
- A button widget that follows the Apple Pay button styles and design guidelines.
- RawGooglePayButton
- A button widget that follows the Google Pay button themes and design guidelines.
Enums
- ApplePayButtonStyle
- The button styles supported on Apple Pay.
- ApplePayButtonType
- The types of button supported on Apple Pay.
- CheckoutOption
- Defines how the checkout process should behave.
- GooglePayButtonTheme
- The button themes supported on Google Pay.
- GooglePayButtonType
- The types of button supported on Google Pay.
- PaymentItemStatus
- The payment price statuses supported in the payment selector.
- PaymentItemType
- The payment types supported when showing the payment selector.
- PayProvider
- The payment providers supported by this package.
- TokenizationSpecificationType
- Defines the type of tokenization (how card/payment data is secured).
- TransactionInfoStatus
- Represents the status of a transaction during checkout.
Constants
-
supportedProviders
→ const Map<
TargetPlatform, List< PayProvider> > - List of supported payment providers and platform pairs.
Exceptions / Errors
- ProviderNotConfiguredException
- Thrown to indicate that the configuration for a request provider has not been provided.