providerValue<T>(provider: PaymentProviderType | null,values: Readonly<Record<PaymentProviderType, T>>,): T | null
Pick the value for the active payment provider from a per-provider set, or
null when no provider is active. The set is keyed by the provider union,
so a caller cannot forget a provider: leaving one out is a compile error at
the call site rather than a silent null on a live site.
provider: PaymentProviderType | null
values: Readonly<Record<PaymentProviderType, T>>
T | null