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 115 forks source link

BraintreeDropIn not working paypal request #157

Open Always-Bijoy opened 3 months ago

Always-Bijoy commented 3 months ago

Drop in not open when clicking paypal from bottom sheet

image

When click Paypal it shows this error, am I missing something, another thing if my client token has any issue then it won't create any bottom sheet so in that case clintoken working.

image

worldlsj commented 3 months ago

show google pay ,Run it on the simulator?

Always-Bijoy commented 2 months ago

@pikaju Hello sir, please could you please help me? It will be the live savior for me, please.

BunnyBuddy commented 2 months ago
var request = BraintreeDropInRequest(
        tokenizationKey: "whatever your key is",
        collectDeviceData: true,
        cardEnabled: false,
        paypalRequest: BraintreePayPalRequest(
          amount: "10",
          displayName: 'Display name of your app or project',
        ),
      );

BraintreeDropInResult result = await BraintreeDropIn.start(request);

Giving an amount, or if you're inclined to offer amount = null, which is causing this error since vault flow has not been coded in this project, is one approach to fix this problem. Alternatively, you can try to do it yourself or click the link below.

Refer to this for vault flow https://github.com/pikaju/flutter-braintree/issues/159#issuecomment-2084539431