getPaymentMethod method
Future<PcoCollection<PcoGivingPaymentMethod> >
getPaymentMethod({
- PcoGivingPaymentMethodQuery? query,
Will get a collection of PcoGivingPaymentMethod objects (expecting many)
using a path like this: https://api.planningcenteronline.com/giving/v2/recurring_donations/1/payment_method
Implementation
Future<PcoCollection<PcoGivingPaymentMethod>> getPaymentMethod(
{PcoGivingPaymentMethodQuery? query}) async {
query ??= PcoGivingPaymentMethodQuery();
var url = '$apiEndpoint/payment_method';
return PcoCollection.fromApiCall<PcoGivingPaymentMethod>(url,
query: query, apiVersion: apiVersion);
}