isApplePayOnly property

bool get isApplePayOnly

True when the merchant has restricted payment to Apple Pay only. Drives native availability checks and banner CTA swap.

Mirrors the iOS Kit's CheckoutConfig.isApplePayOnly computed property — true iff paymentMethods == ["apple_pay"].

Implementation

bool get isApplePayOnly =>
    paymentMethods != null &&
    paymentMethods!.length == 1 &&
    paymentMethods!.first == 'apple_pay';