Prerequisites for Samsung Pay SDK for Flutter

To use the Samsung Pay SDK for Flutter, make sure to meet the following prerequisites:

  1. Your app is targeting Android devices that support Samsung Pay.

    For detailed Android system requirements, see Check the device Android version.

  2. You have registered a service through the Samsung Pay Portal. This includes obtaining a valid service ID (SID) and type required for integration.

  3. The Samsung Pay SDK for Flutter is added to your project:

    1. If you do not have one set up already, download and install the IDE of your choice.

      Android Studio is recommended.

    2. Download the Samsung Pay SDK for Flutter.
      The SDK package has the following directory structure:

      Folder

      Content

      Docs

      API reference documentation

      Libs

      Flutter plugin libraries and dependencies

      Samples

      Sample Flutter apps

    3. Configure your IDE to integrate the Samsung Pay SDK for Flutter with your partner app.

      Edit the pubspec.yaml file and enter the following dependency:

      dependencies:
      samsung_pay_sdk_flutter:
        path: plugin_directory_path\
      

      For example, if your plugin path is C:\Users\USERNAME\Downloads, the dependency must be:

      dependencies:
      samsung_pay_sdk_flutter:
        path: C:\Users\USERNAME\Downloads\
      
    4. If your app uses ProGuard or DexGuard code optimization, see Add the Samsung Pay SDK for Android to your project for information on how to set them up.