saveCard method
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');
}