fetchPaymentLink method
Implementation
Future<http.Response> fetchPaymentLink(PaymentRequest paymentRequest) async {
var paymentLink = PaymentLink();
var url = Constant.baseURL + Constant.paymentLink;
print('============paymentLink url $url');
final response = await http.post(Uri.parse(url),
body: json.encode(paymentRequest.toMap()),
headers: {
"Content-Type": "application/json",
"accept": "application/json",
"x-api-key": SwirepaySdk.secretKey
});
print('============paymentLink res $response');
return response;
}