confirmPaymentIntent static method

Future<PaymentResponse> confirmPaymentIntent(
  1. String clientSecret,
  2. String stripePaymentMethodId,
  3. double amount, [
  4. bool? isApplePay,
])

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;
}