stripe_sdk 1.0.0+1 copy "stripe_sdk: ^1.0.0+1" to clipboard
stripe_sdk: ^1.0.0+1 copied to clipboard

outdated

A simple and flexible Stripe API client with complete support for SCA and PSD2.

Flutter Stripe SDK #

A native dart package for Stripe. There are various other flutter plugins that wrap existing Stripe libraries, but this package uses a different approach. It does not wrap existing Stripe libraries, but instead accesses the Stripe API directly.

Feature #

  • Customer session
  • PaymentIntent, with SCA
  • SetupIntent, with SCA
  • Manage customer
  • Manage cards

SCA/PSD2 #

The library offers complete support for SCA. It handles SCA by launching the authentication flow in a native browser, and returns the result to the app.

Android #

You need to declare this intent filter in android/app/src/main/AndroidManifest.xml:

<manifest ...>
  <!-- ... other tags -->
  <application ...>
    <activity ...>
      <!-- ... other tags -->

      <!-- Deep Links -->
      <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <!-- Accepts URIs that begin with YOUR_SCHEME://YOUR_HOST -->
        <data
          android:scheme="stripesdk"
          android:host="3ds.stripesdk.io" />
      </intent-filter>
    </activity>
  </application>
</manifest>

IOS #

For iOS you need to declare the scheme in ios/Runner/Info.plist (or through Xcode's Target Info editor, under URL Types):

<?xml ...>
<!-- ... other tags -->
<plist>
<dict>
  <!-- ... other tags -->
  <key>CFBundleURLTypes</key>
  <array>
    <dict>
      <key>CFBundleTypeRole</key>
      <string>Editor</string>
      <key>CFBundleURLName</key>
      <string>3ds.stripesdk.io</string>
      <key>CFBundleURLSchemes</key>
      <array>
        <string>stripesdk</string>
      </array>
    </dict>
  </array>
  <!-- ... other tags -->
</dict>
</plist>
170
likes
0
pub points
90%
popularity

Publisher

unverified uploader

A simple and flexible Stripe API client with complete support for SCA and PSD2.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, http, uni_links, url_launcher

More

Packages that depend on stripe_sdk