confirmPaymentIntent static method
Use to process immediate payments
Implementation
static Future<PaymentResponse> confirmPaymentIntent(
String clientSecret, String stripePaymentMethodId, double amount,
[bool? isApplePay]) async {
final Map<String, dynamic> args = <String, dynamic>{
"clientSecret": clientSecret,
"paymentMethodId": stripePaymentMethodId,
"amount": amount,
"isApplePay": isApplePay ?? false
};
var response = await _channel.invokeMethod('confirmPaymentIntent', args);
var paymentResponse = PaymentResponse.fromJson(response);
return paymentResponse;
}