Stripe payment token generate from Flutter. Stripe official flutter SDK is not available. We have to implement it using native bridge. In this demo we have created native iOS (Swift) and Android(Kotlin) bridge for getting stripe token. We have used IOS and Android Stripe SDK for generate payment token. This token can be use for future payment so you can easily do payment from server side using charge method.
Please update your publishable key in AppDelegate.swift
STPPaymentConfiguration.shared().publishableKey = "----PUBLISHABLE-KEY-----"
Please update your publishable key in MainActivity
val stripe = Stripe(this,"----PUBLISHABLE-KEY-----")
Flutter-Stripe-Payment is available under the MIT license. See the LICENSE file for more info.