pikaju / flutter-braintree

Flutter plugin that wraps the native Braintree SDKs. Enables payments with credit cards, PayPal, Google Pay and more.

Home Page:https://pub.dev/packages/flutter_braintree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BraintreeDropIn not working paypal request

Always-Bijoy opened this issue · comments

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

show google pay ,Run it on the simulator?

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

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
#159 (comment)