flutter_app_pay_api library

Classes

AppPayPlatform
Strongly-typed interface that every provider plugin must implement.
AppPayRegisterHook
Registration hook that allows providers to register themselves without depending on the core library directly.
ProductDto
Product DTO shared between core and provider implementations.
ProviderDescriptor
Metadata that describes a payment provider plugin.
ProviderStatus
Current runtime status of a provider plugin.
ProviderToken
Internal token returned when registering a provider. Used by the core registry to uniquely track providers.
PurchaseEventDto
Event representing the result of a purchase or restoration attempt.

Enums

ProductType
Types of in-app products supported by providers.
ProviderPlatform
Supported runtime platforms for providers.
PurchaseStatus
Possible statuses of a purchase event.

Extensions

ProviderStatusX on ProviderStatus
Extension methods for more readable access to provider status.

Constants

kAppPayApiVersion → const int
Current version of the AppPay API contract. Both the core library and provider plugins must support this version (or a compatible range) to interoperate safely.

Typedefs

ProviderFactory = AppPayPlatform Function()
Factory function used to instantiate provider implementations.