Skip to content
pubscout

flutter_paypal_native

2.1.0, released 3 years ago by an unverified publisher

Native PayPal integration for Flutter without WebViews.

WASM-readyRepository archivedUnverified publisher
$ flutter pub add flutter_paypal_native
Source repository

What it does

A Flutter plugin that enables native PayPal checkout flows on Android and iOS devices. It handles user authentication, cart management, order execution, and callbacks for payment statuses.

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

Use it when

  • You need to accept PayPal payments natively inside your Flutter app
  • You want to avoid using WebViews for the PayPal checkout process

Skip it when

  • You require web-only support without mobile platform requirements
  • You want a generalized payment gateway supporting multiple non-PayPal providers

Strengths

  • Provides a native SDK integration instead of WebViews
  • Supports both Android and iOS platforms
  • Includes order callbacks for success, cancellation, errors, and shipping changes

Weaknesses

  • Requires platform-specific configuration and dashboard setups (such as exact return URLs and enabling SDK options)
  • Strict limit on the number of purchase unit items (4 to 6 items)

Setup

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

Requires AndroidManifest.xml updates, configuring internet permissions, minimum SDK version 21 on Android, and enabling Jetifier. Requires setting up return URLs and configuring credentials on the PayPal Developer Dashboard.

final _flutterPaypalPlugin = FlutterPaypal.instance;
await _flutterPaypalPlugin.init(
  returnUrl: "com.example.app://paypalpay",
  clientID: "YOUR_CLIENT_ID",
  payPalEnvironment: FPayPalEnvironment.sandbox,
  currencyCode: FPayPalCurrencyCode.usd,
  action: FPayPalUserAction.payNow,
);

Alternatives

Packages that do the same job and could replace flutter_paypal_native.

Works with

Packages commonly used together with flutter_paypal_native: ones it builds on, ones built on it, and its own family.