displayPaymentSheet method
Implementation
Future<void> displayPaymentSheet() async {
try {
await Stripe.instance.presentPaymentSheet().then((newValue) async {
_showPaymentSuccessToast();
_paymentIntentData = null;
}).onError((error, stackTrace) {
});
} on StripeException catch (e) {
_showPaymentFailureToast();
} catch (e) {
}
}