onPaymentMethodSelected property

void Function(Map<String, Object?> paymentMethod)? onPaymentMethodSelected
final

Called when the user selects a saved payment method.

The paymentMethod map contains:

  • type — e.g. "card"
  • paymentMethodId — unique identifier
  • card{ source, brand, last4, expiration: { month, year } }

Implementation

final void Function(Map<String, Object?> paymentMethod)?
onPaymentMethodSelected;