getPaymentMethods method

Future<List<PaymentMethod>> getPaymentMethods({
  1. required String customerId,
})

Implementation

Future<List<PaymentMethod>> getPaymentMethods(
    {required String customerId}) async {
  try {
    return await AnsaFlutterSdkPlatform.instance.getPaymentMethods(
      customerId: customerId,
    );
  } catch (e) {
    _logger.error('Failed to get payment methods', e);
    rethrow;
  }
}