getPaymentLink method

Future<Response> getPaymentLink(
  1. Map<String, dynamic> linkDetails
)

Sends a request to retrieve a payment link.

linkDetails: The details required to generate the payment link. Returns an http.Response with the payment link.

Implementation

Future<http.Response> getPaymentLink(Map<String, dynamic> linkDetails) {
  return makeApiRequest(ApiEndpoints.getPaymentLink, linkDetails, 'GET');
}