payWithCard method

Future<Response> payWithCard(
  1. Map<String, dynamic> paymentDetails
)

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