flutter-braintree icon indicating copy to clipboard operation
flutter-braintree copied to clipboard

BraintreeDropIn not working paypal request

Open Always-Bijoy opened this issue 11 months ago • 4 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

Always-Bijoy avatar Mar 22 '24 08:03 Always-Bijoy

show google pay ,Run it on the simulator?

worldlsj avatar Mar 22 '24 08:03 worldlsj

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

Always-Bijoy avatar Apr 16 '24 16:04 Always-Bijoy

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

BunnyBuddy avatar Apr 26 '24 07:04 BunnyBuddy

Try to see if this resolve your issue https://github.com/pikaju/flutter-braintree/issues/166

nicolobozzato avatar Jul 15 '24 10:07 nicolobozzato