NoonPaymentStyle class

Customization options for the Noon Payment SDK UI.

Follows the "Rule of Truth" naming convention:

  • Unified names (e.g. backgroundColor) are used for Both platforms.
  • iOS-only properties are prefixed with ios (e.g. iosPaymentOptionFont).
  • Android-only properties are prefixed with android (e.g. androidSpecific).

All color values should be provided as hex strings (e.g., "#FF5733").

Constructors

NoonPaymentStyle({Uint8List? logoBytes, String? backgroundColor, String? paymentOptionHeadingText, String? paymentOptionHeadingForeground, String? iosPaymentOptionHeadingFont, double? iosPaymentOptionHeadingFontSize, String? paymentOptionText, String? paymentOptionForeground, String? paymentOptionBackground, String? iosPaymentOptionBorderColor, String? iosPaymentOptionFont, double? iosPaymentOptionFontSize, String? payableAreaBackground, String? payableAmountText, String? payableAmountForeground, String? iosPayableAmountFont, double? iosPayableAmountFontSize, String? footerText, String? footerForeground, String? iosFooterFont, double? iosFooterFontSize, String? addNewCardText, String? addNewCardForeground, String? iosAddNewCardFont, double? iosAddNewCardFontSize, String? payNowButtonBackground, String? payNowButtonForeground, String? payNowButtonText, String? iosPayNowButtonFont, double? iosPayNowButtonFontSize, double? iosPayNowButtonRadius, String? iosYesButtonForeground, String? iosYesButtonBackground, String? iosYesButtonFont, double? iosYesButtonFontSize, double? iosYesButtonRadius, String? iosYesButtonBorderColor, String? iosNoButtonForeground, String? iosNoButtonBackground, String? iosNoButtonFont, double? iosNoButtonFontSize, double? iosNoButtonRadius, String? iosNoButtonBorderColor})
const

Properties

addNewCardForeground String?
Cross-Platform Text color for the "Add New Card" label.
final
addNewCardText String?
Cross-Platform Label for the "Add New Card" button.
final
backgroundColor String?
Cross-Platform Background color of the entire payment sheet.
final
footerForeground String?
Cross-Platform Text color for the footer text.
final
footerText String?
Cross-Platform Footer text at the bottom of the sheet.
final
hashCode int
The hash code for this object.
no setterinherited
iosAddNewCardFont String?
iOS Only Custom font for the "Add New Card" label (optional).
final
iosAddNewCardFontSize double?
iOS Only Font size for the "Add New Card" label (optional).
final
iosFooterFont String?
iOS Only Custom font for the footer text (optional).
final
iosFooterFontSize double?
iOS Only Font size for the footer text (optional).
final
iosNoButtonBackground String?
iOS Only Background color for the "No" button.
final
iosNoButtonBorderColor String?
iOS Only Border color for the "No" button.
final
iosNoButtonFont String?
iOS Only Custom font for the "No" button (optional).
final
iosNoButtonFontSize double?
iOS Only Font size for the "No" button (optional).
final
iosNoButtonForeground String?
iOS Only Text color for the "No" button.
final
iosNoButtonRadius double?
iOS Only Corner radius for the "No" button.
final
iosPayableAmountFont String?
iOS Only Custom font for the amount display (optional).
final
iosPayableAmountFontSize double?
iOS Only Font size for the amount display (optional).
final
iosPaymentOptionBorderColor String?
iOS Only Border color for payment method tabs.
final
iosPaymentOptionFont String?
iOS Only Custom font for payment method tabs (optional).
final
iosPaymentOptionFontSize double?
iOS Only Font size for payment method tabs (optional).
final
iosPaymentOptionHeadingFont String?
iOS Only Custom font for the payment options heading (optional).
final
iosPaymentOptionHeadingFontSize double?
iOS Only Font size for the payment options heading (optional).
final
iosPayNowButtonFont String?
iOS Only Custom font for the "Pay Now" button (optional).
final
iosPayNowButtonFontSize double?
iOS Only Font size for the "Pay Now" button (optional).
final
iosPayNowButtonRadius double?
iOS Only Corner radius for the "Pay Now" button.
final
iosYesButtonBackground String?
iOS Only Background color for the "Yes" button.
final
iosYesButtonBorderColor String?
iOS Only Border color for the "Yes" button.
final
iosYesButtonFont String?
iOS Only Custom font for the "Yes" button (optional).
final
iosYesButtonFontSize double?
iOS Only Font size for the "Yes" button (optional).
final
iosYesButtonForeground String?
iOS Only Text color for the "Yes" button.
final
iosYesButtonRadius double?
iOS Only Corner radius for the "Yes" button.
final
logoBytes Uint8List?
Cross-Platform Raw bytes for the company logo. Load via (await rootBundle.load('assets/logo.png')).buffer.asUint8List()
final
payableAmountForeground String?
Cross-Platform Text color for the amount display.
final
payableAmountText String?
Cross-Platform Label for the payable amount (e.g. "Total").
final
payableAreaBackground String?
Cross-Platform Background color for the amount display area.
final
paymentOptionBackground String?
Cross-Platform Background color for payment method tabs.
final
paymentOptionForeground String?
Cross-Platform Text color for payment method tabs.
final
paymentOptionHeadingForeground String?
Cross-Platform Text color for the payment methods heading.
final
paymentOptionHeadingText String?
Cross-Platform Title text for the payment methods section.
final
paymentOptionText String?
Cross-Platform Label for individual payment method tabs.
final
payNowButtonBackground String?
Cross-Platform Background color for the "Pay Now" button.
final
payNowButtonForeground String?
Cross-Platform Text color for the "Pay Now" button.
final
payNowButtonText String?
Cross-Platform Label for the "Pay Now" button.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts the style to a map for MethodChannel communication.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited