PEGooglePayButton constructor
const
PEGooglePayButton({
- Key? key,
- required PEPaymentRequest paymentRequest,
- double width = double.infinity,
- double height = 50,
- dynamic onPaymentFailed()?,
- VoidCallback? onPaymentSheetDismissed,
- dynamic onTokenDidReturn(
- String,
- dynamic,
- PEGooglePayAddress?,
- PEGooglePayAddress?,
Creates an instance of PEGooglePayButton.
paymentRequest: The payment details.width: The button width.height: The button height.onPaymentFailed: Callback for handling payment failures.onPaymentSheetDismissed: Callback when the sheet is dismissed.onTokenDidReturn: Callback for handling the returned payment token.
Implementation
const PEGooglePayButton({
Key? key,
required this.paymentRequest,
this.width = double.infinity,
this.height = 50,
this.onPaymentFailed,
this.onPaymentSheetDismissed,
this.onTokenDidReturn,
}) : super(key: key);