I work on a Flutter mobile app project and we use flutter_stripe_payment plugin there. But author doesn't support it anymore and we facing the issue when trying to upgrade flutter higher that 2.2.3
The plugin `stripe_payment` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
I forked the library repository and applied migration steps and replaced the link in yaml file to
stripe_payment:
git:
url: https://github.com/ldemyanenko/flutter_stripe_payment
ref: master
But I'm still facing the same issue. I'm not sure what I'm doing wrong. The code and the latest two commits with migration are here
p.s. I tried official flutter stripe live from https://pub.dev/packages/flutter_stripe. But it looks like it's a bad fit for us as there is no way to add a cart to saved payment methods through custom ui there.