payWithCard method
Sends a request to process payment using card details.
paymentDetails
: The card details and amount to charge.
Returns an http.Response
from the API.
Implementation
Future<http.Response> payWithCard(Map<String, dynamic> paymentDetails) {
return makeApiRequest(ApiEndpoints.payWithCard, paymentDetails, 'POST');
}