Skip to content
pubscout

flutter_braintree

4.0.0, released 3 years ago by julien-scholz.dev

Flutter plugin wrapping native Braintree SDKs for payments with cards, PayPal, and Google Pay.

WASM-readyQuiet but busy
$ flutter pub add flutter_braintree
Source repository

What it does

Wraps native Braintree SDKs to enable payment processing inside Flutter applications. It supports both a ready-made Drop-in UI and granular custom Flutter UI flows for credit cards, PayPal, Google Pay, and Apple Pay.

AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to accept payments via Braintree in a Flutter app.
  • You want to use Braintree's native Drop-in UI for quick setup.
  • You want to implement a custom payment UI while using Braintree for tokenization.

Skip it when

  • You use Stripe instead of Braintree for your payment backend.
  • You are implementing standard in-app purchases via App Store or Google Play billing.

Strengths

  • Supports both native Drop-in UI and custom tokenization flows.
  • Handles multiple payment methods including credit cards, PayPal, Apple Pay, and Google Pay.
  • Active maintenance with updates to native Braintree and Drop-In SDKs.

Weaknesses

  • Device data collection is not yet supported for iOS.
  • Custom PayPal tokenization may have stability warnings in certain pre-releases.
  • Requires platform-specific configuration for URL schemes and Activities on Android and iOS.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires setting minimum Android SDK to at least 21, adding intent filters and URL schemes for browser switches (PayPal/Venmo/3DS), updating iOS Podfile platform target to '12.0', and registering CFBundleURLTypes in Info.plist.

final request = BraintreeDropInRequest(
  clientToken: '<Insert your client token here>',
  collectDeviceData: true,
  googlePaymentRequest: BraintreeGooglePaymentRequest(
    totalPrice: '4.20',
    currencyCode: 'USD',
    billingAddressRequired: false,
  ),
);
BraintreeDropInResult result = await BraintreeDropIn.start(request);

Alternatives

Packages that do the same job and could replace flutter_braintree.