pikaju / flutter-braintree

Flutter plugin that wraps the native Braintree SDKs. Enables payments with credit cards, PayPal, Google Pay and more.
https://pub.dev/packages/flutter_braintree
MIT License
64 stars 126 forks source link

Setting cardEnabled to false breaks the dropin ui. #137

Open zeropointo opened 1 year ago

zeropointo commented 1 year ago

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);
Always-Bijoy commented 7 months ago

hey did you find the solution to this? I also need to hide the cardEnable option hide