mad_pay library Null safety

Classes

AdaptivePayButton
Shows a platform-responsive payment button:
AppleParameters
Parameters for making a payment in Apple Pay
ApplePayButton
Apple Pay button
BillingAddressParameters
This object allows you to set additional fields to be returned for a requested billing address.
CardParameters
This object allows you to define the accepted payment card types. Google filters a payer's available payment cards based on your configured options.
Contact
Encapsulates contact information needed for billing and shipping.
GoogleParameters
Parameters for making a payment in Google Pay
GooglePayButton
Google Pay button
MadPay
Payment controller
PaymentItem
Item information
PaymentRequest
Request data for processingPayment.
PaymentResponse
Response from processingPayment, contains raw data.
PersonNameComponents
The separate parts of a person's name, allowing locale-aware formatting.
PostalAddress
The contact’s full postal address.
RawApplePayButton
Raw button without Apple Pay processing logic
RawGooglePayButton
Raw button without Google Pay processing logic
Response
Answer from platform plugins
ShippingAddressParameters
This object is used to set shipping restrictions.
ShippingMethod
Defines a shipping method for delivering physical goods.
TransactionInfo
This object describes a transaction that determines a payer's ability to pay. It's used to present a payment authorization dialog. The following table details the properties of the object.

Enums

ApplePayButtonStyle
Button style
ApplePayButtonType
Button Type
BillingFormat
This object allows you to set additional fields to be returned for a requested billing address.
CardAuthMethods
Fields supported to authenticate a card transaction.
CheckoutOption
Affects the submit button text displayed in the Google Pay payment sheet.
Environment
Setup Payment Environment
GooglePayButtonStyle
Button style
GooglePayButtonType
Button type
MerchantCapabilities
Capabilities for processing payment.
PaymentNetwork
One or more card networks that you support, also supported by the Apple / Google Pay.
ShippingType
Complete list of valid shipping types.
TotalPriceStatus
The status of the total price

Typedefs

ErrorCallback = void Function(Object? error)
On Error Callback
PaymentCallback = void Function(PaymentResponse? result)
On Payment Callback