Setting cardEnabled to false causes the both the credit card AND the selected payment method to be hidden. Leaving only the text "Select Payment Method" in the bottom sheet.
Example:
final request = BraintreeDropInRequest(
cardEnabled: false,
clientToken:
paymentMethodState.braintreeToken,
paypalRequest: BraintreePayPalRequest(
amount: '0.01',
currencyCode: 'USD',
payPalPaymentUserAction:
PayPalPaymentUserAction.commit,
),
);
final result =
await BraintreeDropIn.start(request);
Setting cardEnabled to false causes the both the credit card AND the selected payment method to be hidden. Leaving only the text "Select Payment Method" in the bottom sheet.
Example: