deletePaymentMethod method

  1. @override
Future<void> deletePaymentMethod({
  1. required String customerId,
  2. required String paymentMethodId,
  3. String? idempotencyKey,
})
override

Delete a payment method for a customer.

Implementation

@override
Future<void> deletePaymentMethod({
  required String customerId,
  required String paymentMethodId,
  String? idempotencyKey,
}) async {
  try {
    await methodChannel.invokeMethod(
      'deletePaymentMethod',
      {
        'customerId': customerId,
        'paymentMethodId': paymentMethodId,
        'idempotencyKey': idempotencyKey,
      },
    );
  } on PlatformException {
    rethrow;
  }
}