allowedPaymentMethods property

List<PaymentMethod>? allowedPaymentMethods
final

Restricts which payment methods the chooser offers.

  • null or empty → show the full chooser (default).
  • One method → skip the chooser and route straight to that method.
  • Multiple methods → show the chooser with only those tiles.

Implementation

final List<PaymentMethod>? allowedPaymentMethods;