Flutter pub add mobile-payment-sdk-flutter files to find plugin

When trying to install the plugin with Flutter:

flutter pub add mobile-payment-sdk-flutter

returns:

Not a valid package name: “null”

Usage: dart pub add [options] [:][:descriptor] [:][:descriptor] …]
-h, --help Print this usage information.
–[no-]offline Use cached packages instead of accessing the network.
-n, --dry-run Report what dependencies would change but don’t change any.
–[no-]precompile Build executables in immediate dependencies.
-C, --directory= Run this in the directory .

Run “dart help” to see global options.
See dart pub add | Dart for detailed documentation.
Failed to update packages.

:waving_hand: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Install the In-App Payments SDK
In-App Payments SDK Quickstart
In-App Payments SDK Quickstart

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

Change command to:

flutter pub add square_mobile_payments_sdk

works.

Glad to hear that you figured it out. :slight_smile: