saveCard method

Future<Response> saveCard(
  1. Map<String, dynamic> cardDetails
)

Sends a request to save card details for future transactions.

cardDetails: The card details to save. Returns an http.Response from the API.

Implementation

Future<http.Response> saveCard(Map<String, dynamic> cardDetails) {
  return makeApiRequest(ApiEndpoints.saveCard, cardDetails, 'PATCH');
}