diff --git a/README.md b/README.md index e06b21d1..ae013689 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ## Quick Glance -- This Flutter plugin is a straight port from the tipsi-stripe plugin for React Native - we tried to +- This Flutter plugin is a straight port from the tipsi-stripe plugin for React Native - we tried to keep the API as close as possible, so the documentation applies this plugin. - Collect chargeable tokens from users' **Card Input** and** Apple & Google Pay**. - For **SCA** compliant apps, setup payment intents for later confirmation. @@ -33,15 +33,15 @@ keep the API as close as possible, so the documentation applies this plugin.  -## Dependencies +## Installation ### Android & iOS - Create a Stripe account and project - Retrieve a publishable key from the Stripe dashboard - +  -### Android +### Android - Requires AndroidX Include support in android/gradle.properties @@ -49,7 +49,15 @@ Include support in android/gradle.properties android.useAndroidX=true android.enableJetifier=true ``` -For proper setup also have a look at: https://github.com/jonasbark/flutter_stripe_payment/issues/88#issuecomment-553798157 +For proper setup also have a look at: https://github.com/jonasbark/flutter_stripe_payment/issues/88#issuecomment-553798157 + +### Web + +Edit your `web/index.html` file to include at the end of the `
` tag (before `main.dart.js`) the [stripe library](https://stripe.com/docs/stripe-js#setup): + +```html + +``` ## Documentation diff --git a/example/lib/generated_plugin_registrant.dart b/example/lib/generated_plugin_registrant.dart new file mode 100644 index 00000000..5c6e3a0c --- /dev/null +++ b/example/lib/generated_plugin_registrant.dart @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// ignore_for_file: lines_longer_than_80_chars + +import 'package:stripe_payment/src/stripe_payment_web.dart'; + +import 'package:flutter_web_plugins/flutter_web_plugins.dart'; + +// ignore: public_member_api_docs +void registerPlugins(Registrar registrar) { + StripePaymentPluginWeb.registerWith(registrar); + registrar.registerMessageHandler(); +} diff --git a/example/web/index.html b/example/web/index.html index 9b7a438f..698d6550 100644 --- a/example/web/index.html +++ b/example/web/index.html @@ -28,6 +28,7 @@ }); } +